Oracle案例04——ORA-39700: database must be opened with UPGRADE option

Oracle11.2.0.3数据库通过rman备份到Oracle11.2.0.4上做还原,报需要升级的错误,具体处理步骤如下:

一、错误信息

SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
Process ID: 16643
Session ID: 1705 Serial number: 5

二、错误原因

数据库版本不一致导致备份文件恢复,无法启动数据库

三、解决方案

通过数据字典升级解决

1)升级方式启动

SQL> startup upgrade;

 (2)查看预升级信息

SQL> @$ORACLE_HOME/rdbms/admin/utlu112i.sql

 
(3)执行升级脚本

SQL> @$ORACLE_HOME/rdbms/admin/catupgrd.sql  

SQL> @$ORACLE_HOME/rdbms/admin/utlu112s.sql

SQL> @$ORACLE_HOME/rdbms/admin/catuppst.sql

SQL> @$ORACLE_HOME/rdbms/admin/utlrp.sql

4)重启数据库

SQL> shutdown immediate;

ORA-01109: database not open

Database dismounted.

ORACLE instance shut down.

SQL> startup;

 

posted @ 2018-04-02 19:36  Rangle  阅读(3165)  评论(0编辑  收藏  举报