1.查看ogg整体运行情况:
GGSCI (cwogg) 5> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
JAGENT RUNNING
EXTRACT RUNNING EXT1 00:00:00 00:00:10
2.查看参数设置:
GGSCI (cwogg) 6> view params ext1
extract ext1
setenv (NLS_LANG=AMERICAN_AMERICA.AL32UTF8)
userid ogg,password ogg
rmthost 172.16.30.226, mgrport 7500
rmttrail /u01/ogg/dirdat/ht
TRANLOGOPTIONS DBLOGREADER
ddl include mapped objname scott.*;
table scott.*;
3.查看进程状态:
GGSCI (cwogg) 7> info mgr
Manager is running (IP port cwogg.7500).
GGSCI (cwogg) 8> info ext1
EXTRACT EXT1 Last Started 2015-10-28 11:22 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:06 ago)
Log Read Checkpoint Oracle Redo Logs
2015-10-28 14:31:10 Seqno 414, RBA 12156528
SCN 0.6356648 (6356648)
更加详细:
GGSCI (cwogg) 12> info ext1 detail
EXTRACT EXT1 Last Started 2015-10-28 11:22 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:07 ago)
Log Read Checkpoint Oracle Redo Logs
2015-10-28 14:32:03 Seqno 414, RBA 12290560
SCN 0.6356711 (6356711)
Target Extract Trails:
Remote Trail Name Seqno RBA Max MB
/u01/ogg/dirdat/lt 0 0 100
/u01/ogg/dirdat/ht 11 8692218 100
Extract Source Begin End
+DATA/phub/onlinelog/group_3.267.890480947 2015-10-28 11:21 2015-10-28 14:32
+DATA/phub/onlinelog/group_2.265.890480945 2015-10-28 11:02 2015-10-28 11:21
+DATA/phub/onlinelog/group_2.265.890480945 2015-10-27 15:38 2015-10-28 11:03
+DATA/phub/onlinelog/group_1.263.890480945 2015-10-27 15:34 2015-10-27 15:38
+DATA/phub/onlinelog/group_1.263.890480945 2015-10-27 14:49 2015-10-27 15:35
+DATA/phub/onlinelog/group_1.263.890480945 2015-10-27 14:47 2015-10-27 14:49
+DATA/phub/onlinelog/group_1.263.890480945 2015-10-27 13:43 2015-10-27 14:48
+DATA/phub/onlinelog/group_3.267.890480947 2015-10-27 11:52 2015-10-27 13:44
+DATA/phub/onlinelog/group_3.267.890480947 * Initialized * 2015-10-27 11:52
Not Available * Initialized * 2015-10-27 11:52
Current directory /u01/ogg
Report file /u01/ogg/dirrpt/EXT1.rpt
Parameter file /u01/ogg/dirprm/ext1.prm
Checkpoint file /u01/ogg/dirchk/EXT1.cpe
Process file /u01/ogg/dirpcs/EXT1.pce
Stdout file /u01/ogg/dirout/EXT1.out
Error log /u01/ogg/ggserr.log
GGSCI (cwogg) 13> info ext1 showch
EXTRACT EXT1 Last Started 2015-10-28 11:22 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:05 ago)
Log Read Checkpoint Oracle Redo Logs
2015-10-28 14:33:08 Seqno 414, RBA 12382720
SCN 0.6356783 (6356783)
Current Checkpoint Detail:
Read Checkpoint #1
Oracle Redo Log
Startup Checkpoint (starting position in the data source):
Thread #: 1
Sequence #: 410
RBA: 20734480
Timestamp: 2015-10-28 11:21:46.000000
SCN: 0.6337061 (6337061)
Redo File: +DATA/phub/onlinelog/group_2.265.890480945
Recovery Checkpoint (position of oldest unprocessed transaction in the data source):
Thread #: 1
Sequence #: 414
RBA: 12370448
Timestamp: 2015-10-28 14:32:45.000000
SCN: 0.6356762 (6356762)
Redo File: +DATA/phub/onlinelog/group_3.267.890480947
Current Checkpoint (position of last record read in the data source):
Thread #: 1
Sequence #: 414
RBA: 12382720
Timestamp: 2015-10-28 14:33:08.000000
SCN: 0.6356783 (6356783)
Redo File: +DATA/phub/onlinelog/group_3.267.890480947
BR Previous Recovery Checkpoint:
Thread #: 0
Sequence #: 0
RBA: 0
Timestamp: 2015-10-27 15:38:52.178490
SCN: Not available
Redo File:
BR Begin Recovery Checkpoint:
Thread #: 1
Sequence #: 409
RBA: 32126576
Timestamp: 2015-10-28 07:39:05.000000
SCN: 0.6313190 (6313190)
Redo File:
BR End Recovery Checkpoint:
Thread #: 1
Sequence #: 409
RBA: 32126576
Timestamp: 2015-10-28 07:39:05.000000
SCN: 0.6313190 (6313190)
Redo File:
Write Checkpoint #1
GGS Log Trail
Current Checkpoint (current write position):
Sequence #: 0
RBA: 0
Timestamp: 2015-10-27 11:53:28.434500
Extract Trail: /u01/ogg/dirdat/lt
Write Checkpoint #2
GGS Log Trail
Current Checkpoint (current write position):
Sequence #: 11
RBA: 8692218
Timestamp: 2015-10-28 14:33:11.839262
Extract Trail: /u01/ogg/dirdat/ht
CSN state information:
CRC: 66-20-55-66
Latest CSN: 6356132
Latest TXN: 6.1.4109
Latest CSN of finished TXNs: 6356132
Completed TXNs: 6.1.4109
Header:
Version = 2
Record Source = A
Type = 10
# Input Checkpoints = 1
# Output Checkpoints = 2
File Information:
Block Size = 2048
Max Blocks = 100
Record Length = 2048
Current Offset = 0
Configuration:
Data Source = 3
Transaction Integrity = 1
Task Type = 0
Status:
Start Time = 2015-10-28 11:22:13
Last Update Time = 2015-10-28 14:33:11
Stop Status = A
Last Result = 400
4.查看延时:
GGSCI (cwogg) 14> lag ext1
Sending GETLAG request to EXTRACT EXT1 ...
Last record lag: 33 seconds.
At EOF, no more records to process.
5.查看统计信息:
GGSCI (cwogg) 27> stats ext1 total
Sending STATS request to EXTRACT EXT1 ...
Start of Statistics at 2015-10-28 15:15:19.
DDL replication statistics (for all trails):
*** Total statistics since extract started ***
Operations 3.00
Mapped operations 3.00
Unmapped operations 0.00
Other operations 0.00
Excluded operations 0.00
Output to /u01/ogg/dirdat/ht:
Extracting from SCOTT.TEST to SCOTT.TEST:
*** Total statistics since 2015-10-28 12:12:32 ***
Total inserts 1307130.00
Total updates 336.00
Total deletes 99.00
Total discards 0.00
Total operations 1307565.00
Extracting from OGG.GGS_MARKER to OGG.GGS_MARKER:
*** Total statistics since 2015-10-28 12:12:32 ***
No database operations have been performed.
End of Statistics