- 相關推薦
數據備份與恢復控件的開發Delphi+SQL
畢業論文
目 錄
前言 1
1 概論 2
1.1 數據備份與恢復定義 2
1.2 數據備份的類型 2
1.3 數據備份的重要性 3
2 開發平臺簡介 4
2.1 Delphi簡介 4
2.2 SQL語言介紹 4
3 需求分析 6
3.1 開發目的 6
3.2 系統背景 6
3.3 功能定義 6
3.4 系統目標 6
3.5 軟件功能的結論 6
3.6 功能模塊功能 7
4 總體設計 8
4.1 功能模塊 8
4.2 數據庫引擎選擇 8
4.2.1 SQL Server數據庫連接方法 8
4.2.2 Access數據庫連接方法 9
4.2.3 ORACLE連接方法 9
4.2.4 數據庫連接的實現 12
4.2.5 數據備份與恢復模塊 13
4.3 各功能模塊功能介紹 15
5 詳細設計 16
5.1 設計原則 16
5.2 主模塊設計 16
5.3 子模塊設計 18
5.3.1 SQL-Server 數據備份與恢復 18
5.3.2 Oracle數據備份與恢復 28
5.3.3 Access數據備份與恢復設計 33
5.4 系統的封裝 37
5.4.1 DLL文件的生成 37
5.4.2 調用DLL中封裝的窗口 37
6 系統測試 38
6.1 系統測試概念 38
6.2 測試環境 38
6.3 數據備份與恢復系統測試 38
6.4 數據備份速度測試 38
總結 40
參考文獻 41
致謝 42
數據備份與恢復控件的開發
摘要:在當今信息技術時代,某些分布式系統使用了多種不同的數據庫,管理多種數據庫就存在著1定的難度,而這些數據庫的備份方式也相差較大。基于這種情況,我在設計中開發了1個能兼容多種數據庫的數據庫備份與恢復的控件。該數據庫備份與恢復控件是數據管理的技術,是計算機科學的重要組成部分。其開發的功能主要包括:對各種不同格式的數據進行連接,顯示數據庫數據,并根據用戶的查詢操作,顯示各種數據結構。根據用戶的不同操作,選擇不同的格式將數據庫中數據進行導入導出,備份與恢復。
使用 MICROSOFT公司的 SQL-Server作為數據庫語言,使用 DELPHI作為開發工具,再分析各種數據庫連接的區別,利用其提供的各種面向對象的開發工具, 使用ADO,DBExpress控件連接數據庫,并在分析數據備份與恢復的各種原理的基礎上開發出產品。它不但能夠完成對多種數據庫的數據及數據結構的備份與恢復等功能;而且具有程序設計合理、操作簡單、運行可靠、保密性強等特點。
關鍵字:ado;連接數據庫;數據庫備份;數據庫恢復
The Development of the Controls of the Data Backup with Restoration
Abstract : In the modern time of information technology, certain of distributional systems used many kinds of different database .To manage many kinds of databases have had certain diffialty. But the modes of these database backup are rather different with each other. Based on this situation, I developed a control of database backup with restoration which is able to contain many Kinds of database in design.This control of the database backup with restoration is the technology of the data management, and the important constituent part of computer science. Its developing function mainly includes. Proceecl connection to data that with various different patterns and show the kins of construction of data by users’ inguiry operation. It chooses the different form to make the data in database to carry on the database in iducts derives, backup and restoration.
I use the SQL-Server of the MICROSOFT company as the database language and the Delphi as developing tool to analyse the differences of various databases connection, Then I using the various object-oriented development tools that it provides and the ADO, DBExpress controls to connect to connect the database, and on the basis of various principles of analycing the data backup with restoration to develop the products. not only it can complete the functions of the data of various database and data constituent backup and restoration,but also possesses the characteristics of programming reasonably, the operation simply, the movement reliably, the secrecy strongly and so on.
The thesis included striving for the analysis, the system design, the detailed design and the software test, and introduced the whole process of thesis development of the data backup with restoration system systematically.
Keywords: ado; Connection databases; Database backup; Database restoration
前言
隨著信息時代和互聯網技術的飛速發展,企業的信息數據量也急劇增長。如何避免突如其來的數據破壞,提高數據的安全性和數據恢復能力1直是用戶關注的焦點。在我們的現實世界中,存在很多備份策略,如RAID技術,雙機熱備,集群技術發展等。有很多時候,系統的備份就能解決數據庫備份的問題,如磁盤介質的損壞,往往從鏡像上面做簡單的恢復,或簡單的切換機器就可以了。但是,上面所說的系統備份策略是從硬件的角度來考慮備份與恢復的問題,這是需要代價的。
我們所能選擇備份策略的依據是:丟失數據的代價與確保數據不丟失的代價之比。還有的時候,硬件的備份有時根本滿足不了現實需要,假如你誤刪了1個表,但是你又想恢復的時候,數據庫的備份就變得重要了。所謂備份,就是把數據庫復制到轉儲設備的過程。其中,轉儲設備是指用于放置數據庫拷貝的磁帶或磁盤。能夠進行什么樣的恢復依賴于什么樣的備份。作為數據管理員,有責任從以下3個方面維護數據庫的可恢復性:
使數據庫的失效次數減到最少,從而使數據庫保持最大的可用性;
當數據庫不可避免地失效后,要使恢復時間減到最少,從而使恢復的效率達到最高;
當數據庫失效后,要確保盡量少的數據丟失或根本不丟失,從而使數據具有最大的可恢復性。
備份過程應該滿足系統要求的可恢復性。如果每天都能備份當然會很理想,但要考慮其現實性。只要仔細計劃,并想辦法達到數據庫可用性的底線,進行成功的備份與恢復也是可能的。數據庫備份工具就是針對這種數據丟失的情況而開發設計的1種導出導入數據的工具。1般數據庫都有自帶的備份功能,像1些專業的數據庫ORACLE、MS SQL、SYBASE這些專業的數據庫都有備份的功能。但是信息社會的飛速發展使得對數據庫備份這個領域提出了更高的要求。如今網絡分布式數據庫大行其道,1個分布式數據庫可能會應用到好幾個不同的數據庫,而每個數據庫的備份功能并不是都相同的,所以對開發1種能備份多種數據庫的工具的需求是非常強烈的,在這種巨大需求下,許多多數據庫的備份工具相繼出現。現今國內比較好的數據庫備份工具有:帝國備份王(Eback),萬能數據庫備份王,數據庫備份精靈,SQL數據庫備份與恢復系統。這些數據庫備份工具的兼容性都很不錯,參考以上幾種數據庫備份工具,使用DELPHI作為開發工具,SQL作為數據庫語言,開發了1個能兼容多種數據庫的數據庫備份與恢復的控件,該控件操作簡單,運行可靠,可移植性強,具有對SQL數據庫,Access數據庫,ORACLE數據庫備份與恢復的功能。
【數據備份與恢復控件的開發Delphi+SQL】相關文章:
企業數據備份與恢復技術研究07-28
計算機數據庫備份與恢復技術的應用與實現09-06
計算機數據庫的主要備份方式及恢復技術09-30
計算機數據庫備份與恢復技術的應用與實現10-08
淺論數據備份與容災系統10-09
計算機與現代化投稿計算機數據庫的主要備份方式及恢復技術06-26
利用VC中的通訊控件開發串形通信程序09-09