Why Does GoldenGate Report The Lag Is Unknown or a Timestamp Mismatch? (Doc ID 968614.1)

來源:互聯網
上載者:User

Issue:
     Why does GoldenGate report the Lag is unknown?  The "Lag" command fails with "Timestamp Mismatch".  Sometimes the "Info All" will also show the Lag is unknown.

How to troubleshoot the problem?

Add a user token to a test table.
e.g.,
table scott.emp, tokens (tkn-time = @DATENOW());

Next, do a dml on this table and commit.

Then, 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.

Solution Overview:
    (1) Lag Command(after handling one or more records)

             GGSCI > lag extract e1
             Sending GETLAG request to EXTRACT E1...
             Lag unknown (timestamp mismatch between source and target).
             At EOF, no more records to process.

    (2) "Info All"(This may happen after handling a large amount of records)

             GGSCI > info all
             Program Status Group Lag Time Since Chkpt
             MANAGER RUNNING
             EXTRACT RUNNING E1 unknown 00:00:04

    (3) "showch" and date timestamp mismatch

             GGSCI > info e1 showch
              ...
             Checkpoint Lag unknown (updated 00:00:03 ago)
             Log Read Checkpoint File /rdbms/oracle/ora1022i/64/oradata/ora1022a/redo01.log
             2007-03-12 13:36:48 Seqno 3724, RBA 32885344
             .....
             GGSCI > sh date
             Mon Mar 12 12:37:08 PDT 2007

Solution Details:

The first thing to check is to make sure the timezone environmental parameter is set correctly. Here are the steps to set the correct timezone TZ environmental parameter.

    Example

        $ > 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.

If the TZ environmental parameter is not the issue, then there is another condition under which the "timestamp mismatch" message may be displayed. 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).

Related symptom:

If TZ difference is in another direction, the related extract and replicat may display unexpected lag.  If the process is at EOF, the lag may be on and off, when on
it shows several hours (the TZ difference) lag.  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.