ORA-20782: Cannot DROP object used in Oracle GoldenGate replication while trigger is enabled
2017-03-16 10:31
966 查看
今天在删除ogg用户的时候报了如下的问题:
SQL> drop user ogg cascade;
drop user ogg cascade
*
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 310
ORA-06512: at line 1272
解决办法:
SQL> drop trigger ggs_ddl_trigger_before
再次执行:
SQL> drop user ogg cascade
2 ;
drop user ogg cascade
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-14452: attempt to create, alter or drop an index on temporary table already
in use
解决方法:
查出GOldengate用户的表
select table_name from tabs where table_name like 'GG%'
select sid,serial# from v$session where sid =
(select sid from v$lock where id1 =
(select object_id from user_objects where object_name = upper('GGS_STICK')))
结束session:
alter system kill session 'sid,serial#';
SQL> drop user ogg cascade;
User dropped.
SQL>
SQL> drop user ogg cascade;
drop user ogg cascade
*
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 310
ORA-06512: at line 1272
解决办法:
SQL> drop trigger ggs_ddl_trigger_before
再次执行:
SQL> drop user ogg cascade
2 ;
drop user ogg cascade
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-14452: attempt to create, alter or drop an index on temporary table already
in use
解决方法:
查出GOldengate用户的表
select table_name from tabs where table_name like 'GG%'
select sid,serial# from v$session where sid =
(select sid from v$lock where id1 =
(select object_id from user_objects where object_name = upper('GGS_STICK')))
结束session:
alter system kill session 'sid,serial#';
SQL> drop user ogg cascade;
User dropped.
SQL>
相关文章推荐
- Error 3724:Cannot drop the table 'object_name' because it is being used for replication.-ZT
- Error 3724:Cannot drop the table 'object_name' because it is being used for replication.
- OUI-10022:The target area /oracle/oraInventory cannot be used because it is in an invalid state.
- oracle(创建/删除/修改用户,创建/删除/修改表空间,授权用户,删除所有表,给用户指定表空间,ORA-01940: cannot drop a user that is currently c)
- Oracle:ORA-00955: name is already used by an existing object
- goldengate ddl enable,ORA-04098: trigger 'SYS.GGS_DDL_TRIGGER_BEFORE' is invalid
- Cannot drop the database ‘XXX’ because it is being used for replication.
- Cannot drop the database ‘XXX’ because it is being used for replication.
- Cannot drop the database ‘XXX’ because it is being used for replication.
- Oracle:ORA-00955: name is already used by an existing object
- Cannot drop the database XXX because it is being used for replication
- ORA-01146: cannot start online backup - file 1 is already in backup ORA-01110: data file 1: 'C:\ORACLE\ORADATA\ORCL8\SYSTEM01.DBF'
- Linux中删除Oracle用户 提示 ORA-01940: cannot drop a user that is currently connected
- 解决VMware Tools installation cannot be started manually while Easy Install is in progress
- ORA-01940: cannot drop a user that is currently connected
- The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server databas
- 闪回命令出错 ORA-08189: cannot flashback the table because row movement is not enabled
- 解决VMware Tools installation cannot be started manually while Easy Install is in progress.
- ORA-01940: cannot drop a user that is currently connected
- How to handle ddl in GoldenGate environment without ddl replication?