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