sql 重建控制檔案resetlogs和noresetlogs

lovestanford發表於2014-06-23


RESETLOGS  Specify RESETLOGS if you want Oracle Database to ignore the contents of the files listed in the LOGFILE clause. These files do not have to exist. Each redo_log_file_spec in the LOGFILE clause must specify the SIZE parameter. The database assigns all online redo log file groups to thread 1 and enables this thread for public use by any instance. After using this clause, you must open the database using the RESETLOGS clause of the ALTER DATABASE statement.

NORESETLOGS  Specify NORESETLOGS if you want Oracle Database to use all files in the LOGFILE clause as they were when the database was last open. These files must exist and must be the current online redo log files rather than restored backups. The database reassigns the redo log file groups to the threads to which they were previously assigned and reenables the threads as they were previously enabled.

區別在於是否還需要當前的線上日誌檔案組

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21754115/viewspace-1192178/,如需轉載,請註明出處,否則將追究法律責任。

相關文章