码迷,mamicode.com
首页 > 其他好文 > 详细

同步的数据过大,导致shareplex超时,并自动kill掉了同步会话

时间:2014-09-11 11:04:21      阅读:340      评论:0      收藏:0      [点我收藏+]

标签:io   os   ar   for   数据   2014   div   sp   log   

数据库迁移,其中有个数据量较大的表的索引,在迁移的时候出现,同步超时的情况

Notice 2014-08-05 15:14:54.856107 14240 3892311808 Poster: Operation ODR_DDL on table "CMUSER"."TBL_CM_PACKAGEPUSHSESSION_R" is taking longer than 5 seconds. SID/s
erial: 719/35771 Subqueue: 1. (posting from dbuis, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:15:11.425538 14240 3838027520 s:1 Poster: Replicated DDL ".alter table CMUSER.TBL_CM_PACKAGEPUSHSESSION_R. add constr..." (posting from dbuis
, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:19:12.820272 14240 3838027520 s:1 Poster: Replicated DDL ".alter table TBL_CM_USERSERVICE logging." (posting from dbuis, queue dbuissplex, to
dbuis) [module opo]
Notice 2014-08-05 15:19:49.960636 14240 3892311808 Poster: Operation ODR_DDL on table is taking longer than 5 seconds. SID/serial: 719/35771 Subqueue: 1. (postin
g from dbuis, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:19:57.267446 14240 3838027520 s:1 Poster: Replicated DDL ".create index CMUSER.IDX_WLVI_FK_DATE on CMUSER.TBL_CM_WHITE..." (posting from dbuis
, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:20:23.243563 14240 3838027520 s:1 Poster: Replicated DDL ".create index CMUSER.IDX_RERE_UID_FK_TYPE on CMUSER.TBL_CM_R..." (posting from dbuis
, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:20:59.973385 14240 3892311808 Poster: Operation ODR_DDL on table is taking longer than 5 seconds. SID/serial: 719/35771 Subqueue: 1. (postin
g from dbuis, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:21:38.667181 14240 3838027520 s:1 Poster: Replicated DDL ".create index CMUSER.IDX_CM_PACKAGESPUSH_H_N on CMUSER.TBL_C..." (posting from dbuis
, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:26:13.815592 14240 3892311808 Poster: Operation ODR_DDL on table is taking longer than 5 seconds. SID/serial: 719/35771 Subqueue: 1. (postin
g from dbuis, queue dbuissplex, to dbuis) [module opo]
Warning 2014-08-05 15:27:08.728807 14240 8869728 Poster: Main thread is waiting 59 seconds for session -1 to commit before processing next operation. (posting from
dbuis, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:27:08.855210 14240 8869728 Poster: No locks found (posting from dbuis, queue dbuissplex, to dbuis) [module osp]
Notice 2014-08-05 15:27:09.412913 14240 3892311808 Poster: Operation ODR_DDL on table is taking longer than 61 seconds. SID/serial: 719/35771 Subqueue: 1. (posti
ng from dbuis, queue dbuissplex, to dbuis) [module opo]
Warning 2014-08-05 15:28:08.864055 14240 8869728 Poster: Main thread is waiting 119 seconds for session -1 to commit before processing next operation. (posting from
 dbuis, queue dbuissplex, to dbuis) [module opo]
Notice 2014-08-05 15:28:08.983965 14240 8869728 Poster: No locks found (posting from dbuis, queue dbuissplex, to dbuis) [module osp]
Notice 2014-08-05 15:28:09.508029 14240 3892311808 Poster: Operation ODR_DDL on table is taking longer than 121 seconds. SID/serial: 719/35771 Subqueue: 1. (post
ing from dbuis, queue dbuissplex, to dbuis) [module opo]
 
Show post 查看
                                               Operations
Target         Status                      Posted                     Since                     Total             Backlog
----------        ---------------                 ----------             ------------------                  ----------              ----------
o.dbuis     Running                          0                 19-Aug-14 13:05:42       10321921         10318726
 
发现Operations Posted这项的值为空,说明此时没有上传
 
从数据库里查看,发现传输经产发生断开的情况
 
原因是这个同步在900秒内没有跑完,所以就会断开,可以通过修改
sp_ctrl>set param SP_OPO_MAX_OEXN_TIME 3600
将时间修改到3600秒,此时不用对post进程进行停止,他会在下一次超时后,重新启动
 
修改完成后,一切恢复正常

同步的数据过大,导致shareplex超时,并自动kill掉了同步会话

标签:io   os   ar   for   数据   2014   div   sp   log   

原文地址:http://www.cnblogs.com/milanin9/p/3965856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!