卸載、刪除GoldenGate的方法

來源:互聯網
上載者:User

Linux、UNIX上卸載GoldenGate的方法:

方案一 

1. Log on to the database server (as oracle) where the GoldenGate software is installed. 2. Change directory to the GoldenGate home: cd /home/oracle/ggs 3. Start GGSCI: ggsci 4. Stop all GoldenGate processes: GGSCI (dbserver1) 1> stop EXTRACT * Or: GGSCI (dbserver1) 1> stop REPLICAT * Then: GGSCI (dbserver1) 2> stop MGR Manager process is required by other GGS processes. Are you sure you want to stop it (y/n)? y Sending STOP request to MANAGER ... Request processed. Manager stopped. GGSCI (dbserver1) 3> exit 5. Change directory to the installation directory: cd /home/oracle 6. Remove the GoldenGate files: rm -rf ggs 7. Logon to the  Oracle database as SYSDBA and drop the GoldenGate Admin user. Include the CASCADE keyword: sqlplus / as sysdba SQL> drop user ggs_admin cascade; User dropped. 方案二 

1、停服務: 

 stop *   stop mgr  


2、刪除目錄:
 

 rm -rf ggate  


3、刪除使用者:
 

 SQL> drop user gate01 cascade;   drop user gate01 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> drop trigger ggs_ddl_trigger_before;     Trigger dropped.     SQL> drop user gate01 cascade;   drop user gate01 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     

解決辦法:

 

 1、查出gate01使用者的表:   conn gate01/gate01   select table_name from tabs;   TABLE_NAME   ------------------------------   GGS_DDL_PRIMARY_KEYS   GGS_STICK     2、查詢對應sid,serial#:   select sid, serial#  from v$session where sid =  (select sid  from v$lock 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.