当我尝试连接oracle DB时,会抛出以下错误:
ORA-01033: ORACLE initialization or shutdown in progress
我在网上搜索并得到了一些解决方案,但没有运气。即使我重新启动数据库并且数据库启动也没有任何错误。以下是日志:
Enter user-name: /as sysdba
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1.0167E+10 bytes
Fixed Size 2934888 bytes
Variable Size 1677723544 bytes
Database Buffers 8455716864 bytes
Redo Buffers 30617600 bytes
Database mounted.
Database opened.
SQL> exit
Enter user-name: rc532/rc532@abcdb
ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0
重新启动后,我检查了以下内容:
SQL> select status, database_status from v$instance;
STATUS DATABASE_STATUS
------------ -----------------
OPEN ACTIVE
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
任何帮助都将不胜感激。
答案 0 :(得分:2)
当可插拔数据库未打开时,可能会发生这种情况。要打开它,请使用
# Start the mypdb pluggable database (if not already running)
SQL> alter pluggable database mypdb open read write;
# Make the read/write state permanent across reboots
SQL> alter pluggable database all save state;