重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1112|回复: 0
打印 上一主题 下一主题

[Oracle] 删除ogg用户表空间时告警ORA-00604、ORA-20782

[复制链接]
跳转到指定楼层
楼主
发表于 2022-12-16 16:37:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
问题描述:删除ogg用户表空间时告警ORA-00604ORA-20782,如下所示:
数据库:oracle 11.2.0.4
1、异常重现
SYS@orcl> drop tablespace ogg_tbsincluding contents and datafiles;
drop tablespace ogg_tbs including contentsand datafiles
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQLlevel 2
ORA-20782: Oracle GoldenGate DDL ReplicationError: Code :ORA-20782: Cannot DROP object used in Oracle GoldenGatereplication while trigger is enabled. Consult Oracle GoldenGate documentationand/or
call Oracle GoldenGate Technical Support ifyou wish to do so., error stack: ORA-06512: at line 305
ORA-06512: at line 1266
2、异常原因
在安装OGG时配置开启过DDL捕获功能,OGGDDL捕获依赖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> selectowner,trigger_name,trigger_type,triggering_event,status from dba_triggers wheretrigger_name like 'GGS%'
OWNER           TRIGGER_NAME              TRIGGER_TYPE     TRIGGERING_EVENT               STATUS
--------------- ----------------------------------------- ------------------------------ ---------------
SYS             GGS_DDL_TRIGGER_BEFORE    BEFORE EVENT     DDL                            ENABLED
SYS@orcl> drop triggerGGS_DDL_TRIGGER_BEFORE;
Trigger dropped.
--成功删除ogg表空间
SYS@orcl> drop tablespace ogg_tbsincluding contents and datafiles;
Tablespace dropped.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-7-5 14:25 , Processed in 0.080848 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表