check with logdump (set: usertokens detail) to compare the record commit time (this is from redo log) and the token (from os time when extract processes the record). if former time is later then the one from token, it may cause this 'unknown' display
解决:
首先检查OS的时区变量TZ设置
$ > env |grep TZ
TZ=PST9PDT
$ > date
Mon Mar 12 12:40:57 PDT 2007
$ > export TZ=PST8PDT
$ > date
Mon Mar 12 13:41:08 PDT 2007
You must re-start the Manager and all other GoldenGate groups.
The "timestamp mismatch" may also be displayed when the Extract or Replicat is completely caught up and a LAG command is issued. The LAG command will try to compute the difference between current timestamp on target versus the actual timestamp of the processed record (which comes from the source). When the difference is actually a negative value, then we will display the "timestamp mismatch" message. If these times are very close, this can be when we calculate a negative lag (target timestamp - record timestamp).
OGG Extract RBA Not Moving And LAG Increasing And Appears Hung [ID 964705.1]
症状:
info extract 显示RBA没有增加,而lag却在一直增长;
原因:
有可能正在处理长事务
send extract , status--应该显示正在处理大事务,调用report继续验证
send extract , report--生成report并view report
如果已经声明了warnlongtrans参数,report应该显示
"Repositioning for Long Transaction"
"Finished Long Transaction, Processed nnnnn records."
即extract只是在处理长事务,并没有hung
Using A Heartbeat Table To Monitor LAG Between The Source And Target. [ID 968710.1]
除了GGSCI和GGS report,还可用heartbeat table监控lag
SOURCE:
CREATE TABLE ggs_heartbeat (
id number primary key,
source_time timestamp default sysdate
);
TARGET:
CREATE TABLE ggs_heartbeat_t (
id number primary key,
source_time timestamp,
target_time timestamp default sysdate
);
只对source表插入id列,可定期插入一条记录并在target执行
SELECT id, target_time - source_time lag FROM ggs_heartbeat