Heterogeneous database migration and synchronization issues

Author
ChenWanSheng
Advisor
ZhouLanJiang
School
Kunming University of Science and Technology
Major
Applied Computer Technology
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2008
Downloads
112
Citations
4

Request the full text

Abstract

Database migration means to change the Database management system of a software while keep the original system architecture, data and business logic unchanged. This is often a large process which involves lots of technique content including database object migration, data migration, code migration, system testing, etc.The database migration process is also a system upgrade process. It aims to solve the existing problems, especially the performance problem, in the system, so performance tuning on the target system is also a very important aspect. Furthermore, in order to ensure the data safety and the safety of operating systems, and make the data synchronization about a new database with the original database is very important significance. Last, due to that the database migration project will not change the system logic; the test will focus on compare test. The compare test includes correctness test and performance test. Correctness test will ensure the migrated system has same business logic with the original system;Performance test will help us to shorten the program run time.Based on the ERP system of a tobacco’s industry database migration project, this thesis will detailed study the technique in the solution of Sqlserver to Oracle migration process. The solutions, the techniques and the problems which encountered in various stages of the migration process are discussed in detail. Especially discuss the topic of special SQL conversion Oracle performance tuning, compare testing, etc. Based on the environment of the isomerous database migration, Having analysed the present status of data synchronization techniques,the thesis proposes a method of enterprise data synchronization based on SQL restoring against the database migration’s environment. The method captures the logs of source database in way of trigger or log analyzer,restores the SQL statements which have altered source database, and records the logs. Then the target node gets these SQL statements from the log file, and executes these statements to update target database.This method has the characters of fully heterogeneous,flexibility,universality and high safety.This thesis discussed this case that the Sqlserver database to the Oracle database migration project and isomerous database synchronal solutions covers all the aspects of general database migration and synchronal engineering, and also will give the common isomerous database migration and synchronization a good reference.In this thesis, the author focuses on the isomerous database migration and synchronization discussion and does not bring the code logicextracting into technique development cycle. How to combine the two techniques into the database migration and synchronization process will be the next phase research topic and will be the direction of database migration and synchronal engineering.

Table of contents

Abstract 3-4 Abstract 4-6 directory 6-9 Chapter 1 Introduction 9-14 the heterogeneous databases 1.1 transplantation and its synchronization problem research the background and the status quo 9-10 1.2 Project Background 1.3 heterogeneous database migration and data synchronization related concepts 10-11 1.3.1 heterogeneous database 10 1.3.2 heterogeneous databases transplant 10-11 1.3.3 data synchronization 11 1.3.4 data replication 11 1.4 heterogeneous database migration synchronization plan 11-13 1.5 Articles organization 13 1.6 This chapter Summary 13-14 the database objects transplant 14-44 2.1 storage space transplant 14-15 2.2 tables, indexes, views, and data types transplant 15-20 2.2.1 numeric types 16-17 2.2.2 Time Type 17-18 2.2.3 character data type 18-20 2.2.4 IDENTITY column to the SEQUENCE transplantation 20 2.3 Data transplant 20-26 2.4 triggers and stored procedures transplantation 26-42 2.4.1 T-SOL and PL / SQL conversion 27-32 2.4.1.1 conventional SQL statement conversion 27-30 2.4.1.2 transaction control statement conversion 30 2.4.1.3 control commands to convert 30-32 2.4.2 temporary table 32 2.4.3 M-N constraint problem 32-35 2.4.4 Performance debugging 35-42 2.4.4.1 SQL statement optimization 36-41 2.4.4.2 system-level optimization 41-42 2.5 This chapter Summary 42-44 the application transplant 44-50 3.1 bulk data import 44 3.2 Affairs submit control 44-45 3.3 document records 45 3.4 system before and after transplantation visual comparison 45-49 3.4.1 system as a back-end database before transplantation to Sqlserver run interface 45-47 3.4.2 system after transplantation Oracle back-end database running interface 47-49 3.5 This chapter Summary 49-50 Chapter heterogeneous database after transplantation, the discussion of synchronization problems 50-60 4.1 data synchronization method classification 50-53 4.1.1 snapshot-based method 50-51 4.1.2 trigger-based method 51 4.1.3 log-based method 51-52 4.1.4 API-based law 52 4.1.5 based shadow table 52-53 the the 4.1.6 backbone control table changes in law 53 4.2 data synchronization process 53-54 4.3 change capture technology 54-55 4.3.1 trigger law 54-55 4.3.2 log analysis 55 4.4 SQL statement to restore 55-56 the 4.4.1 data types format unification 55-56 4.4.2 containing multimedia types of SQL statements 56 4.5 data distribution technology 56-58 4.5.1 connection 56 4.5.2 distribution model 56-58 4.6 data updated technology 58-59 4.6.1 update operation 58 4.6.2 exception handling 58-59 4.7 This chapter Summary 59-60 Chapter test 60-64 5.1 code Review 60 5.2 data validation test 60-61 5.3 unit test 61-63 5.4 Integration Testing 63 5.5 This chapter Summary 63-64 Chapter Summary and Outlook 64-66 6.1 summarizes 64 6.2 development direction 64-65 6.3 Chapter Summary 65-66 Acknowledgements 66-67 the References 67-70 the Appendix: the degree papers during 70

Related dissertations

  1. Synchronization between China and Global Stock Index
  2. The Research on China’ Sregional Commodity Market Cycle and Its Synchronization
    LiZuo ·Hunan University ·2012 ·Master's thesis
  3. NS Plant’s Purchasing Mode Migration in AD Company
    JiChaoHui ·South China University of Technology ·2012 ·Master's thesis
  4. Concurrent Design of Product and Supply Chain
  5. Study on the Construction of Agricultural Information Service System
    YangBoZuo ·Hunan Agricultural University ·2013 ·Master's thesis
  6. Study on the Integration and Application of the Second Land Survey Data
    WanKai ·Inner Mongolia Normal ·2012 ·Master's thesis
  7. Study on Database Construction and Application Research of Township Overall Land Use Planning
    LiRongLin ·Jiangxi Agricultural University, ·2012 ·Master's thesis
  8. Research on the Impact of Rural Migrants Wenzhou Economic
    JiangChunYa ·Zhejiang Ocean University, ·2014 ·Master's thesis
  9. The Business Cycle of Chinese Urban Agglomerations
  10. Countermeasure Research on the Development of Digital Library Integrated Retrieval System in China
    WangXu ·Xiangtan University ·2013 ·Master's thesis
  11. The Design and Development of Unattended Remote Measurement and Monitoring System in Steel Business
    HanXiao ·Yanshan University ·2012 ·Master's thesis
  12. Design and Implementation on Three-dimensional Monitoring System of Data Center
    WangZhenYong ·Yanshan University ·2012 ·Master's thesis
  13. Large Network Monitoring System Based on ARM
    LiZuoZuo ·Nanjing Agricultural College ·2013 ·Master's thesis
  14. The Research on Fire-fighting Based on Image Processing in Large Space
    XuTieBing ·East China Jiaotong University ·2013 ·Master's thesis
  15. Design and Application of the Distributed Monitoring System Based on Embedded Web
  16. Excogitation and Implementation of Monitor System for the Greenhouse’s Host Machine
    LuYan ·Ningxia University ·2014 ·Master's thesis
  17. Design of Circuit Testing System of Vehicle Fuse Box Based on LabVIEW
  18. Battery Sorting Detect System Design and Application
  19. The Reliable Data Transmission System in the Maternal and Child Health Information Platform
    YangLei ·Guangxi University ·2012 ·Master's thesis
  20. The Development of Configuration Software for Monitoring and Controlling Based on C#
    WangGuang ·Harbin Institute of Technology ·2012 ·Master's thesis