ogg 12.1.2.0.1 mysql 5.6.15
replicat报错abend,view report 信息如下:
2016-07-07 16:46:35 WARNING OGG-01004 Aborted grouped transaction on 'ctpsp.ss_operating_info', Database error 1406 ([SQL error 1406]Data too long for column 'deptCo
de' at row 1
).
2016-07-07 16:46:35 WARNING OGG-01003 Repositioning to rba 154634 in seqno 8.
2016-07-07 16:46:35 WARNING OGG-01154 SQL error 1406 mapping ctpsp.ss_operating_info to ctpsp.ss_operating_info [SQL error 1406]Data too long for column 'deptCode' a
t row 1.
2016-07-07 16:46:35 WARNING OGG-01003 Repositioning to rba 154634 in seqno 8.
Source Context :
SourceModule : [er.errors]
SourceID : [/scratch/mmar/view_storage/mmar_19050430/oggcore/OpenSys/src/app/er/errors.cpp]
SourceFunction : [take_rep_err_action]
SourceLine : [682]
ThreadBacktrace : [12] elements
: [/opt/app/goldengate/libgglog.so(CMessageContext::AddThreadContext()+0x26) [0x7f2a359d0ed6]]
: [/opt/app/goldengate/libgglog.so(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x28f) [0x7f2a359c903f]]
: [/opt/app/goldengate/libgglog.so(_MSG_ERR_MAP_TO_TANDEM_FAILED(CSourceContext*, ggs::gglib::ggapp::CQualDBObjName<(DBObjType)1> const&, ggs
::gglib::ggapp::CQualDBObjName<(DBObjType)1> const&, CMessageFactory::MessageDisposition)+0x83) [0x7f2a359a0973]]
: [/opt/app/goldengate/replicat(take_rep_err_action(short, int, char const*, extr_ptr_def*, __std_rec_hdr*, char*, file_def*, bool)+0x265d) [
0x53fdcd]]
: [/opt/app/goldengate/replicat(process_extract_loop()+0x5214) [0x571fa4]]
: [/opt/app/goldengate/replicat(replicat_main(int, char**)+0x399) [0x5b8f59]]
: [/opt/app/goldengate/replicat(ggs::gglib::MultiThreading::MainThread::ExecMain()+0x6f) [0x70631f]]
: [/opt/app/goldengate/replicat(ggs::gglib::MultiThreading::Thread::RunThread(ggs::gglib::MultiThreading::Thread::ThreadArgs*)+0x11a) [0x7051
ca]]
: [/opt/app/goldengate/replicat(ggs::gglib::MultiThreading::MainThread::Run(int, char**)+0x128) [0x7066c8]]
: [/opt/app/goldengate/replicat(main+0x4a) [0x5b5eaa]]
: [/lib64/libc.so.6(__libc_start_main+0xfd) [0x3585a1ed5d]]
: [/opt/app/goldengate/replicat() [0x4aebb9]]
2016-07-07 16:46:35 ERROR OGG-01296 Error mapping from ctpsp.ss_operating_info to ctpsp.ss_operating_info.
之后我给replicat增加了参数SHOWSYNTAX
使用replicat paramfile ./dirprm/repzx.prm启动进程,得到sql语句如下:
INSERT INTO `ctpsp`.`ss_operating_info` (`id`,`userID`,`creditCode`,`deptName`,`artificialPerson`,`artificialPersonID`,`countryRegion`,`province`,`unitNature`,`areaCode`,`industryCode`,`contactNumber`,`contactAddress`,`zipCode`,`deptCode`,`orgAttachCode`,`licNumber`,`licAttachCode`,`taxNumber`,`taxAttchCode`,`SpoAttachCode`,`comRegNo`,`comRegNoCode`,`openingBank`,`basicAccount`,`regCapital`,`regCapCurrency`,`regUnit`,`infoReporter`,`infoReporterPhone`,`mainTypes`,`version`,`platformName`,`platformCode`,`platfVerifier`,`platfVerifierTime`,`basicInfoState`,`idAttachCode`,`whetherObtaining`,`u_creatTime`,`u_creatUser`,`u_updateTime`,`u_updateUser`,`u_deleteState`,`u_version`,`u_char1`,`u_char2`,`u_char3`,`u_char4`,`u_char5`,`u_char6`,`u_char7`,`u_date8`,`u_date9`,`u_date10`) VALUES ('fafdc5bbf6db48b2827e5b7656789d96 ','13197753b54646a59e313592483aa450 ',NULL,'硕大的','萨达','111111111111111 ','156 ','110000','900','110100 ','A ','13231222234','111111111111111','111111 ','hhhhhhhhhhhhhhhhhhhh ','Tulips201607061545531467791153070.jpg','111111111111111','Tulips201607061545501467791150818.jpg','','',NULL,NULL,NULL,'对方过后就','111111111111111','111111111111111.00','156 ','1 ','','',NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,'t','2016-07-06 15:46:01.000000','admin110','2016-07-06 15:46:01.000000',NULL,'0 ',NULL,'97',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
之后我拿该sql语句直接到mysql目标库中执行,发现可以执行成功,但是replicat就卡在这无法启动,哪位大神碰到过这个问题? |