首页 > Linux操作系统 > Linux操作系统 > 控制文件失效后进行恢复的两点问题
当所有控制文件都失效后,进行恢复时有两点需要注意。
当所有控制文件都失效时,需要重建控制文件。
其中有::resetlogs 或是norestlogs 子句 ,从实验和分析后发现用resetlogs 或noresetlogs 没有分别,因为新建的控制文件里的日志序号和在线日志文件的序号是不一样的。这也导出对控制文件进行备份的两个语句(alter database backup controlfile to trace resetlogs; alter database backup controlfile to trace noresetlogs;)是没有区分的。
还有一点,当你恢复完数据库后,需要重建临时数据文件
,关于这一点你可以看一看警告文件里的内容
-------------------------------------------------
WARNING: The following temporary tablespaces contain no files.
This condition can occur when a backup controlfile has
been restored. It may be necessary to add files to these
tablespaces. That can be done using the SQL statement:
ALTER TABLESPACE
Alternatively, if these temporary tablespaces are no longer
needed, then they can be dropped.
Empty temporary tablespace: TEMP
--------------------------------------------------------------------------------
所以在恢复完数据库后必须马上在临时表空间里加上临时文件。
alter tablespace temp add tempfile '' size xxm;
以上是我想说的。 各位有什么看法可以进行交流。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/526592/viewspace-236723/ ,如需转载,请注明出处,否则将追究法律责任。