Oracle ORA-01033: ORACLE initialization or shutdown in progress 错误解决办法(亲测)

Oracle ORA-01033: ORACLE initialization or shutdown in progress 错误解决办法(亲测)

起因:
1.数据库执行了一个delete超过400万条记录的操作,开发人员关闭了数据连接,导致数据表被锁定。
2.尝试查找锁定的事务,切换到sys用户,执行类似alter system kill session '540,25374’操作,提示超时。
3.多番尝试第2步操作无果,关闭数据库(shutdown),无反应。
4.情急之下,重启了centos(reboot),
5.启动后数据库无法访问,报Oracle ORA-01033: ORACLE initialization or shutdown in progress。

处理过程:
1.登录oracle:
$ sqlplus /nolog

结果如下:
SQLPlus: Release 12.1.0.2.0 Production on Mon Nov 14 10:32:27 2022
Copyright © 1982, 2014, Oracle. All rights reserved.*

2.连接数据库:
SQL> connet sys/change_on_install as sysdba;

结果如下:
Connected.

3.关闭数据库:
SQL> shutdown normal;

结果如下:
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.

4.启动数据库
SQL> startup mount;

结果如下:
ORACLE instance started.
Total System Global Area 2466250752 bytes
Fixed Size 2927384 bytes
Variable Size 721421544 bytes
Database Buffers 1728053248 bytes
Redo Buffers 13848576 bytes
Database mounted.

5.打开实例:
SQL> alter database open;

结果如下:
Database altered.

6.完成。

猜你喜欢

转载自blog.csdn.net/chaos1/article/details/127844862
今日推荐