1.切换到oracle用户,进入到goldengate的安装目录。
2.查看进程的运行状况:
GGSCI (pxpaddb1) 1> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING EXTRACT RUNNING DPEXPAD 00:00:00 00:00:08 EXTRACT RUNNING DPEXPAD2 00:00:00 00:00:04 --投递进程 EXTRACT RUNNING EXTXPAD 00:00:02 00:00:09 --抽取进程 EXTRACT RUNNING EXTXPAD2 00:00:01 00:00:09 REPLICAT RUNNING REPRPT 00:00:00 00:00:04
3.查看进程参数信息
GGSCI (pxpaddb1) 18> view params EXTXPAD --view params group Extract extxpad USERID [email protected], PASSWORD goldengate warnlongtrans 12h, checkinterval 10m --tranlogoptions rawdeviceoffset 0 --TRANLOGOPTIONS CONVERTUCS2CLOBS --THREADOPTIONS MAXCOMMITPROPAGATIONDELAY 3000 IOLATENCY 3000 --TranlogOptions ASMUSER [email protected], ASMPASSWORD Oracle123 TRANLOGOPTIONS DBLOGREADER --tranlogoptions altarchivelogdest primary instance XPADDB1 /arch, altarchivelogdest instance XPADDB1 /arch, altarchivelogdes t instance XPADDB2 /arch --tranlogoptions altarchivedlogformat instance XPADDB1 %t_%s_%r.dbf --tranlogoptions altarchivedlogformat instance XPADDB2 %t_%s_%r.dbf
4.查看进程正在读取的文件
GGSCI (pxpaddb1) 21> info extract EXTXPAD,showch EXTRACT EXTXPAD Last Started 2018-08-11 20:33 Status RUNNING Checkpoint Lag 00:00:01 (updated 00:00:07 ago) Process ID 27787578 Log Read Checkpoint Oracle Redo Logs 2018-08-21 14:17:45 Thread 1, Seqno 51694, RBA 170517296 SCN 1415.2876303350 (6080255027190) Log Read Checkpoint Oracle Redo Logs 2018-08-21 14:17:46 Thread 2, Seqno 39994, RBA 532338192 SCN 1415.2876305473 (6080255029313) Current Checkpoint Detail: Read Checkpoint #1 Oracle Threaded Redo Log Startup Checkpoint (starting position in the data source): Thread #: 1 Sequence #: 49829 RBA: 237193232 Timestamp: 2018-08-11 19:58:38.000000 SCN: 1415.2182025043 (6079560748883) Redo File: +XPADDG/xpadadg/onlinelog/group_1.480.929619589 Recovery Checkpoint (position of oldest unprocessed transaction in the data source): Thread #: 1 Sequence #: 51691 RBA: 196478480 Timestamp: 2018-08-21 14:00:32.000000 SCN: 1415.2874644065 (6080253367905) Redo File: Not Available Current Checkpoint (position of last record read in the data source): Thread #: 1 Sequence #: 51694 RBA: 170517296 Timestamp: 2018-08-21 14:17:45.000000 SCN: 1415.2876303350 (6080255027190) Redo File: Not Available BR Previous Recovery Checkpoint: Thread #: 1 Sequence #: 0 RBA: 0 Timestamp: 2018-08-11 20:33:42.479286 SCN: Not available Redo File: BR Begin Recovery Checkpoint: Thread #: 1 Sequence #: 51677 RBA: 201504784 Timestamp: 2018-08-21 11:49:55.000000 SCN: 1415.2867329996 (6080246053836) Redo File: BR End Recovery Checkpoint: Thread #: 1 Sequence #: 51687 RBA: 40715468 Timestamp: 2018-08-21 12:37:39.000000 SCN: 1415.2870483139 (6080249206979) Redo File: Read Checkpoint #2 Oracle Threaded Redo Log Startup Checkpoint (starting position in the data source): Thread #: 2 Sequence #: 38987 RBA: 12691984 Timestamp: 2018-08-11 19:58:45.000000 SCN: 1415.2182025469 (6079560749309) Redo File: +XPADDG/xpadadg/onlinelog/group_7.430.929619597 Recovery Checkpoint (position of oldest unprocessed transaction in the data source): Thread #: 2 Sequence #: 39908 RBA: 237699088 Timestamp: 2018-08-20 16:42:20.000000 SCN: 1415.2804907070 (6080183630910) Redo File: Not Available Current Checkpoint (position of last record read in the data source): Thread #: 2 Sequence #: 39994 RBA: 532338192 Timestamp: 2018-08-21 14:17:46.000000 SCN: 1415.2876305473 (6080255029313) Redo File: +XPADDG/xpadadg/onlinelog/group_4.449.929619593 BR Previous Recovery Checkpoint: Thread #: 2 Sequence #: 0 RBA: 0 Timestamp: 2018-08-11 20:33:42.479286 SCN: Not available Redo File: BR Begin Recovery Checkpoint: Thread #: 2 Sequence #: 39980 RBA: 546082320 Timestamp: 2018-08-21 10:53:04.000000 SCN: 1415.2861763125 (6080240486965) Redo File: BR End Recovery Checkpoint: Thread #: 2 Sequence #: 39990 RBA: 469438992 Timestamp: 2018-08-21 12:37:40.000000 SCN: 1415.2870483300 (6080249207140) Redo File: Write Checkpoint #1 GGS Log Trail Current Checkpoint (current write position): Sequence #: 10386 RBA: 129905207 Timestamp: 2018-08-21 14:17:47.557203 Extract Trail: ./dirdat/xp Seqno Length: 6 Flip Seqno Length: No Trail Type: EXTTRAIL Header: Version = 2 Record Source = A Type = 11 # Input Checkpoints = 2 # Output Checkpoints = 1 File Information: Block Size = 2048 Max Blocks = 100 Record Length = 4096 Current Offset = 0 Configuration: Data Source = 3 Transaction Integrity = 1 Task Type = 0 Status: Start Time = 2018-08-11 20:33:44 Last Update Time = 2018-08-21 14:17:47 Stop Status = A Last Result = 0 GGSCI (pxpaddb1) 22>
5.查看表上的事务统计信息
GSCI (pxpaddb1) 30> stats extract EXTXPAD2,table xpad.XPADC_CORP_DEALLOG Sending STATS request to EXTRACT EXTXPAD2 ... Start of Statistics at 2018-08-21 15:24:13. Output to ./dirdat/ek: Extracting from XPAD.XPADC_CORP_DEALLOG to XPAD.XPADC_CORP_DEALLOG: *** Total statistics since 2018-08-11 20:38:50 *** Total inserts 1076.00 Total updates 6324.00 Total deletes 0.00 Total discards 0.00 Total operations 7400.00 *** Daily statistics since 2018-08-21 00:00:00 *** Total inserts 136.00 Total updates 608.00 Total deletes 0.00 Total discards 0.00 Total operations 744.00 *** Hourly statistics since 2018-08-21 15:00:00 *** Total inserts 17.00 Total updates 141.00 Total deletes 0.00 Total discards 0.00 Total operations 158.00 *** Latest statistics since 2018-08-21 15:23:46 *** Total inserts 0.00 Total updates 9.00 Total deletes 0.00 Total discards 0.00 Total operations 9.00 End of Statistics.
原文地址:https://www.cnblogs.com/dayu-liu/p/9521726.html
时间: 2024-10-04 04:18:12