ogg在不知道源端IP的情况下查找源端IP的方法

说明:rac1节点为源端,rac2节点为目标端。

因源端IP信息并没有在目标端的参数文件中配置,当ogg环境比较多时,容易造成混乱;为了能够快速明确ogg源端,可以通过如下方法检查。或者可以通过检查源端及目标端的参数文件确认同步的表是否一致。


GGSCI (rac1) 10> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                           
EXTRACT     RUNNING     DPFULL      00:00:00      00:00:09    
EXTRACT     RUNNING     EXTFULL     00:00:00      00:00:07    


GGSCI (rac2) 1> info all
Program     Status      Group       Lag at Chkpt  Time Since Chkpt
MANAGER     RUNNING                                           
REPLICAT    RUNNING     REPFULL     00:00:00      00:00:06    



在RAC2 节点通过如下命令可以从目标端查找到ogg的源端机器:
[oracle@rac2 ogg]$ cat ggserr.log |grep EXTRACT
2018-01-13 15:51:36  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:30588 (VERSION).
2018-01-13 15:51:36  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:30589 (START SERVER CPU -1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-13 17:31:18  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:31257 (VERSION).
2018-01-13 17:31:18  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:31258 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-13 18:05:11  WARNING OGG-00959  Oracle GoldenGate Manager for Oracle, mgr.prm:  PURGEOLDEXTRACTS /ogg/dirdat/td*, USECHECKPOINTS, MINKEEPHOURS 2 (MINKEEPFILES 


option not used.).
2018-01-13 18:05:20  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:31489 (VERSION).
2018-01-13 18:05:20  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:31490 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-13 19:14:30  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:31950 (VERSION).
2018-01-13 19:14:30  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:31951 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-13 20:03:05  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32269 (VERSION).
2018-01-13 20:03:05  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32270 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-13 20:10:18  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32324 (VERSION).
2018-01-13 20:10:18  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32325 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-13 20:21:51  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32412 (VERSION).
2018-01-13 20:21:51  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32413 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-13 20:24:21  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32438 (VERSION).
2018-01-13 20:24:21  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:32439 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
2018-01-14 12:15:53  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:38476 (VERSION).
2018-01-14 12:15:53  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host [192.168.80.241]:38477 (START SERVER CPU 


-1 PRI -1  TIMEOUT 300 PARAMS ).
[oracle@rac2 ogg]$ 

你可能感兴趣的:(Oracle)