Home >Database >Mysql Tutorial >RMAN恢复-system表空间恢复

RMAN恢复-system表空间恢复

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:03:571052browse

system表空间存放着数据字典的信息。当数据库处于open状态,如果system表空间所对应的数据文件出现介质失败,那么当在其数据文件

恢复system表空间的数据文件
system表空间存放着数据字典的信息。当数据库处于open状态,如果system表空间所对应的数据文件出现介质失败,那么当在其数据文件上执行I/O操作时,数据库会自动关闭;当数据库处于关闭状态时,如果system表空间所对应的数据文件出现介质失败,数据库将不能打开。
恢复system表空间必须在mount状态下进行。
示例一system表空间的数据文件被误删除
备份数据库。
删除system表空间对应的数据文件。
启动数据库到mount状态。
使用restore datafile转储数据文件,并使用recover datafile命令应用归档日志,最后使用alter database open打开数据库。 示例二system表空间数据文件所在磁盘出现故障
备份数据库(略)
删除system表空间对应的数据文件。
启动数据库到mount状态。
在restore database之前,执行set newname为数据文件指定新的位置。
在restore database之后,,执行switch datafile改变控制文件中数据文件位置和名称。
之后通过执行recover database应用归档日志。
最后执行alter database open打开数据库。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn