问题描述:删除ogg用户表空间时告警ORA-00604、ORA-20782,如下所示:
1、异常重现
SYS@orcl> drop tablespace ogg_tbs including contents and datafiles;
drop tablespace ogg_tbs including contents and datafiles
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 2
ORA-20782: Oracle GoldenGate DDL Replication Error: Code :ORA-20782: Cannot DROP object used in Oracle GoldenGate replication while trigger is enabled. Consult Oracle GoldenGate documentation and/or
call Oracle GoldenGate Technical Support if you wish to do so., error stack: ORA-06512: at line 305
ORA-06512: at line 1266
2、异常原因
在安装OGG时配置开启过DDL捕获功能,OGG的DDL捕获依赖DDL触发器实现,DDL处于enabled状态,drop tablespace操作也属于DDL操作,所以产生ORA-00604 ORA-20782错误.
3、解决方案
--查触发器状态
SYS@orcl> col owner for a15
SYS@orcl> col trigger_name for a25
SYS@orcl> col triggering_event for a30
SYS@orcl> col status for a15
SYS@orcl> select owner,trigger_name,trigger_type,triggering_event,status from dba_triggers where trigger_name like 'GGS%'
OWNER TRIGGER_NAME TRIGGER_TYPE TRIGGERING_EVENT STATUS
--------------- ------------------------- ---------------- ------------------------------ ---------------
SYS GGS_DDL_TRIGGER_BEFORE BEFORE EVENT DDL ENABLED
SYS@orcl> drop trigger GGS_DDL_TRIGGER_BEFORE;
Trigger dropped.
--成功删除ogg表空间
SYS@orcl> drop tablespace ogg_tbs including contents and datafiles;
Tablespace dropped.
参考文档:https://blog.csdn.net/weixin_40913898/article/details/122476274
删除ogg用户表空间时告警ORA-00604、ORA-20782
原创
©著作权归作者所有:来自51CTO博客作者Liujun_Deng的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
ORA-65096: 公用用户名或角色名无效oracle oracle用户登录 ORA-65096
-
dbms_hm.run_check遇到ORA-00604、ORA-01427
11.2.0.3 下尝试使用11g health monitor新特性时出现了ORA-00604、ORA-01427, 查询MOS发现 (Bug 12385172: ORA-01427 WHEN EXECUTING DBMS_HM.RUN_CHECK),当 DB中存在case when then的function index时会触发该BUG: SQL> select * fr
Dictionary dbms_hm.run_check Inconsistency ind$ ORA-01427 -
Oracle数据库报ORA-00604错误
Oracle数据库报ORA-00604错误,数据库无法访问。
Oracle ORA-00604 -
centos一打开浏览器就卡主
操作系统的基本功能之一就是文件管理,而文件的管理是由文件系统来完成的。Linux 支持多种文件系统,本文我们就来讲解 Linux 下的文件系统、文件系统类型、文件系统结构和文件系统相关Shell 命令。操作系统就是处理各种数据的,这些数据在硬盘上就是二进制,人类肯定不能直接看懂这些二进制数据,要有一个翻译器,将这些二进制的数据还原为人类能看懂的文件形式,这个工作就是由文件系统来完成的,文件系统的目
centos一打开浏览器就卡主 linux 打开浏览器 linux 文件系统 linux 格式化硬盘 linux 进入文件夹