当前位置:网站首页>DTS migration script MySQL

DTS migration script MySQL

2022-06-22 05:10:00 Shuai Zibao

DM Technical communication QQ Group :940124259

One 、 Preface

In order to get rid of heavy dependence on overseas software and hardware , Nowadays, the development trend of localization is rapid , From chip 、 operating system 、 middleware 、 The localization, adaptation and transplantation of databases and other fields have been going on for several years , Business systems in various fields are operating normally , It shows that the alternative of domestic software and hardware is feasible , mature 、 Stable .

I was mainly engaged in Oracle/MySQL Database operation and maintenance , Currently working in Dameng database company , Focus on database operation and maintenance, management and pre-sales technology , And in the process of replacing the localization database , Handled many migration adaptation problems , This is to facilitate you to deal with the errors arising from the migration process .

This article is a technical knowledge accumulation document , Continuously document output , The problems we often encounter in our daily life or the problems we may encounter in the future , Organize into a migration knowledge base , It is convenient for you to search quickly , An antidote against the disease .

I hope that the majority of netizens will be in the process of migrating and adapting Dameng database , Screenshots of problems encountered are archived , Join in wo Of QQ Group 《DM Technical communication QQ Group :940124259 》 Share or report , Contribute to the localization of Dameng database , Be deeply grateful .


Two 、 Migrate knowledge base

001. TIMESTAMP Default value of date time type 0000-00-00 00:00:00

Problem description :
MySQL The database allows TIMESTAMP The default value of the data type field is ’0000-00-00 00:00:00’, But in DM Default values that are considered illegal in the database ,
DM The valid value range of date time type : '0001-01-01 00:00:00.000000' to '9999-12-31 23:59:59.999999'.

The solution :
Method 1:MySQL Source library modification TIMESTAMP The default value of the field of type , such as :‘0001-01-01 00:00:00.000000’.
Method 2:DTS Write a query in the migration tool SQL Migration table .


To be added …

原网站

版权声明
本文为[Shuai Zibao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220505525289.html