ORA-01033、ORA-01172、ORA-01151错误处理办法

1.进入CMD,执行set oracle_sid=orcl     //orcl 是所要连接的数据sid根据实际进行替换;
2、运行 sqlplus "/as sysdba "
3、在SQL>shutdown immediate      //关闭数据库实例
4、在SQL>startup                           //启动数据库实例
5、如果显示下列错误:
ORACLE 例程已经启动。

Total System Global Area  535662592 bytes
Fixed Size                  1334380 bytes
Variable Size             121635732 bytes
Database Buffers          406847488 bytes
Redo Buffers                5844992 bytes
数据库装载完毕。
ORA-01172: 线程 1 的恢复停止在块 277 (在文件 3 中)
ORA-01151: 如果需要, 请使用介质恢复以恢复块和还原备份

6、在SQL>shutdown immediate
7、在SQL>startup mount
8、在SQL>recover datafile 3           //恢复上面提示中的文件3
     等待一会儿 控制台出现:完成介质恢复。
9、在SQL>shutdown immediate
10、在SQL>startup
ORACLE 例程已经启动。

Total System Global Area  535662592 bytes
Fixed Size                  1334380 bytes
Variable Size             121635732 bytes
Database Buffers          406847488 bytes
Redo Buffers                5844992 bytes
数据库装载完毕。
数据库已经打开。

其他:如果想查看文件3是哪个文件,在SQL> select file#,name from v$datafile where file#=3;

猜你喜欢

转载自linkt2001.iteye.com/blog/1929622