冷備份:
冷備份在歸檔模式下完成。
關閉資料庫
備份所有的資料檔案、初始化參數檔案、控制檔案、重做日志、歸檔的重做日志。
參數檔案:show parameter spfile;
控制檔案: select * from v$controlfile;
重做日志檔案:select * from v$logfile;
歸檔日志檔案:select sequence#,first_time v$loghist;
熱備份:
必須在歸檔模式下完成:
archive log list;檢視目前資料庫是否為歸檔模式。若不是。
shutdown immediate;
startup mount;
alter database archivelog;
archive log list;
alter database open;
shutdown immediate;
startup;