zoukankan      html  css  js  c++  java
  • Linux&UNIX上卸载GoldenGate的方法

    1. Log on to the database server (as oracle) where the GoldenGate software is installed.
    [root@oracle ~]# su - oracle
    [oracle@oracle ~]$ 
    
    2.Change directory to the GoldenGate home:
    [oracle@oracle GG]$ pwd
    /u01/GG
    [oracle@oracle GG]$
    
    3. Start GGSCI  and  Stop all GoldenGate processes:
    GGSCI (oracle.11g) 3> stop REPLICAT *     //如果是源库则 stop EXTRACT *
    REPLICAT RORA_T1 is already stopped.
    
    
    GGSCI (oracle.11g) 4> stop MGr
    Manager is already stopped.
    
    
    GGSCI (oracle.11g) 5> info all
    
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    
    MANAGER     STOPPED                                           
    REPLICAT    STOPPED     RORA_T1     00:00:00      00:13:06    
    
    
    GGSCI (oracle.11g) 6> exit                //退出ggsci
    
    
    4. Remove the GoldenGate files:
    [oracle@oracle u01]$ rm -rf GG
    [oracle@oracle u01]$ 
    
    5. Logon to the Oracle database as SYSDBA and drop the GoldenGate Adminuser. Include the CASCADE keyword:
    
    [oracle@oracle u01]$ sqlplus /nolog
    SQL> conn /as sysdba
    Connected.
    SQL> Drop user GGT CASCADE;                       
    Drop user GGT CASCADE
    *
    ERROR at line 1:
    ORA-01940: cannot drop a user that is currently connected
    
    
    SQL>
    
    ---删除连接
    SQL> select sid,serial#,status  from v$session where username='GGT';
    
           SID    SERIAL# STATUS
    ---------- ---------- --------
             1        103 ACTIVE
            43        425 ACTIVE
    
    SQL> alter system kill session '1,103';
    
    System altered.
    
    SQL> alter system kill session '43,425';
    
    System altered.
    
    SQL>
    
    SQL> select sid,serial#,status  from v$session where username='GGT';
    
           SID    SERIAL# STATUS
    ---------- ---------- --------
             1        103 KILLED
            43        425 KILLED
    
    SQL>
    
    --继续删除用户
    SQL> Drop user GGT CASCADE;
    
    User dropped.
    
    SQL> 
  • 相关阅读:
    Git(五)
    python字符串驻留(intern)机制
    JavaMail接、收邮件
    easyui Tooltip 气泡信息提示
    ligerui ligerTip气泡提示信息
    DES加密
    解决在IE下label中IMG图片无法选中radio的几个方法
    浏览器获取ip地址
    小王子
    jquery 分页
  • 原文地址:https://www.cnblogs.com/polestar/p/4271586.html
Copyright © 2011-2022 走看看