删除GoldenGate用户

本文详细介绍了在遇到特定错误时如何成功删除Oracle GoldenGate用户的步骤。包括禁用触发器、查找并终止占用临时表的会话及最终完成用户删除的过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

删除goldengate用户:
SQL> drop user goldengate cascade; 
drop user goldengate cascade

ERROR at line 1: 
ORA-00604: error occurred at recursive SQL level 2 
ORA-20782: GoldenGate DDL Replication Error: Code :ORA-20782: Cannot DROP
object used in GoldenGate replication while trigger is enabled. Consult 
GoldenGate documentation and/or call GoldenGate Technical Support if you wish 
to do so., error stack: ORA-06512: at line 226 
ORA-06512: at line 951

SQL> sqlplus / as sysdba;
SQL> @/cwogg/oggbj/ddl_disable.sql
或者
SQL> drop trigger ggs_ddl_trigger_before;
SQL> drop user goldengate cascade;
drop user goldengate 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
SQL> conn goldengate/goldengate;
SQL> select table_name from tabs;

TABLE_NAME
------------------------------
GGS_TEMP_COLS
GGS_TEMP_UK
GGS_STICK
SQL> select sid,serial# from v$session where sid in (select sid  from v$lock where id1 = (select object_id  from user_objects where

object_name = upper('GGS_STICK')));
       SID    SERIAL#
---------- ----------
        10         33
        14         21
        15         17
        16          7
        19          7
        20          7
        22         15
        23          9
        27          5
        38          5
       778         15

       SID    SERIAL#
---------- ----------
       783         13
       784          7
       785         31
       786          7
       787          5
       788          5
       789          5

已选择18行。
SQL> alter system kill session '10,33';
......
SQL> alter system kill session '789,5';
SQL> conn / as sysdba;
已连接。
SQL> drop user goldengate cascade;

用户已删除。

参考: http://hunt1574.blog.51cto.com/1390776/1031012

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26194851/viewspace-753545/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26194851/viewspace-753545/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值