備份資料庫資料檔案
> rman
RMAN> connect target /
RMAN> backup database;
RMAN> backup current controlfile spfile;
恢複庫,需在mount下執行 或者 先把資料檔案offline
SQL> startup mount
> rman target /
RMAN> restore database;
SQL> recover database;
恢複控制檔案,nomount下執行
RMAN> restore controlfile;
檢視備份
RMAN> list backup;
檢視資料庫表空間:
RMAN> report schema;