| 设为首页 加入收藏 |
当前位置: |
| TOP | ||
|
丢失了所有控制文件副本后进行恢复以trace文件恢复(四)
注 在转储的控制文件中,没有只读表空间的内容 本测试,是先生成转储文件,再恢复的,往往在控制文件丢失之前很少会有人转储控制文件的(当然 了,一般情况都会备份控制文件的),如果没有转储控制文件的话,我们也可以在其他数据库中转储 控制文件,按照目标库的情况进行调整,然后再创建。 5) 手工删除控制文件 [oracle@ocmu ORA11GR2]$ pwd /u01/app/oracle/oradata/ORA11GR2 [oracle@ocmu ORA11GR2]$ ls *.ctl control01.ctl control02.ctl [oracle@ocmu ORA11GR2]$ rm *.ctl [oracle@ocmu ORA11GR2]$ ls *.ctl ls: *.ctl: No such file or directory [oracle@ocmu ORA11GR2]$ 6) 控制文件删除以后,数据库是可以正常登陆的 [oracle@ocmu ORA11GR2]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Jan 15 16:09:53 2013 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SYS@ORA11GR2> 7) 当修改结构信息时,会写控制文件,我们创建一个表空间,立即报错 SYS@ORA11GR2> create tablespace ts_idx datafile '/u01/app/oracle/oradata/ ORA11GR2/ts_idx01.dbf' size 10m; create tablespace ts_idx datafile '/u01/app/oracle/oradata/ORA11GR2/ts_idx01.dbf' size 10m * ERROR at line 1: ORA-00210: cannot open the specified control file ORA-00202: control file: '/u01/app/oracle/oradata/ORA11GR2/control01.ctl' ORA-27041: unable to open file Linux Error: 2: No such file or directory Additional information: 3 SYS@ORA11GR2> 8) 一致性关闭数据库已经不可能了(控制文件丢失,无法同步SCN),采取强制手段 SYS@ORA11GR2>shutdow immediate; ORA-00210: cannot open the specified control file ORA-00202: control file: '/u01/app/oracle/oradata/ORA11GR2/control01.ctl' ORA-27041: unable to open file Linux Error: 2: No such file or directory Additional information: 3 SYS@ORA11GR2> SYS@ORA11GR2>shutdown abort; ORACLE instance shut down. SYS@ORA11GR2> 9) 按照转储文件中的步骤恢复控制文件,nomount启动数据库 SYS@ORA11GR2>startup nomount; ORACLE instance started. Total System Global Area 841162752 bytes Fixed Size 1339768 bytes Variable Size 494931592 bytes Database Buffers 339738624 bytes Redo Buffers 5152768 bytes SYS@ORA11GR2> 10) 采用NORESETLOGS创建控制文件 SYS@ORA11GR2>CREATE CONTROLFILE REUSE DATABASE "ORA11GR2" NORESETLOGS NOARCHIVE |
| 首页 上一页 1 2 3 4 5 下一页 尾页 4/5/5 | |
| 【大 中 小】【打印】 【繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部】 | |
|
分享到:
|
|
| 上一篇:mongodb后台运行 | 下一篇:【学生信息管理系统】系统的界面.. |
| 评论 |
|
|
| ·常用meta整理 | 菜鸟 | (2025-12-25 01:21:52) |
| ·SQL HAVING 子句:深 | (2025-12-25 01:21:47) |
| ·SQL CREATE INDEX 语 | (2025-12-25 01:21:45) |
| ·Shell 传递参数 | (2025-12-25 00:50:45) |
| ·Linux echo 命令 - | (2025-12-25 00:50:43) |