(1) NORESETLOGS
The NORESETLOGSoption does not clear the redo log files during startup and the online redologs to be used for recovery. Only used in scenario where MANUAL RECOVERY isstarted, CANCEL is used, and then RECOVER DATABASE is started.
使用noresetlog,在线日志不会被清除,而是用来恢复数据库。
(2)RESETLOGS
CAUTION: Never use RESETLOGS unlessnecessary.
注意:不必要的时候不要使用resetlogs选项
Once RESETLOGS is used then the redo logfiles cannot be used and any completed transactions in those redo logs arelost!!
一但使用了resetlogs,在线日志将不能被使用,里面记录重做事务数据将会丢失。
Before using the RESETLOGS option take anoffline backup of the database.
使用resetlogs之前先备份数据库。
The RESETLOGSoption clears all the online redo logs and modifies all the online data filesto indicate no recovery is needed. After resetting the redo logs none of theexisting log files or data file backups can be used.
使用resetlogs,在线日志将会被清除,所有数据文件被置为不需要恢复,原有的备份将无效。
In the control file, the log sequence number is modified,which is very important for recovery purposes. Therecovery will be applied only to the log files whose sequence number is greaterthan log sequence number in the control file. One has to be very cautious whenusing RESETLOGS option. It is important to remember that all datafiles must beonline otherwise they will become useless once the database is up。
在控制文件里,日志的序列号会被修改,这对于恢复来说是很重要的,数据库会需要恢复比控制文件记录数大的在线日志里的重做信息。使用resetlog命令要谨慎,所有的数据文件必须都处于在线状态,否则一旦数据库处于open状态后,offline的数据文件将不会被需要,数据会丢失。