B.2 Upgrading the Database from Oracle 10g to Oracle 11g

NOTE:There are several methods to upgrade the database from Oracle 10g to Oracle 11g. This section provides instructions on upgrading the database manually.

  1. Shut down all the Sentinel applications.

  2. Install the Oracle 11g software on a new ORACLE_HOME and ORACLE_BASE directory. For more information, refer to the Oracle Documentation Web site.

  3. Verify the database for upgrading to Oracle 11g by using the pre-upgrade information tool (utlu111i.sql).

    The SQL script is available at the Oracle 11g location, oracle_home/rdbms/admin/utlu111i.sql. Run the script from the source database (Oracle 10g).

  4. Connect to the database sysdba and run the following script:

    SQL>spool upgrade_info.log
    SQL>@/11g_oracle_home/rdbms/admin/utlu111i.sql
    
  5. Open the upgrade.info log file and check for any errors. If there are any errors, download and install the required patch files from the Oracle Web site.

  6. Specify the following parameters in the initialization parameter file:

    diagnostic_dest= $ORACLE_BASE/diag
    memory_max_target=1GB
    memory_target= 800m
    compatible= 11.1.0
    
  7. Shut down the Oracle 10g database:

    SQL>shutdown immediate
    
  8. Set the ORACLE_HOME and ORACLE_BASE environment variables to the Oracle 11g software.

  9. Use the new parameter values to Connect to Oracle 11g.

  10. Start the database in the upgrade mode:

    SQL> startup upgrade
    
  11. Use the catupgrd.sql script to upgrade the database:

    SQL> spool upgrade.log
    SQL> @/rdbms/admin/catupgrd.sql
    
  12. Open the upgrade.log file and check for errors. If there are any errors, download and install the required patch files from the Oracle Web site.

  13. Run the utlu111s.sql post upgrade script:

    SQL>startup
    
    SQL>@/rdbms/admin/utlrp.sql
    
  14. Check the status of database components and ensure that all components are using the Oracle 11g version.

    SQL>select comp_name,version,status from dba_registry
    
  15. Copy the tnsnames.ora, listener.ora, sqlnet.ora files from the Oracle 10g source ORACLE_HOME to the Oracle 11g ORACLE_HOME.

  16. Shut down the database and start the database, database listener, Sentinel, and all other services.