Research and Implementation of Distributed Database Backup System

Author
DuYingHao
Advisor
YangYongJian
School
Jilin University
Major
Software Engineering
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2010
Downloads
166
Citations
3

Request the full text

Abstract

With the rapid development of information technology, the database has been widely used in all areas of society. It is very convenient for data storage and data management, at the same time promotes the efficiency of production. The database has become an essential part in companies. However, if the database doesn’t work because of fatal errors, it would bring immeasurable loss. So how to backup data from databases safely and efficiently becomes a very important issue.This paper describes the database backup system which is researched and developed based on the specific needs of FAW Group.The system can achieve data sharing and data backup among the companies of FAW Group.According to the requirements, the system is developed using client/server architecture. The entire system is divided into client and server. The client would extract data from the source database and write it into data files. The server would import data from data files.The design of the system following software engineering improves system reusability, maintainability and scalability. With the modular design the backup process is divided into six parts, backup configuration, data acquisition, data compression, data transmission, data decompression, data import. The client includes the backup configuration, data acquisition and data compression. The server includes the backup configuration, data transmission, data decompression and data import. The system consists of four modules which is specifically explained as follows:1. Backup Configuration ModuleThe client and server should complete the backup configuration before the database backup. The configuration for the client includes data backup configuration and time configuration. The data backup configuration instructs the client what should be acquisitioned from source databases. The time configuration instructs the client when the data should be acquisitioned from source databases. The configuration for the server mainly includes data backup configuration. The data backup configuration instructs from which client the data files will be completed to receive and how to import data into databases.2. Database operation moduleThis module would be designed based on the database backup configuration,which is divided into the data extraction submodule for the client-side and the data import submodule for the server-side. The data extraction submodule for the client-side extracts data from the database according to the database backup configuration. After that the data would be stored into data files. The data import submodule for the server-side would import data into database after reading data from data files.3. Data compression and decompression moduleAfter data extraction, the client would compress data files in order to transfer them as soon as possible. Data files are compressed using LZW algorithm. If the compressed data files are transferred from the client to the server successfully, the server would decompress the compressed data files from the client.4. File Transfer ModuleConfiguration files and data files would be transferred from the client to the server. The client would transfer configuration files before data extraction. And the data files would be transferred after compressing them completely. The module selects asynchronous messaging model of TCP protocol for transmission. During the process of transmission, various network exceptions would be handled so as to make the data files transferred safely and efficiently.The modular design makes all common functional units encapsulated which provides underlying support for modules. Such as ADO database system operations, data encryption, data compression.This system makes operations for database easier and more flexible. Therefore, it improves the efficiency of the use of the database.

Table of contents

Summary 4-8 Chapter 1 Introduction 8-10 1.1 research background and significance 8 1.2 Research 8 - 9 1.3 thesis work and structure 9-10 Chapter 2 database Backup system Requirements Analysis 10-13 2.1 system application environment 10 -12 2.1.1 system Application background 10 2.1.2 network environment 10-11 2.1.3 database environment and table structure 11 2.1.4 database backup target 11-12 2.2 illustrate key points need 12-13 2.2.1 database backup function needs 12 2.2.2 database backup performance requirements 12-13 Chapter 3 database backup system design 13-37 3.1 overall design description 13 -16 3.1.1 system development tools 13 3.1.2 CS software system architecture 13-14 3.1.3 MVC design pattern 14 3.1.4 system design goals 14-15 3.1.5 system function design implementation process 15-16 3.2 system module design description 16-37 3.2.1 user management module 16-19 3.2.1.1 user privileges Description 16-17 3.2.1.2 user rights management design 17-19 3.2.2 system backup operation parameter configuration module 19-28 3.2.2.1 start backup module 19-20 3.2 .2.2 system operating parameters configuration module 20-21 3.2.2.3 system Data backup configuration module 21-28 3.2.2.4 system data backup configuration role 28 3.2.3 system Data encryption module 28-29 3.2.4 operating system database module 29-32 3.2.4.1 ADO database access technology 29 3.2.4.2 source database backup data extraction operation 29-31 3.2.4.3 backup data into the destination database operations 31-32 3.2.5 data file compression and decompression module 32-33 3.2.5.1 LZW compression algorithm 32-33 3.2.5.2 client compression module 33 3.2.5.3 server-side decompression module 33 3.2.6 file Transfer module 33-37 3.2.6.1 socket network communication 34 <br / > 3.2.6.2 data transmission model 34 3.2.6.3 communication interactive mode 34-35 3.2.6.4 communication authentication 35 3.2. 6.5 configuration file Transfer module 35 3.2.6.6 data file transfer module 35-36 3.2.6.7 application layer Packet 36-37 Chapter 4 database Backup system detailed design and implementation 37-63 4.1 system module design process description 37 4.2 system module structure to achieve Description 37-63 4.2.1 user management module 37-39 4.2.1.1 user permissions design 37-38 4.2.1.2 account information encryption 38 < br /> 4.2.1.3 accounts file operations 38-39 4.2.2 system backup operation parameter configuration module detailed design 39-47 4.2.2.1 start backup module 40-41 4.2.2.2 system operating parameters configuration module 41 4.2.2.3 system backup parameter configuration module 41-47 4.2. 4 System database operations module detailed design 47-54 4.2.4.1 database underlying operating module 47 4.2.4.2 database business operation module 47-54 < br /> 4.2.5 data file compression and decompression module detailed design 54-56 4.2.5.1 data file compression 55 4.2.5.2 data file decompression 55-56 4.2.6 data file transfer module detailed design 56-61 4.2.6.1 data transfer model implementation 56 4.2. 6.2 data transmission packet 56-58 4.2.6.3 file Transfer detection and registration process 58 4.2.6.4 configuration file transfer process 58-59 4.2.6.5 data file transfer process 59-60 4.2.6.6 transmission error control 60-61 4.2.7 system Implementation other problems 61-63 4.2.7.1 system Function interface display 61 4.2.7.2 system operation process control to achieve 61 4.2.7.3 thread of control to achieve 61-63 Chapter 5 database Backup system Test 63-73 5.1 system test Description 63-64 5.2 test environment 64 - 66 5.2.1 hardware environment 64-65 5.2.2 software environment 65 5.2.3 database environment 65-66 <br / > 5.3 test Configuration 66-71 5.3.1 backup parameter configuration 66-69 5.3.2 backup configuration 69 5.3.3 other parameters 69-71 5.4 testing process and results of 71-72 5.4.1 testing process 71 5.4.2 test Results 71-72 5.5 test results 72-73 Chapter 6 Summary and Outlook 73-75 6.1 Summary 73 <br / > 6.2 Prospects 73-75 References 75-76 Thanks 76-77 Summary 77-79 Abstract 79-80

Related dissertations

  1. Design and Fabrication of the Distributed Hybrid Wind-solar Power Generating System
    ZuoZhiFei ·Shenyang University of Technology ·2013 ·Master's thesis
  2. The Modular Design for Commercial Exhibition
    DuLing ·Tsinghua University ·2012 ·Master's thesis
  3. DCS Control System Research Based on Magnesite Plate Production Line
    ZhouMei ·Donghua University ·2014 ·Master's thesis
  4. Study on the Distributed Optical Fiber Acoustic Emission Sensor
    QuDanDan ·Harbin Engineering University ·2013 ·Master's thesis
  5. Complex Network Environment of Distributed Network Management and Software Implementation
  6. A Design and Development of Operation and Maintenance System for Zhejiang Social Security Center
    HeMingTao ·Zhejiang University of Technology ·2013 ·Master's thesis
  7. Research and Design of Distributed Vertical Search Engine Based on Hadoop
    JieYaoWei ·Hebei University of Technology ·2012 ·Master's thesis
  8. The Research of Distributed Topic Detection Method
    XiaoJuan ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. Design and Implemention of High Performance Text Clustering Algorithm Basic on Hadoop
    LinJiPo ·Northwest Normal University ·2013 ·Master's thesis
  10. The Development and Realization of Scenario Thesaurus Based on Machine Learning
    DiZuo ·South China University of Technology ·2013 ·Master's thesis
  11. Research on text clustering algorithm based on Cloud Computing
  12. Study on Infrared Image Quality Evaluation and Design of the Evaluation Software
  13. Based on the FPGA Four Image Segmentation Research
    ChenLiJun ·Tianjin University ·2012 ·Master's thesis
  14. Parallel distributed processing and application in rendering based on
  15. Design and Implementation of Distributed MySQL Database Cluster Online Monitoring System
    HuangXu ·Harbin Institute of Technology ·2012 ·Master's thesis
  16. Technology Research of the Distributed Networked Digital Equipment Datewarehouse
    PanLiang ·Harbin Engineering University ·2013 ·Master's thesis
  17. Skyline Queries for Moving Objects under Distributed Environment
    FanMingSuo ·Ningbo University ·2013 ·Master's thesis
  18. Research on Distributed Mining of Association Rules Algorithm Based on MapReduce
    FanYanYan ·Harbin Engineering University ·2013 ·Master's thesis
  19. Research on Top-k Queries Optimizing Algorithm on Uncertain Dataset
    YuYang ·Northeastern University ·2013 ·Master's thesis
  20. Application Research of Distributed Query and Optimization Method Based on Metadata
    ZengYanMei ·Donghua University ·2014 ·Master's thesis