Design and Implementation of the Online Physical Full Backup and Restore System for GBase
- Author
- FuYongZhen
- Advisor
- CuiWeiLi
- School
- Jilin University
- Major
- Computer System Architecture
- Classification
- TP309.3 Data backup and recovery
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 21
- Citations
- 0
Abstract
The development of database with independent intellectual property is an important step for our information industry. There is an urgent requirement of it in national defense and e-government. The GBase DBMS is a homemade database with independent intellectual property, which nanda general company and a graduate school upgrade by their database product archetype. The online physical full backup and restore system that this paper introduces is one of basic peripheral tools of GBase DBMS, which has important meaning on backing up the information system, restoring and popularizing the whole database product.Most database manufacturers have afforded their online physical full backup and restore system. For example, the RMAN of international database Oracle, the online physical full backup and restore tool of homemade database DM. So there is a great requirement to design the online physical full backup and restore system that fits the property of GBase.This system is based on the checkpoint LSN mechanism, which makes it be impossible of integrality of backup and restore. As for online physical full backup, backup starts with initiative checkpoint, and ends with terminative checkpoint. In the process of backing up data files, it implements to backup log record information changed. The content of backup log record is log record information changed between initiative checkpoint LSN and terminative checkpoint LSN. As for restore, restoring is also getting up initiative checkpoint, and terminating at terminative checkpoint, in other words, the process of restoring to analyze the log record begins from the initiative checkpoint LSN, stops at the terminative checkpoint LSN.This system adopts the C/C++ for programming, which has finished the design of Windows and Linux edition. System is made up of two parts: The backup and restore. The backup has mainly four modules: The module of backup analysis, which is used for analyzing the control file, parses data and log record file information; The module of backup data and log is used to backup data file and the log record information having been changed; The module of treating with backup log record file, which is used in arranging backup log record file, realizes the completeness treating of backup log record file; The completeness that backup the table structure files and the control file is the complementarities of backup system. Restore includes mainly five important modules: The module of restore pretreatment realizes the prepared job before actual restore, mainly including clearing up the restore catalog, restoring the data file to allocating path, restoring the log record file to data base path, and restoring table structure files and control file; The module of restoring analysis process implements to analyze log recordand stores them to hash table; The process module of redo is used to apply the hash table data to data page; The process module of undo is used in undoing the uncommitted transaction having been applied to data page; The module of consistency treatment which finishes the last job of restore makes the data file come to an agreement with the log file information.The first characteristic of system is the tactic that the backup data and log record file adopts: the backup of log record must be made once when certain amount backup of data file has been finished. It resolved the problem of data being lost since log record circulation write brings. Because of backup data file is above GB level mostly, in the process of backup, transactions that is in the active session, extremely, have possibility to bring about circulation write of log record file, and then bring about data being lost.The second characteristic of system is the tactic that how process of redo increases data file: to increase data file according to the setting of control file; it is that the size of the data file increased one time must keep according with control file. Such has decreased the rate of the frequency of expanding the data file (if increasing data according to real needing, it will have possibility to bring about this condition that expanding the data file frequently), and does most work for implementing consistency matching of the size that data file records and real size of data file.The third characteristic of system is that making use of the batch treatment command that operation system provides to realize part of backup and restore operation and the job invoking the main procedure. Because of the GBase table structure file and the table space data file are to part, and every table must be corresponding with table structure file, for decreasing complicated degree of programming, implementing backup and restore of table structure and control file using the batch treatment command of OS (operating system utilities) is a reasonable choice, and making use of command of OS has better efficient, stable, flexible characteristic and so on. After completing this backup and restore system, we have carried out detailed science testing on the systematic integrality on windows platform, and have carried out comparison with the same kind of database firm product of homeland and international. The results of test and comparison verified that the system can accomplishes backup and restore of the data successfully on the function, and reach no mistake about testing on million data; the efficiency of the system can achieve and even exceed the level of the native system.There is some work remained to improve and implement, for the system is just the first version and time is restricted. On the function, For realizing the entire backup and restore system, system must get up with organic union of assignment administration, such ability of backup and restore will play outmore well; The backup and restore just has been finished on local, the remote backup and restore will be the next work considered; At present the backup and restore is based on the operation system file rank, which basing on naked equipment hasn’t been implemented. On performance, system will finish multithreading fast physical backup. All of the above problems will be achieved in the later version.
Table of contents
Feed 4-8
Introduction 8-11
1.1 Background 8
1.2 Research significance <br / > 1.3 Research content and target 8-9
1.4 organizational structure 9-11
Chapter II database backup and recovery 11-15
2.1 backup the importance of recovery 11-12
2.2 backup and recovery concepts common 12-15
2.2.1 backup and recovery 12
2.2.2 backup Recovery Concepts 12-13
2.2.3 backup and recovery strategy 13-14
2.2.4 common backup recovery workflow 14-15
first the chapters online physics completely backup and recovery needs analysis 15-19
3.1 GBase About 15
3.2 backup and recovery system overall structure 15-16
3.3 the online physics completely backup and recovery platform and content requirements 16
3.4 online physical full backup to restore functional requirements 16-18
3.4.1 online physical full backup functional requirements are found; 17
3.4.2 Physical completely restore functional requirements 17-18
3.5 backup and recovery performance requirements 18-19
fourth chapter. theoretical foundation and file storage backup and recovery 19-35 4.1 backup and recovery
theoretical basis the 19-28 the 4.1.1 memory structure
nbsp 19-21
4.1.1.1 memory type ; 19-20
4.1.1.2 Data Access 20-21
4.1.2 Recovery and atomicity 21-22
4.1.3 based on log recovery 22-28
4.1.3.1 redo and undo log works the 23-24
4.1.3.2 undo / redo log recovery 24-26 < br /> 4.1.3.3 physical log and physical - the logic the log 26-27
4.1.3.4 checkpoint mechanism 27-28
4.2 database file storage 28 -35
4.2.1 table space data file storage 29-31
4.2.1.1 page structure 29-30
4.2.1.2 tablespace control page 30-31
4.2.2 log space data file storage 31-34
4.2.2.1 log block header information 31
4.2.2.2 log block tail Information nbsp 31-32
4.2.2.3 checkpoint blocks; the sequence offset relationship of 32
4.2.2.4 log 32-34
4.2 .3 undo the log storing 34-35 of
fifth chapter online physical completely backup recovery principle 35-44
5.1 online physical full backup principle 35-38 < br /> 5.1.1 backup files overall structure 35-36
the 5.1.1.1 backup log file structure 36
5.1.2 backup algorithm 36-38 < br /> 5.2 physical recovery principle the 38-42 5.2.1 restore files
overall structural 39
5.2.2 restore memory schematic 39-40
5.2.3 recovery algorithm the 40-42
5.3 the Oracle online backup and recovery mechanism 42-44
Chapter online physical full backup to restore the system design and implementation 44-57
6.1 language and platform selection 44-45
6.2 online physical full backup system design and implementation of 45-49
6.2.1 backup analysis of the process of design 45-46
6.2.2 backup data and log design 46-48
6.2.3 backup log file post-processing design 48-49 < br /> 6.2.4 backup tables structure and control files designed 49
6.3 physical recovery system design and implementation 49-57
6.3.1 restore necessary preparations before design 49-50
6.3.2 recovery analysis process design nbsp 50-54
6.3.3 redo process design; 54-55
6.3.4 the revocation process design 55-57
Chapter VII online physical backup and recovery test at 57-60
7.1 system integrity test 57-58
7.2 System performance test 58-60
Chapter VIII Summary and Outlook the 60-61
8.1 summarizes 60
8.2 Future work 60-61
Reference the 61-62
Abstract 62-64
Abstract 64-67
Acknowledgements 67 -68
tutors and author 68
Related dissertations
- Study of O2O Marketing Mode of M Company
- The Study of Online Luxury Fashion Consumer BuyingMotives and Consumer Groups
- Research on the Online IRM of Listed Real Estate Companies in China
- Online Spirit
- Design and Implementation of System Analysis and Evaluation of Teaching Method Based on Web
- China women's water polo team part land training physical regulation scheme and its trial in Sichuan's verification
- Study and Analysis of the Opening Situation about South-Exhibition and North-Ice in Shanghai
- Shandong Province in Jinan University Student Physical Training Present Situation Investigation and study of the physique weak
- Physical Survey of Xiamen City High School Students in the PE Curriculum Reform
- The Study on Exploitation and Utilization of Resources of Middle School Physics Demonstration Experiment
- The Effect of Taekwondo Exercise Intervention to Primary School Students' Physique Level
- E-service Quality Model for China Government Portals Based on Citizens' Perspective
- Research on the Ideology of Kingcraft of Zheng Xiaoxu
- Study on return repair armour, shedding, crisp powder ceramic relics glue painting
- Copy and Research on the Color Restoration of the Damaged Buddha of Tang Dynasty in205Caves of Mogao Grouoes
- Study on Flogging, Bludgeon Issues of the Tapg Dynasty
- The Die Wu Xiaoxiang Writing Report
- Metaphor and Image Theory of the Body Schema Narrate
- City Impression - try to real and image expression on the mixed space
- Establishment of Seaweed Beds of Sargassum Thunbergii in Intertidal Zone