Study of Transaction Processing and Recovery Based on Log of the Embedded Database

Author
ShengYeXing
Advisor
LuYang
School
Hefei University of Technology
Major
Computer Software and Theory
Classification
TP309.3 Data backup and recovery
Degree
Master's thesis
Year
2007
Downloads
240
Citations
3

Request the full text

Abstract

Embedded Database System (EDB) is a new technology of database system rising in recent years. Based on mature database technology and special embedded device, it implements the data’s storage, organization and management on mobile devices and embedded devices.In this paper, an embedded database system is given. The EDB system is designed by module and hierarchy. The system has some good features like multi platform transplant and robust. The EDB system uses ARM develop and test environment andμC/OS-II real time operation system. It uses CF card as storage device and communicates with server by TCP/IP. The EDBMS realizes the functions of data management, SQL query, transaction process and recovery.The EDBMS deals with the transaction by the transaction execution task. It locks and releases data by the lock manage task. The 2PL protocol is used to ensure the serializable of the transation. A scheme which can dynamically changes lock granularity at running time according to the conflict of concurrent transaction is given. The scheme can balance the concurrency degree with the expenditure of the EDBMS. The scheme of concurrency control of the embedded real time database is introduced also.The embedded device is usually used in badly environment, so it would be in trouble and need to be recovered. The paper describes recovery techniques of EDB including log, checkpointing and reload and presents a EDB recovery system based on log server. Log server will reduce the expenditure of logging and checkpointing for EDB.

Table of contents

Abstract 6-7 Abstract 7-12 first chapter 12-19 1.1 paper background 12-13 1.2 embedded database widely used in society 13-15 1.3 Development of at home and abroad 15-18 1.3.1.Sybase the SQL Anywhere Studio.; 15-16 1.3.2.IBM DB2 Satellite and Everyplace version 16 1.3.3.Oracle Oracle Lite version 16-17 1.3.4 the Open BASE Mini 17 1.3.5.King the Base Lite,; 17-18 1.4 of this article, organizational structure 18-19 Chapter II the overall structure of the embedded database system and operating environment 19-31 2.1 database system model structure 19-20 2.2 embedded database architecture -22 2.3 embedded database system operation and experimental environment 22-31 2.3.1 hardware environment 22-25 2.3.1.1 experimental platform 22-23 2.3.1.2 storage devices 23-24 2.3.1.3 telecommunications equipment is 24-25 2.3.2 software environment 25-31 2.3.2.1 operating system 25-26 2.3.2.2 embedded file system 26-28 2.3.2.3 embedded TCP / IP protocol stack 28-30 2.3.2.4 programming and debugging environment 30-31 Chapter III embedded database transaction 31-49 3.1 embedded database transaction 31-32 3.2 embedded database transaction management structure 32-38 3.2.1 affairs task structure is 32-34 3.2.2 Transaction Scheduling tasks 34-36 3.2.2.1 Affairs is control block 34-35 The 3.2.2.2 Affairs is to create 35 <br / 3.2.2.3 the transaction scheduler and delete 35-36 3.2.3 Executive task 36-38 the 3.2.3.1 Affairs is control block 36-37 status of the implementation of the affairs of 3.2.3.2 37 3.2.3.3 affairs 37-38 3.3 lock management tasks 38-43 <br / > 3.3.1 transaction lock application for control blocks and lock status table 39-40 3.3.2 two locking protocol (2PL) 40-41 3.3.3 transaction lock application process 41-42 3.3.4 transaction lock release process 42-43 3.4 dynamic multi-granularity locking 43-45 3.5 real-time database transaction concurrency control strategies 45-48 3.5.1 real-time database characteristics 45-46 3.5.2 real-time database transaction concurrency control strategy 46 -48 3.5.2.1 pessimistic concurrency control is 46-47 3.5.2.2 optimistic concurrency control is 47-48 3.6 Summary 48 -49 Chapter embedded database log recovery processing 49-63 4.1 log 49-53 4.1.1 log classification 49 -51 4.1.1.1 the Undo log.; 50 4.1.1.2 Redo log.; 50 4.1.1.3 Undo / Redo log 50-51 51 4.1.3 4.1.2 physical log and logical log log registration rules 51-53 4.1.3.1 the WAL protocol 51 4.1.3.2 LAW agreement 51-53 4.2 checkpoint 53-55 4.2.1 action consistent backup and transaction consistency backup 53 <br / > 4.2.2 ping-pong (ping-pong) checkpoint algorithm 53-54 4.2.3 Fuzzy check point algorithm for fuzzy checkpointing 54 4.2.4 the Copy-on -Update algorithm 54-55 4.3 reinstall (Reloading) 55-57 4.3.1 failure types 55-56 4.3. 56 4.3.3 reinstall the algorithm to consider when reloading 56-57 4.4 log server-based embedded database recovery system 57 - 62 4.4.1 embedded database and log server architecture 57-58 4.4.2 embedded database logs and transaction submitted 58-59 4.4 .2.1 log format 58-59 4.4.2.2 Affairs is submitted 59 4.4.3 Log Server backup database updates 59-61 <br / 4.4.4 checkpoint 61-62 4.4.5 failure to resume processing the advantages and disadvantages of 62 system 4.4.6 62 4.5 of this chapter Summary 62-63 Chapter Summary and Outlook 63-65 5.1 summarize 63 5.2 Future 63 - 65 References 65-68 of the papers published during the master's degree 68

Related dissertations

  1. Analysis and Design of the OCS System Memory Data Management System
  2. Study of the Real-time Embedded Database in Transmission Product
  3. Buyout Fund’s Role in Chinese Merge and Acquisition Transactions
    LiuYiTao ·Shanghai Jiaotong University ·2013 ·Master's thesis
  4. Research on Anhui Private Economy Developmen Environment from the Perspective of Transaction Costs
    LuoYaDong ·Anhui University of Finance ·2014 ·Master's thesis
  5. Private Stone Gambling with Agents’ Heterogeneous Risk Preferences
  6. Coal Trading Information System Design and Implementation
  7. The Design and Implementation of Police Corps Command Cooperation System
    WuLinMing ·Tianjin University ·2012 ·Master's thesis
  8. The Design of Cinema Ticketing System by Mobile Terminal on Android
    QiuJunJu ·South China University of Technology ·2013 ·Master's thesis
  9. Research on Distributed Lock Technology
    ChenWenWu ·South China University of Technology ·2013 ·Master's thesis
  10. The Research and Realization of Data Safety Technology on Digitalized Campus
  11. The definition of the crime of forced transaction
    ZhangRong ·Nanjing Normal University ·2013 ·Master's thesis
  12. Analysis of rural land right of management circulation problems and Legal Countermeasures
    ChenXiaoXia ·Sichuan Academy of Social Sciences ·2013 ·Master's thesis
  13. Design of Automatic Focusing System for Reversing Camera
  14. Study on Constructing Log3D Digital Figure Based on Laser Triangulation Method
    DingYing ·Beijing Forestry University ·2013 ·Master's thesis
  15. Study on Poor Hydrocarbon Accumulation Complicated Fault-Block Reservoir Characteristics
    DaiBaiXiang ·Yangtze University ·2013 ·Master's thesis
  16. Downhole Elevation Drilling Logging System
  17. Research of Credit Risk in Chinese and Vietnamese Listed Commercial Banks Based on Neural Network Model
    TRAN DUY VU NGOC LAN ·Hunan University ·2012 ·Doctoral dissertation
  18. Study on Development Courses of Hangzhou Sijiqing Clothing Specialized Market from the Perspective of Transaction Cost
    GanShuMin ·Zhejiang University of Finance ·2013 ·Master's thesis
  19. Division of Labor and Agricultural Industrialization Organization
    ShengXianYou ·Anhui Agricultural University ·2005 ·Master's thesis
  20. The Simulation of Land Development Rights’ Transfer and Exchange between Provinces in China
    GaoZuo ·Zhejiang University ·2012 ·Master's thesis