摘要:當(dāng)我們對(duì)數(shù)據(jù)庫(kù)進(jìn)行操作時(shí),有時(shí)會(huì)因?yàn)橛?jì)算機(jī)的軟、硬件故障或者人為原因,導(dǎo)致數(shù)據(jù)庫(kù)的破壞或者數(shù)據(jù)的丟失,造成不可估量的損失。為了減少損失,我們必須定時(shí)對(duì)數(shù)據(jù)庫(kù)進(jìn)行備份。該文主要介紹數(shù)據(jù)庫(kù)的備份設(shè)備、類型,并結(jié)合“學(xué)生信息管理系統(tǒng)”實(shí)例講解數(shù)據(jù)庫(kù)的備份和還原方法,從而提高數(shù)據(jù)庫(kù)的安全性。
關(guān)鍵詞:SQL Server 2005;數(shù)據(jù)庫(kù)的備份與還原
中圖分類號(hào):TP311 文獻(xiàn)標(biāo)識(shí)碼:A 文章編號(hào):1009-3044(2014)20-4654-03
Introduction to the SQL Server 2005 Database Backup and Restore
YU Xiao-na
(Qingyuan Polytechnics,Qingyuan 511510,China)
Abstract: When we operate the database, sometimes because the computer software and hardware failures or man-made reasons, lead to the destruction of the database or data loss, causing immeasurable loss. In order to reduce the loss, We must regularly to backup database.This paper mainly introduces the database backup device, type, and examples of \"student information management system\" interpretation methods for backup and restore database, so as to improve the security of the database.
Key words: SQL SERVER 2005; database backup and restore
在計(jì)算機(jī)的日常使用過程中,有經(jīng)驗(yàn)的用戶會(huì)定期對(duì)一些重要的資料、文件進(jìn)行備份。同樣,作為一個(gè)數(shù)據(jù)庫(kù)管理員和用戶,為了不因?yàn)檎`操作或者惡意操作、物理磁盤的數(shù)據(jù)沖突、外界突發(fā)事件的影響等原因,使數(shù)據(jù)庫(kù)出現(xiàn)數(shù)據(jù)丟失甚至崩潰,造成不可估量的損失。我們?cè)谑褂脭?shù)據(jù)庫(kù)過程中要形成一種定期對(duì)數(shù)據(jù)庫(kù)進(jìn)行備份的習(xí)慣,出現(xiàn)問題后可將最近備份的數(shù)據(jù)還原,從而提高了數(shù)據(jù)庫(kù)的安全性。
1 數(shù)據(jù)庫(kù)的備份設(shè)備
在創(chuàng)建備份時(shí),必須選擇存放備份數(shù)據(jù)的備份設(shè)備。SQL Server 2005數(shù)據(jù)庫(kù)的備份設(shè)備主要有3種,分別為磁盤備份設(shè)備、磁帶備份設(shè)備和命名管道備份設(shè)備。
磁盤備份設(shè)備一般是硬盤或者其他磁盤類存儲(chǔ)介質(zhì)上的文件,一般按照普通的操作系統(tǒng)文件進(jìn)行管理。磁盤備份設(shè)備可以定義在數(shù)據(jù)庫(kù)服務(wù)器的本地磁盤上(最好不要定義在存放SQL Server 2005數(shù)據(jù)庫(kù)的磁盤上,可避免因不可挽回的磁盤介質(zhì)故障,永久地失去數(shù)據(jù)和備份信息),也可以定義在通過網(wǎng)絡(luò)連接的遠(yuǎn)程磁盤上(因?yàn)橥ㄟ^網(wǎng)絡(luò)備份比較容易發(fā)生故障,所以一定要在規(guī)劃好備份策略后再進(jìn)行嘗試)。……