oracle启动实例报错-ORA-01033和ORA-01172

crsctl staet has 

startup 发现数据库实例启动不起来,emo,昨天关机坏块了吧,恢复一下就好 

SQL> startup
ORACLE instance started.

Total System Global Area 2455228416 bytes
Fixed Size            2255712 bytes
Variable Size          654312608 bytes
Database Buffers     1778384896 bytes
Redo Buffers           20275200 bytes
Database mounted.
ORA-01172: recovery of thread 1 stuck at block 400 of file 2
ORA-01151: use media recovery to recover block, restore backup if needed

 

这里显示database mounted ,说明参数文件和控制文件没有问题 

SQL> startup
ORACLE instance started.

Total System Global Area 2455228416 bytes
Fixed Size            2255712 bytes
Variable Size          654312608 bytes
Database Buffers     1778384896 bytes
Redo Buffers           20275200 bytes
Database mounted.
--问题根源是ORA-01172和ORA-01151
ORA-01172: recovery of thread 1 stuck at block 400 of file 2
ORA-01151: use media recovery to recover block, restore backup if needed

--查看file 2到底是哪一个文件,此步骤非必需
SQL> select file#,name from v$datafile where file#=2;
     FILE#     NAME
    2    +DGSYSTEM/oomcdb/datafile/sysaux.257.1147962557
     
--恢复file 2
SQL> recover datafile 2;
Media recovery complete.

SQL> alter database open;
alter database open
*
ERROR at line 1:
--发现还有一个file 7也是有问题的
ORA-01172: recovery of thread 1 stuck at block 89361 of file 7
ORA-01151: use media recovery to recover block, restore backup if needed

--恢复file 7
SQL> recover datafile 7;
Media recovery complete.

--再次启动数据库
SQL> alter database open;

Database altered.

SQL> select open_mode from v$database;

OPEN_MODE
--------------------
READ WRITE

启动成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值