1. 程式人生 > >ORACLE用RMAN恢復可能用到的命令

ORACLE用RMAN恢復可能用到的命令

SQL>startup force 強制重啟 SQL>select checkpoint_change# from vKaTeX parse error: Expected 'EOF', got '#' at position 53: …eckpoint_change#̲ from vdatafile_header; 檢視資料檔案的scn號 RMAN>restore database; 重建資料檔案 RMAN>recover databae; 恢復資料檔案 RMAN>recover database until sequence 3; 恢復資料檔案到3歸檔 RMAN>recover database until scn 104956; 恢復資料檔案到最大的scn號 RMAN>restore controlfile from ‘/home/oracle/bak/ctl_FSTAB_20181006_118_1’; 重建控制檔案 RMAN>alter database mount; 開啟資料庫到mount RMAN>list failure; 列出失敗的原因 RMAN>advise failure; 檢視建議 RMAN>repair failure; 修復失敗 RAMN>alter database open; 開啟資料庫到open RMAN>alter database open resetlogs; 開啟資料庫到open並重置日誌