【文章內(nèi)容簡介】
%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 做一個(gè)sql文件,如上所寫. The billing system can recover to the point of failure when the failure occur. 七、備份文件的恢復(fù): ?。? 以下是對(duì)"/etc/passwd"文件的恢復(fù) (、放入正確的磁帶 (、運(yùn)行以下命令恢復(fù)"/etc/passwd"文件 rsh mt f /dev/rmt/0 rew ( 找到最近的磁帶,向前進(jìn)帶到最近的"/etc/passwd",比如要找星期三的"/etc/passwd"文件,運(yùn)行如下命令) 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ù)庫打開打情況下進(jìn)行,一般通過使用Alter命令改變表空間的狀態(tài)來開始進(jìn)行備份的,備份完成后,要恢其原來狀態(tài),否則redo log 會(huì)錯(cuò)配,引起數(shù)據(jù)庫下次啟動(dòng)時(shí)對(duì)受影響的表空間進(jìn)行完全覆蓋。熱備份的要求是: 方式下操作,在SQLDBA狀態(tài)下用alter database archivelog|noarchivelog命令可改變備份的模式。 。 。 一般情況,Oracle 以循環(huán)的方式寫入Online redo log 文件,當(dāng)填滿第一個(gè)redo log文件后寫第二個(gè),直至最后一個(gè),最后一個(gè)被填滿后,后臺(tái)進(jìn)程LGWR就覆蓋第一個(gè),在Archivelog方式下,后臺(tái)進(jìn)程ARCH在每一個(gè)redo log 文件被覆蓋前,給它作一個(gè)拷貝,一般,這些文檔的redo log 文件被寫入磁盤或磁帶中。如果磁盤空間夠用,建議使用磁盤,這樣可大大減少完成備份所需的時(shí)間。 在作熱備份之前, 設(shè)為true 將log_archive_dest 規(guī)定archive redo log 文件的位置: log_archive_dest=/dg/oracle/arch/arch log_archive_start=true 一旦數(shù)據(jù)庫運(yùn)行在archivelog狀態(tài)下,就可以作備份了。熱備份的命令文件由三部分組成: 數(shù)據(jù)文件一個(gè)表空間一個(gè)空間地備份: 。 。 。 備份歸檔要作log 文件: redo log目標(biāo)目錄中的文件 log 文件 用alter database backup controlfi