自己安装了一个linux 虚拟机,下载了一个10.2.05的补丁包,从10.2.01升级到10.2.05。
升级完了,startup 后报错如下:
SQL> startup
。。。。。。。。。
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
先看看alert报警日志吧, 报警日志的位置在
more $ORACLE_HOME\admin\$ORACLE_SID\bdump\alert_orcl10g.log
日志的最后几行写着
Errors in file /oracle/product/10.2.0/db1/admin/orcl10g/udump/orcl10g_ora_25230.
trc:
ORA-00704: bootstrap process failure
ORA-39700: database must be opened with UPGRADE option
Mon Feb 18 21:51:44 CST 2013
Error 704 happened during db open, shutting down database
USER: terminating instance due to error 704
Instance terminated by USER, pid = 25230
ORA-1092 signalled during: ALTER DATABASE OPEN...
意思是说要用 startup upgrate 的方式启动
用 sqlplus / as sysdba
然后 startup upgrade
成功启动了实例。
但是 shutdown immediate后,再次 startup 报错依旧。
google了网友的博客,才知道还要执行升级sql
重建数据字典表
SQL> @?/rdbms/admin/catupgrd.sql
SQL>shutdown immediate
SQL>startup
数据库启动成功
执行
SQL> SELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY;
。。。。。。。。。。。
10.2.0.5.0 VALID
升级成功啦!