【文章內容簡介】
%svrmgrlalter tablespace system end backup %svrmgrlalter tablespace rbs end backup %svrmgrlalter tablespace temp end backup %svrmgrlalter tablespace tools end backup %svrmgrlalter tablespace users end backup 做一個sql文件,如上所寫. The billing system can recover to the point of failure when the failure occur. 七、備份文件的恢復: : 以下是對"/etc/passwd"文件的恢復 (、放入正確的磁帶 (、運行以下命令恢復"/etc/passwd"文件 rsh mt f /dev/rmt/0 rew ( 找到最近的磁帶,向前進帶到最近的"/etc/passwd",比如要找星期三的"/etc/passwd"文件,運行如下命令) rsh mt f /dev/rmt/0n fsf 2 ufsrestore if :/dev/rmt/0n ufsrestore ls .: etc/ ufsrestore cd etc ufsrestore ls ./etc: passwd ufsrestore add passwd Warnign :./etc:File exists ufsrestore verbose verbose mode on ufsrestore extract Extract requested files You have not read any volumes yet . Unless you know which volume your file(s) are on you should start witch the last volume and work to wards the first. Specify next volume :1 extract file ./etc/passwd Add links Set directory mode ,ower,and times. set owner /mode for 39。.39。?(yn)n Directories already exit , set mode anyway?(yn)y ufsrestore quit 熱備份可以在數(shù)據(jù)庫打開打情況下進行,一般通過使用Alter命令改變表空間的狀態(tài)來開始進行備份的,備份完成后,要恢其原來狀態(tài),否則redo log 會錯配,引起數(shù)據(jù)庫下次啟動時對受影響的表空間進行完全覆蓋。熱備份的要求是: 方式下操作,在SQLDBA狀態(tài)下用alter database archivelog|noarchivelog命令可改變備份的模式。 。 。 一般情況,Oracle 以循環(huán)的方式寫入Online redo log 文件,當填滿第一個redo log文件后寫第二個,直至最后一個,最后一個被填滿后,后臺進程LGWR就覆蓋第一個,在Archivelog方式下,后臺進程ARCH在每一個redo log 文件被覆蓋前,給它作一個拷貝,一般,這些文檔的redo log 文件被寫入磁盤或磁帶中。如果磁盤空間夠用,建議使用磁盤,這樣可大大減少完成備份所需的時間。 在作熱備份之前, 設為true 將log_archive_dest 規(guī)定archive redo log 文件的位置: log_archive_dest=/dg/oracle/arch/arch log_archive_start=true 一旦數(shù)據(jù)庫運行在archivelog狀態(tài)下,就可以作備份了。熱備份的命令文件由三部分組成: 數(shù)據(jù)文件一個表空間一個空間地備份: 。 。 。 備份歸檔要作log 文件: redo log目標目錄中的文件 log 文件 用alter database backup controlfi