当前位置:网站首页>OGG-01431、01003、01151无奈的处理方式

OGG-01431、01003、01151无奈的处理方式

2022-06-22 11:38:00 weixin_41561946

系统环境

oracle11.2.0.4+ogg12.2.0.1,目标库(备库)在应用源库的日志时报错了

报错信息

Reading dirdat/dp000005281, current RBA 468329501, 0 records, m_file_seqno = 5281, m_file_rba = 468329501

2021-01-21 08:35:53 WARNING OGG-01431 Aborted grouped transaction on ‘GK.T_GK’, Mapping error.

2021-01-21 08:35:53 WARNING OGG-01003 Repositioning to rba 468329501 in seqno 5281.

2021-01-21 08:35:53 WARNING OGG-01151 Error mapping from GK.T_GK to GK.T_GK.

问题分析

1、确认源和目标库上的表结构是否一致,是否有过修改的字段的情况(上一篇文章有分析过)
2、通过LOGDUMP或SHOWSYNTAX参数具体执行的SQL
通过logdump只看到执行的是UPDATE语句
Logdump 42 >pos 468329501
Reading forward from RBA 468329501
Logdump 43 >gdhr on
sh: gdhr: command not found

Logdump 44 >ghdr on
Logdump 45 >detail on
Logdump 46 >n


Hdr-Ind : E (x45) Partition : . (x0c)
UndoFlag : . (x00) BeforeAfter: A (x41)
RecLength : 696 (x02b8) IO Time : 2021/01/20 23:36:25.487.968
IOType : 135 (x87) OrigNode : 255 (xff)
TransInd : . (x00) FormatType : R (x52)
SyskeyLen : 0 (x00) Incomplete : . (x00)
AuditRBA : 268040 AuditPos : 289638928
Continued : N (x00) RecCount : 1 (x01)

2021/01/20 23:36:25.487.968 GGSUnifiedPKUpdate Len 696 RBA 468329501
Name: GK.T_GK (TDR Index: 33)
After Image: Partition 12 G b
0000 015a 0000 0024 0000 0020 3731 3431 3737 6166 | …Z…$… 714177af
6365 6637 3463 6438 3930 6332 3137 3233 6564 3730 | cef74cd890c21723ed70
6362 3439 0001 001a 0000 0016 3131 306b 5631 b6ce | cb49…110kV1…
c4b8 cfdf 2dd5 b9b1 bccf df31 3931 0002 0007 0000 | …-…191…
0003 3734 3000 0300 1300 0000 0f31 3130 6b56 b1bc | …740…110kV…
在replicat进程中参数文件中添加如下参数,通过命令行启动复制进程
SHOWSYNTAX
NODYNSQL
NOBINARYCHARS
./replicat paramfile dirprm/rep_ps9.prm

2021-01-21 18:45:53  ERROR   OGG-01296  Error mapping from GK.T_GK to GK.T_GK.

***********************************************************************
*                   ** Run Time Statistics **                         *
***********************************************************************

Reading dirdat/dp000005281, current RBA 468329501, 0 records, m_file_seqno = 5281, m_file_rba = 468329501

Report at 2021-01-21 18:45:53 (activity since 2021-01-21 18:45:53)

From Table GK.T_GK to GK.T_GK.
       #                   inserts:         0
       #                   updates:         0
       #                   deletes:         0
       #                  discards:         1


Last log location read:
     FILE:      dirdat/dp000005281
     SEQNO:     5281
     RBA:       468329501
     TIMESTAMP: 2021-01-20 23:36:25.487968
     EOF:       NO
     READERR:   0


2021-01-21 18:45:53  ERROR   OGG-01668  PROCESS ABENDING.

CACHE OBJECT MANAGER statistics

CACHE MANAGER VM USAGE
vm current     =      0    vm anon queues =      0 
vm anon in use =      0    vm file        =      0 
vm used max    =      0    ==> CACHE BALANCED

CACHE CONFIGURATION
cache size            =   2G   cache force paging = 3.41G
buffer min            =  64K   buffer max (soft)  =   4M
pageout eligible size =   4M

================================================================================
RUNTIME STATS FOR SUPERPOOL

CACHE Transaction Stats
trans active    =      0    max concurrent =      0 
non-zero total  =      0    trans total    =      0 

CACHE File Caching
filecache rqsts        =      0    bytes to disk      =      0 
file retrieves         =      0    objs filecached    =      0 
queue entries          =      0    queue processed    =      0 
queue entry not needed =      0    queue not signaled =      0 
fc requesting obj      =      0 

CACHE MANAGEMENT
buffer links   =      0   anon gets   =      0 
forced unmaps  =      0   cnnbl try   =      0 
cached out     =      0 

遗憾的是也没有看到相应的SQL语句,这里就准备采用其他方式

临时解决方法

将该表单独放在一个复制进程里应用相应的日志,直接跳过该事务即可
start rep_ps9 ,skipstransaction

总结

1、有点遗憾,没有找到具体的原因,好在没有单过其他重要事情
2、之所以采用此方式,因为是备库
3、通过SHOWSYNTAX调试时,需要通过命令行启动复制进程,否则会报以下错误
2021-01-21 18:41:36 ERROR OGG-01991 Start Replicat from the command shell of the operating system when using the SHOWSYNTAX parameter.

原网站

版权声明
本文为[weixin_41561946]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41561946/article/details/112969988