2016-04-25 33 views
1

当我试图连接它引发以下错误的Oracle数据库:无法连接到Oracle数据库 - ORA-01033:ORACLE初始化或关机正在进行

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/[email protected] 
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

http://stackoverflow.com/questions/53676/how-to-resolve-ora-011033-oracle-initialization-or-shutdown-in-progress?rq=1 – OldProgrammer

+0

@OldProgrammer ,我已经尝试过,但没有运气。我已经提供了日志 –

+1

,因为你使用的是12c,当你启动容器数据库时,你的可插拔数据库没有启动。这个语句给了你什么'SELECT name,open_mode FROM v $ pdbs'? – cableload

回答

1

当可插拔数据库未打开时会发生这种情况。要打开它使用

# 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;