Upgrading a single Oracle instance

| No Comments

If you encounter an error "ORA-39700: database must be opened with UPGRADE option" you probably have a database instance which hasn't yet been converted. That is to say, you have more than one instance running on the same database but the instance you want to start hasn't yet been converted to the correct version. This can happen when you restore an old backup to your database server. The steps needed to complete this are very simple:

1. make sure your ORACLE_SID points to the instance you want to convert

2. start sqlplus / nolog

3. connect / as sysdba

3. use "startup upgrade" to boot the instance in resticted upgrade mode

4. run "catupgrd.sql" stored in "$ORACLE_HOME/rdbms/admin"

5. shutdown the instance "shutdown immediate"

6. restart "startup"

7. finally run "utlrp.sql" to compile any invalid objects

... and that should be it!

Leave a comment

About this Entry

This page contains a single entry by Paul Lewin published on May 6, 2008 10:46 AM.

The Pitfalls of Hints was the previous entry in this blog.

Oracle Logging and Error Tracking is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Disclamer
Opinions expressed on this site are entirely my own and do not reflect the position of Oracle or any other organisation.
All copyrights and trademarks acknowledged.