Discarding record on action DISCARD on error 0

用戶反饋有個表沒有同步成功。

這個表剛10天前做了一次同步並對此表導過一次數據。收到這個問題很是鬱悶 。

檢查源端 EXT進程 以及PUMP進程

stats deprst03,table inv.ORG_ACCT_PERIODS

Sending STATS request to EXTRACT DEPRST03 ...

Start of Statistics at 2019-12-09 16:37:23.

Output to /oradata/goldengate/11.2.1/dirdat/r3:

Extracting from INV.ORG_ACCT_PERIODS to INV.ORG_ACCT_PERIODS:

*** Total statistics since 2019-12-09 16:26:02 ***
        Total inserts                                      0.00
        Total updates                                      2.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   2.00

*** Daily statistics since 2019-12-09 16:26:02 ***
        Total inserts                                      0.00
        Total updates                                      2.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   2.00

*** Hourly statistics since 2019-12-09 16:26:02 ***
        Total inserts                                      0.00
        Total updates                                      2.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   2.00

*** Latest statistics since 2019-12-09 16:26:02 ***
        Total inserts                                      0.00
        Total updates                                      2.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   2.00

 

 

目標端狀態


GGSCI (rstreportDB) 2> stats reperp03,table INV.ORG_ACCT_PERIODS

Sending STATS request to REPLICAT REPERP03 ...

Start of Statistics at 2019-12-09 15:44:03.

Replicating from INV.ORG_ACCT_PERIODS to HSS_EBS.ORG_ACCT_PERIODS:

*** Total statistics since 2019-12-03 15:09:16 ***

	No database operations have been performed.

*** Daily statistics since 2019-12-09 00:00:00 ***

	No database operations have been performed.

*** Hourly statistics since 2019-12-09 15:00:00 ***

	No database operations have been performed.

*** Latest statistics since 2019-12-03 15:09:16 ***

	No database operations have been performed.

End of Statistics.

顯示這樣應該是有更新。但是沒有記錄到

如果沒有數據來應該是這樣的:所以得出是有數據過來的。


GGSCI (ERPUAT3) 7> stats reperp03,table ***

Sending STATS request to REPLICAT REPTEST2 ...

Start of Statistics at 2019-12-09 16:52:23.

End of Statistics.

再檢查discard 文件,發現在異常

[oracle@rstreportDB dirrpt]$ more reperp03.dsc 
Oracle GoldenGate Delivery for Oracle process started, group REPERP03 discard file opened: 2019-12-09 16:26:48

Current time: 2019-12-09 16:26:48

Operation failed at seqno 14686 rba 175020
Discarding record on action DISCARD on error 0
Problem replicating INV.ORG_ACCT_PERIODS to HSS_EBS.ORG_ACCT_PERIODS
Mapping problem with compressed update record (target format)...
*
ORGANIZATION_ID = 426
LAST_UPDATE_DATE = 2019-12-09 00:00:00
LAST_UPDATED_BY = 6007
LAST_UPDATE_LOGIN = 6007
SCHEDULE_CLOSE_DATE = 2019-11-30 00:00:00
PERIOD_CLOSE_DATE = 2019-12-09 00:00:00
OPEN_FLAG = P
*
Current time: 2019-12-09 16:26:48

Operation failed at seqno 14686 rba 207393
Discarding record on action DISCARD on error 0
Problem replicating INV.ORG_ACCT_PERIODS to HSS_EBS.ORG_ACCT_PERIODS
Mapping problem with compressed update record (target format)...
*
ORGANIZATION_ID = 426
SCHEDULE_CLOSE_DATE = 2019-11-30 00:00:00
OPEN_FLAG = N
SUMMARIZED_FLAG = Y
*
Current time: 2019-12-09 16:38:30

到官網查找都是沒有相關記錄。

MGR進程也重啓了。都是不行。

最後檢查表兩端的索引。發現源端比目標端多一條索引。

發現目標端是沒有CUX這個索引的。因爲在當初在導入數據的時候。導入腳本只對INV用戶轉換爲目標端用戶。而CUX用戶沒有轉換。所以導致這一條索引沒有弄到目標端去。

加入索引後。重啓目標端。同步就正常了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章