卸载、删除GoldenGate的方法
2016-05-22 01:08
337 查看
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、停服务:
2、删除目录:
3、删除用户:
解决办法:
方案一
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 where id1 = (select object_id from user_objects where object_name = upper('GGS_STICK'))); 3、结束session: alter system kill session 'sid,serial#'; drop user gate01 cascade;
相关文章推荐
- 自适应波束形成算法 之 初识【一】(Adaptive Beamforming Algorithm)
- google earth 中的飞行模拟器的键盘控制
- 如何在django里使用静态文件
- 使用Goertzel算法识别DTMF信号
- Django笔记 no such table: django_session错误
- sdut 3256 BIGZHUGOD and His Friends II
- poj-2195-Going Home(最小费用最大流模板题)
- django框架从零开始_011_测试view
- 寄存 【GDOI 2016 Day2】第一题 SigemaGO
- Django administration后台管理添加页面保持中文出错解决办法,'ascii' codec can't encode characters in position 0-4:
- Google工程师带你一起看2016 Google IO最酷的8项发布
- 征服go开始
- SecureCRT的logon action登录跳转设置
- Django笔记 pillow安装错误
- golang 值得注意的地方(2则)
- django--的第一个项目hello world
- Google 知道你点击了哪个网页
- Google 知道你点击了哪个网页
- go 学习笔记 - sublime text 环境配置
- ubuntu 安装go语言开发环境