Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

0

积分

0

好友

6

主题
1#
发表于 2013-8-28 15:17:42 | 查看: 5463| 回复: 4
target端系统:linux 红帽 5.4  64位版本
target端数据库:oracle 10.2.0.4.0  64位
target端OGG: Oracle® GoldenGate 11g Release 1 Patch Set 1 (11.1.1.1.1)

问题:
       以为有一个复杂的多表查询中,有一些函数条件,所以我在target端的数据库中,添加了一些函数索引(2个)。添加完函数索引之后,问题来了。

target端OGG的复制进程报告文件显示如下结果:
  1. OCI Error ORA-08102: index key not found, obj# 69730, file 10, block 3297270 (2) (status = 8102), SQL <DELETE FROM "YXTX"."ORDERTICKETS"  WHERE "ORDERTICKETSID" = :b0>
  2. Operation failed at seqno 249 rba 499263939
  3. Discarding record on action DISCARD on error 8102
  4. Problem replicating YXTX.ORDERTICKETS to YXTX.ORDERTICKETS
  5. Mapping problem with delete record (target format)...
  6. *
  7. ORDERTICKETSID = 16235142
  8. *
  9. Current time: 2013-08-28 08:52:49

  10. Operation failed at seqno 250 rba 97595277
  11. Discarding record on action DISCARD on error 8102
  12. Problem replicating YXTX.ORDERTICKETS to YXTX.ORDERTICKETS
  13. Mapping problem with compressed update record (target format)...
  14. *
  15. ORDERTICKETSID = 16700914
  16. ORDERID = T2013082418767
  17. ORDLOGINNAME = TAOJUNJIE
  18. ORDGOLDINFOID = Gold002231
  19. ORDDETPNR = JNB8E2
  20. ORDDETNEWPNR = NULL
  21. ORDAIRCOMP = CA
  22. ORDLINENUM = CA1559
  23. ORDHOMEPORT = PEK
  24. ORDDESTPORT = TAO
  25. ORDPLANETYPE = 73K
  26. ORDTICKETTYPE = 1
  27. ORDAIRPORTFEE = 687.00
  28. ORDPRICE = 797.00
  29. ORDPOINT = NULL
  30. ORDDISCOUNT = 2.60
  31. ORDOILFEE = 60.00
  32. ORDBULIT = 50.00
  33. ORDOTHER = NULL
  34. ORDBERTH = Y
  35. ORDSTARTDAYTIME = 2013-08-26 08:45:56
  36. ORDDATETIME = 2013-08-24 10:05:56
  37. ORDABATE = 2013-08-24 10:05:56
  38. ORDPAYTYPE = 2
  39. ORDSTATE = 3
  40. ORDLINKMAN = <Raw Data>
  41. 000000: d0 ed bd e0                                     |....            |
  42. ORDTEL = 13505320012
  43. ORDADD = <Raw Data>
  44. 000000: c9 bd b6 ab ca a1 c7 e0 b5 ba ca d0             |............    |
  45. ORDEMAIL = junjiehangkong@126.com
  46. ORDPRESID = CA008
  47. ORDMEMO = <Raw Data>
  48. 000000: b4 cb bf cd c6 b1 c0 e0 d0 cd ce aa 42 53 50 a1 |............BSP.|
  49. 000010: a3 d3 c5 bb dd bc db b8 f1 b3 fd cd e2 2e 42 53 |..............BS|
  50. 000020: 50 c7 eb bc d3 c8 eb 43 54 43 54 cf ee 2e       |P......CTCT...  |
  51. ORDDERATENO = NULL
  52. ORDINSURANCE = 0
  53. ORDMODIID = 196051
  54. ORDMODIDATE = 2013-08-28 08:52:41
  55. ORDTICOUTTIME = NULL
  56. ORDGETTIME = 2013-08-28 08:52:41
  57. ORDYEEPAYORDER = 2013082423802775
  58. ORDYEEPAYDATE = 2013-08-24 10:08:24
  59. ORDDELIVERADD = NULL
  60. ORDDELIVERTIME = NULL
  61. ORDARRDAYTIME = 2013-08-26 10:05:56
  62. ORDIBEPRICE = 710.00
  63. ORDNUM = 1
  64. ORDTICKETAUTOTIC = 1
  65. ORDYEEPAYDETAIL = Seller:Gold002231:798.33
  66. ORDSPECID = 5707930
  67. ORDJOURNEYPRINT = 0
  68. ORDINCOME = NULL
  69. ORDGOLDDIS = 100
  70. ORDLOWCABIN = 0
  71. ORDRETAINDIS = 0
  72. ORDSTDPRICE = 710.00
  73. ORDLOCAL = 0
  74. ORDALLPRICE = 797.00
  75. ORDRTNMEMO = NULL
  76. ORDISSETTLEMENT = 0
  77. ORDPAYPLATFORM = 3
  78. ORDGATEID = NULL
  79. ORDPROCTIME = 341058
  80. ORDGETID = 196051
  81. ORDGRETAINDIS = NULL
  82. GBALTYPE = NULL
  83. ORDFINCHECK = NULL
  84. LOCKEDSTATE = U
  85. ORDSECSTARTDAYTIME = NULL
  86. ORDSECARRDAYTIME = NULL
  87. ORDSECGOLDDIS = NULL
  88. ORDB2GSTATE = NULL
  89. ORDFROM = 1
  90. ORDTYPE = 2
  91. *
  92. Current time: 2013-08-28 10:46:36

  93. OCI Error ORA-08102: index key not found, obj# 69867, file 9, block 3147844 (2) (status = 8102), SQL <DELETE FROM "YXTX"."ORDERTICKETS_HIS"  WHERE "ORDERTICKETSID" = :b0>
  94. Operation failed at seqno 250 rba 222023188
  95. Discarding record on action DISCARD on error 8102
  96. Problem replicating YXTX.ORDERTICKETS_HIS to YXTX.ORDERTICKETS_HIS
  97. Mapping problem with delete record (target format)...
  98. *
  99. ORDERTICKETSID = 11128340
  100. *
  101. Current time: 2013-08-28 10:47:44

  102. OCI Error ORA-08102: index key not found, obj# 69867, file 9, block 3147844 (2) (status = 8102), SQL <DELETE FROM "YXTX"."ORDERTICKETS_HIS"  WHERE "ORDERTICKETSID" = :b0>
  103. Operation failed at seqno 250 rba 223336781
  104. Discarding record on action DISCARD on error 8102
  105. Problem replicating YXTX.ORDERTICKETS_HIS to YXTX.ORDERTICKETS_HIS
  106. Mapping problem with delete record (target format)...
  107. *
  108. ORDERTICKETSID = 11135967
  109. *
  110. Current time: 2013-08-28 10:52:15

  111. OCI Error ORA-08102: index key not found, obj# 69867, file 9, block 3147844 (2) (status = 8102), SQL <DELETE FROM "YXTX"."ORDERTICKETS_HIS"  WHERE "ORDERTICKETSID" = :b0>
  112. Operation failed at seqno 250 rba 228551989
  113. Discarding record on action DISCARD on error 8102
  114. Problem replicating YXTX.ORDERTICKETS_HIS to YXTX.ORDERTICKETS_HIS
  115. Mapping problem with delete record (target format)...
  116. *
  117. ORDERTICKETSID = 11153401
  118. *
  119. Current time: 2013-08-28 10:54:53
复制代码
进程都是正常运行状态,也没有其他报错,数据库也是正常的。

我这边是一对多的配置,另外一个target端的OGG进程报告文件,没有显示上述错误信息。。(另外一边没有添加函数索引)

我昨天还将target端的这个表rebuild 了一次,但还是还是继续报这个错误。。。
2#
发表于 2013-8-28 15:26:52
我晚上准备把进程停了,重新把这2个表同步一次,不知道能不能搞定

回复 只看该作者 道具 举报

3#
发表于 2013-8-28 15:42:54
不要 rebuild

要 drop + create

回复 只看该作者 道具 举报

4#
发表于 2013-8-28 15:52:43
Maclean Liu(刘相兵 发表于 2013-8-28 15:42
不要 rebuild

要 drop + create

好的,谢谢,晚上我试试

回复 只看该作者 道具 举报

5#
发表于 2013-8-29 00:33:31
重建表后,报错继续,我删除一个 length() 函数索引,现在好像不包错误信息了。。。等待明天上班再看是否还是继续报错。。。

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-12-20 07:59 , Processed in 0.048061 second(s), 20 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569