首先停止一切在主库上的应用,这一点和DataGuard Switchover一样。在保证没有活动事务的情况下,才能切换干净。
在主库端使用LAG等命令了解extract的延迟,若返回如"At EOF, no more records to process"的信息,则说明所有事务均
GGSCI (sfa-fcyy-zaibei) 3> lag extnd
2019-03-19 17:17:25 INFO OGG-14054 Lag from heartbeat table requires DBLOGIN.
Sending GETLAG request to EXTRACT EXTND ...
Last record lag 2 seconds.
At EOF, no more records to process.
GGSCI (rh2.oracle.com) 146> stop extnd
Sending STOP request to EXTRACT extnd ...
同样对pump使用LAG命令,若返回如"At EOF, no more records to process"的信息,则说明已抽取的数据都被发送到备
GGSCI (sfa-fcyy-zaibei) 4> lag dpend
2019-03-19 17:18:08 INFO OGG-14054 Lag from heartbeat table requires DBLOGIN.
Sending GETLAG request to EXTRACT DPEND ...
Last record lag 4 seconds.
At EOF, no more records to process.
GGSCI (rh2.oracle.com) 148> stop dpend
Sending STOP request to EXTRACT dpend ...
检查备库端replicat的同步情况,如返回"At EOF, no more records to process.",则说明所有记录均被复制。
GGSCI (sfa-zaibei-db) 3> lag repnd
2019-03-19 17:19:00 INFO OGG-14054 Lag from heartbeat table requires DBLOGIN.
Sending GETLAG request to REPLICAT REPND ...
Last record lag 5 seconds.
At EOF, no more records to process.
评论