OGG新版本出来后,大部分情况都会选择升级到新版本,不过也存在部分原因导致只能用11G的ogg,但是又因为存在部分bug等原因,要做11G小版本之间的升级,如从11.1.x.x.x升级到11.2.1.0.1,下面对这种情况做个简单的步骤说明。
GGSCI (qzdb2) 2> info * EXTRACT EXT1 Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag unknown (updated 02:07:16 ago) Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:30:09 Thread 1, Seqno 162502, RBA 373017020 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:28:59 Thread 2, Seqno 85757, RBA 1029120 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:29:14 Thread 3, Seqno 39513, RBA 1349712 EXTRACT EXT1DP Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag 00:00:00 (updated 02:07:14 ago) Log Read Checkpoint File ./trails/w1002906 2016-12-08 07:29:49.000000 RBA 9404504 EXTRACT EXT2 Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag 00:00:00 (updated 02:07:13 ago) Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:30:09 Thread 1, Seqno 162502, RBA 373017020 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:28:59 Thread 2, Seqno 85757, RBA 1029632 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:29:14 Thread 3, Seqno 39513, RBA 1349712 EXTRACT EXT2DP Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag 00:00:00 (updated 02:07:11 ago) Log Read Checkpoint File ./trails/w2008990 2016-12-08 07:30:09.000000 RBA 6816055 EXTRACT EXT3 Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag 00:00:00 (updated 02:07:09 ago) Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:30:09 Thread 1, Seqno 162502, RBA 373017020 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:28:59 Thread 2, Seqno 85757, RBA 1029632 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:29:14 Thread 3, Seqno 39513, RBA 1349712 EXTRACT EXT3DP Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag 00:00:00 (updated 02:07:08 ago) Log Read Checkpoint File ./trails/w3000321 2016-12-08 07:30:08.000000 RBA 3873403 EXTRACT EXT4 Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag 00:00:00 (updated 02:07:07 ago) Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:30:09 Thread 1, Seqno 162502, RBA 373017020 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:28:59 Thread 2, Seqno 85757, RBA 1030144 Log Read Checkpoint Oracle Redo Logs 2016-12-08 07:29:14 Thread 3, Seqno 39513, RBA 1349712 EXTRACT EXT4DP Last Started 2016-12-07 12:00 Status STOPPED Checkpoint Lag 00:00:00 (updated 02:07:05 ago) Log Read Checkpoint File ./trails/w4002813 2016-12-08 07:30:09.000000 RBA 8638179
GGSCI (QZJHK) 8> info * REPLICAT REP1 Last Started 2016-11-14 18:46 Status STOPPED Checkpoint Lag 00:00:00 (updated 00:10:27 ago) Log Read Checkpoint File /oradata/ggs/trails/w1007920 2016-12-08 07:29:49.236830 RBA 9404532 REPLICAT REP2 Last Started 2016-11-14 18:46 Status STOPPED Checkpoint Lag 00:00:00 (updated 00:10:26 ago) Log Read Checkpoint File /oradata/ggs/trails/w2026025 2016-12-08 07:30:09.236829 RBA 6816246 REPLICAT REP3 Last Started 2016-11-14 18:46 Status STOPPED Checkpoint Lag 00:00:00 (updated 00:10:24 ago) Log Read Checkpoint File /oradata/ggs/trails/w3000956 2016-12-08 07:30:08.236788 RBA 3873431 REPLICAT REP4 Last Started 2016-11-16 14:31 Status STOPPED Checkpoint Lag 00:00:00 (updated 00:10:22 ago) Log Read Checkpoint File /oradata/ggs/trails/w4007019 2016-12-08 07:30:09.236898 RBA 8640562
$ ./ggsci Oracle GoldenGate Command Interpreter for Oracle Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230 AIX 5L, ppc, 64bit (optimized), Oracle 10.2 on Apr 23 2012 07:27:46 Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
ERROR OGG-01416 File ./trails/w1002906, with format RELEASE 10.4/11.1, does not match current format specification of RELEASE 11.2.Modify the parameter file to specify format RELEASE 10.4/11.1 or issueETROLLOVER prior to restar
GGSCI > alter ext1 ETROLLOVER GGSCI > alter ext1dp ETROLLOVER GGSCI > alter ext2 ETROLLOVER GGSCI > alter ext2dp ETROLLOVER GGSCI > alter ext3 ETROLLOVER GGSCI > alter ext3dp ETROLLOVER GGSCI > alter ext4 ETROLLOVER GGSCI > alter ext4dp ETROLLOVER
-rw-rw-rw- 1 oracle dba 9404532 Dec 08 07:29 w1007920 -rw-rw-rw- 1 oracle dba 3873431 Dec 08 07:29 w3000956 -rw-rw-rw- 1 oracle dba 6816246 Dec 08 07:29 w2026025 -rw-rw-rw- 1 oracle dba 8640562 Dec 08 07:29 w4007019 -rw-rw-rw- 1 oracle dba 0 Dec 08 11:38 w1007921 -rw-rw-rw- 1 oracle dba 0 Dec 08 11:38 w3000957 -rw-rw-rw- 1 oracle dba 0 Dec 08 11:38 w2026026 -rw-rw-rw- 1 oracle dba 0 Dec 08 11:39 w4007020
WARNING OGG-01519 Oracle GoldenGate Capture for Oracle, ext1dp.prm: Waiting at EOF on input trail file ./trai ls/w1002906, which is not marked as complete; but succeeding trail file ./trails/w1002907 exists. If ALTER ETROLLOVER has been perfo rmed on source extract, ALTER EXTSEQNO must be performed on each corresponding downstream reader.
GGSCI > alter ext1dp extseqno 2907 extrba 0 GGSCI > alter ext2dp extseqno 8991 extrba 0 GGSCI > alter ext3dp extseqno 322 extrba 0 GGSCI > alter ext4dp extseqno 2814 extrba 0
ERROR OGG-00665 Oracle GoldenGate Delivery for Oracle, rep4.prm: OCI Error describe for query (status = 942 -ORA-00942: table or view does not exist), SQL<SELECT a.current_dir, a.seqno, a.rba, a.audit_ts, a.log_csn, a.log_xid, a.log_cmplt_c sn, a.log_cmplt_xids, b.log_cmplt_xids FROM GOLDENGATE.CHKPOINT a LEFT JOIN GOLDENGATE.CHKPOINT_lox b ON a.group_name = b.group_name AND a.group_key = b.group_key AND a.log_cmplt_csn = b.log_cmplt_csn WHERE a.group_name = 'REP4' AND a.group_key = 2420532828>. 2016-12-08 11:30:30 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rep4.prm: PROCESS ABENDING.
GGSCI > dblogin userid GOLDENGATE password GOLDENGATE GGSCI > delete CHECKPOINTTABLE GOLDENGATE.CHKPOINT GGSCI > ADD CHECKPOINTTABLE GOLDENGATE.CHKPOIN
GGSCI > add replicat rep1 exttrail /oradata/ggs/trails/w1 CHECKPOINTTABLE GOLDENGATE.CHKPOINT GGSCI > alter rep1 extseqno 7920 extrba 9404532 --可不做,直接指定到下一个 GGSCI > add replicat rep2 exttrail /oradata/ggs/trails/w2 CHECKPOINTTABLE GOLDENGATE.CHKPOINT GGSCI > alter rep2 extseqno 26025 extrba 6816246 --可不做,直接指定到下一个 GGSCI > add replicat rep3 exttrail /oradata/ggs/trails/w3 CHECKPOINTTABLE GOLDENGATE.CHKPOINT GGSCI > alter rep3 extseqno 956 extrba 3873431 --可不做,直接指定到下一个 GGSCI > add replicat rep4 exttrail /oradata/ggs/trails/w4 CHECKPOINTTABLE GOLDENGATE.CHKPOINT GGSCI > alter rep4 extseqno 7019 extrba 8640562 --可不做,直接指定到下一个
WARNING OGG-01519 Oracle GoldenGate Delivery for Oracle, rep1.prm: Waiting at EOF on input trail file /oradat a/ggs/trails/w1007920, which is not marked as complete; but succeeding trail file /oradata/ggs/trails/w1007921 exists. If ALTER ETRO LLOVER has been performed on source extract, ALTER EXTSEQNO must be performed on each corresponding downstream reader.
GGSCI > alter rep1 extseqno 7921 extrba 0 GGSCI > alter rep2 extseqno 26026 extrba 0 GGSCI > alter rep3 extseqno 957 extrba 0 GGSCI > alter rep4 extseqno 7020 extrba 0
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29956245/viewspace-3011263/ ,如需转载,请注明出处,否则将追究法律责任。