- 相關推薦
數(shù)據(jù)備份與恢復控件的開發(fā)Delphi+SQL
畢業(yè)論文
目 錄
前言 1
1 概論 2
1.1 數(shù)據(jù)備份與恢復定義 2
1.2 數(shù)據(jù)備份的類型 2
1.3 數(shù)據(jù)備份的重要性 3
2 開發(fā)平臺簡介 4
2.1 Delphi簡介 4
2.2 SQL語言介紹 4
3 需求分析 6
3.1 開發(fā)目的 6
3.2 系統(tǒng)背景 6
3.3 功能定義 6
3.4 系統(tǒng)目標 6
3.5 軟件功能的結論 6
3.6 功能模塊功能 7
4 總體設計 8
4.1 功能模塊 8
4.2 數(shù)據(jù)庫引擎選擇 8
4.2.1 SQL Server數(shù)據(jù)庫連接方法 8
4.2.2 Access數(shù)據(jù)庫連接方法 9
4.2.3 ORACLE連接方法 9
4.2.4 數(shù)據(jù)庫連接的實現(xiàn) 12
4.2.5 數(shù)據(jù)備份與恢復模塊 13
4.3 各功能模塊功能介紹 15
5 詳細設計 16
5.1 設計原則 16
5.2 主模塊設計 16
5.3 子模塊設計 18
5.3.1 SQL-Server 數(shù)據(jù)備份與恢復 18
5.3.2 Oracle數(shù)據(jù)備份與恢復 28
5.3.3 Access數(shù)據(jù)備份與恢復設計 33
5.4 系統(tǒng)的封裝 37
5.4.1 DLL文件的生成 37
5.4.2 調(diào)用DLL中封裝的窗口 37
6 系統(tǒng)測試 38
6.1 系統(tǒng)測試概念 38
6.2 測試環(huán)境 38
6.3 數(shù)據(jù)備份與恢復系統(tǒng)測試 38
6.4 數(shù)據(jù)備份速度測試 38
總結 40
參考文獻 41
致謝 42
數(shù)據(jù)備份與恢復控件的開發(fā)
摘要:在當今信息技術時代,某些分布式系統(tǒng)使用了多種不同的數(shù)據(jù)庫,管理多種數(shù)據(jù)庫就存在著1定的難度,而這些數(shù)據(jù)庫的備份方式也相差較大;谶@種情況,我在設計中開發(fā)了1個能兼容多種數(shù)據(jù)庫的數(shù)據(jù)庫備份與恢復的控件。該數(shù)據(jù)庫備份與恢復控件是數(shù)據(jù)管理的技術,是計算機科學的重要組成部分。其開發(fā)的功能主要包括:對各種不同格式的數(shù)據(jù)進行連接,顯示數(shù)據(jù)庫數(shù)據(jù),并根據(jù)用戶的查詢操作,顯示各種數(shù)據(jù)結構。根據(jù)用戶的不同操作,選擇不同的格式將數(shù)據(jù)庫中數(shù)據(jù)進行導入導出,備份與恢復。
使用 MICROSOFT公司的 SQL-Server作為數(shù)據(jù)庫語言,使用 DELPHI作為開發(fā)工具,再分析各種數(shù)據(jù)庫連接的區(qū)別,利用其提供的各種面向對象的開發(fā)工具, 使用ADO,DBExpress控件連接數(shù)據(jù)庫,并在分析數(shù)據(jù)備份與恢復的各種原理的基礎上開發(fā)出產(chǎn)品。它不但能夠完成對多種數(shù)據(jù)庫的數(shù)據(jù)及數(shù)據(jù)結構的備份與恢復等功能;而且具有程序設計合理、操作簡單、運行可靠、保密性強等特點。
關鍵字:ado;連接數(shù)據(jù)庫;數(shù)據(jù)庫備份;數(shù)據(jù)庫恢復
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
前言
隨著信息時代和互聯(lián)網(wǎng)技術的飛速發(fā)展,企業(yè)的信息數(shù)據(jù)量也急劇增長。如何避免突如其來的數(shù)據(jù)破壞,提高數(shù)據(jù)的安全性和數(shù)據(jù)恢復能力1直是用戶關注的焦點。在我們的現(xiàn)實世界中,存在很多備份策略,如RAID技術,雙機熱備,集群技術發(fā)展等。有很多時候,系統(tǒng)的備份就能解決數(shù)據(jù)庫備份的問題,如磁盤介質的損壞,往往從鏡像上面做簡單的恢復,或簡單的切換機器就可以了。但是,上面所說的系統(tǒng)備份策略是從硬件的角度來考慮備份與恢復的問題,這是需要代價的。
我們所能選擇備份策略的依據(jù)是:丟失數(shù)據(jù)的代價與確保數(shù)據(jù)不丟失的代價之比。還有的時候,硬件的備份有時根本滿足不了現(xiàn)實需要,假如你誤刪了1個表,但是你又想恢復的時候,數(shù)據(jù)庫的備份就變得重要了。所謂備份,就是把數(shù)據(jù)庫復制到轉儲設備的過程。其中,轉儲設備是指用于放置數(shù)據(jù)庫拷貝的磁帶或磁盤。能夠進行什么樣的恢復依賴于什么樣的備份。作為數(shù)據(jù)管理員,有責任從以下3個方面維護數(shù)據(jù)庫的可恢復性:
使數(shù)據(jù)庫的失效次數(shù)減到最少,從而使數(shù)據(jù)庫保持最大的可用性;
當數(shù)據(jù)庫不可避免地失效后,要使恢復時間減到最少,從而使恢復的效率達到最高;
當數(shù)據(jù)庫失效后,要確保盡量少的數(shù)據(jù)丟失或根本不丟失,從而使數(shù)據(jù)具有最大的可恢復性!
備份過程應該滿足系統(tǒng)要求的可恢復性。如果每天都能備份當然會很理想,但要考慮其現(xiàn)實性。只要仔細計劃,并想辦法達到數(shù)據(jù)庫可用性的底線,進行成功的備份與恢復也是可能的。數(shù)據(jù)庫備份工具就是針對這種數(shù)據(jù)丟失的情況而開發(fā)設計的1種導出導入數(shù)據(jù)的工具。1般數(shù)據(jù)庫都有自帶的備份功能,像1些專業(yè)的數(shù)據(jù)庫ORACLE、MS SQL、SYBASE這些專業(yè)的數(shù)據(jù)庫都有備份的功能。但是信息社會的飛速發(fā)展使得對數(shù)據(jù)庫備份這個領域提出了更高的要求。如今網(wǎng)絡分布式數(shù)據(jù)庫大行其道,1個分布式數(shù)據(jù)庫可能會應用到好幾個不同的數(shù)據(jù)庫,而每個數(shù)據(jù)庫的備份功能并不是都相同的,所以對開發(fā)1種能備份多種數(shù)據(jù)庫的工具的需求是非常強烈的,在這種巨大需求下,許多多數(shù)據(jù)庫的備份工具相繼出現(xiàn),F(xiàn)今國內(nèi)比較好的數(shù)據(jù)庫備份工具有:帝國備份王(Eback),萬能數(shù)據(jù)庫備份王,數(shù)據(jù)庫備份精靈,SQL數(shù)據(jù)庫備份與恢復系統(tǒng)。這些數(shù)據(jù)庫備份工具的兼容性都很不錯,參考以上幾種數(shù)據(jù)庫備份工具,使用DELPHI作為開發(fā)工具,SQL作為數(shù)據(jù)庫語言,開發(fā)了1個能兼容多種數(shù)據(jù)庫的數(shù)據(jù)庫備份與恢復的控件,該控件操作簡單,運行可靠,可移植性強,具有對SQL數(shù)據(jù)庫,Access數(shù)據(jù)庫,ORACLE數(shù)據(jù)庫備份與恢復的功能。
【數(shù)據(jù)備份與恢復控件的開發(fā)Delphi+SQL】相關文章:
企業(yè)數(shù)據(jù)備份與恢復技術研究07-28
計算機數(shù)據(jù)庫備份與恢復技術的應用與實現(xiàn)09-06
計算機數(shù)據(jù)庫的主要備份方式及恢復技術09-30
計算機數(shù)據(jù)庫備份與恢復技術的應用與實現(xiàn)10-08
巧用ActiveX控件實現(xiàn)郵件附件批量備份06-28
淺論數(shù)據(jù)備份與容災系統(tǒng)10-09
基于Delphi的VCL控件開發(fā)與實現(xiàn)論文10-01
利用VB的MSComm控件實現(xiàn)GPS數(shù)據(jù)采集07-02