logo for smart-soft-nz.com
[?] Subscribe To This Site

XML RSS
Add to Google
Add to My Yahoo!
Add to My MSN
Subscribe with Bloglines


Home
Smartsoft Blog
Oracle Training
Oracle 9i
Oracle 10g
Oracle 11g
Oracle App Server
Oracle Utilities
Backup and Recovery
Oracle Certification
Oracle Tutorials
PL/SQL
Free SQL Tutorial
SQL
News
Oracle Resources
Oracle Secrets Signup
Oracle and .Net
Contact Us
leftimage for smart-soft-nz.com

Oracle Upgrade To 11g

Performing an Oracle upgrade is not a trivial task especially for a production system so before starting it's best to make some preparations.



The first thing to do is to create a plan - it need not necessarily have a timeline but it does need to include the sequence of events which should look something like the following assuming that you're starting from scratch:

  • Prepare a suitable environment on which you can test the upgrade (best not to use the production server for this!)
  • Read the Oracle Upgrade Guide
  • Perform any o/s, other software upgrades and memory and disk upgrades needed for Oracle 11g  
  • Decide which Oracle upgrade method you will use. The methods supported by Oracle are:
    • using the database upgrade assistant (DBUA)
    • performing a manual database upgrade
    • using export/import, or from Oracle 10g onwards, Oracle Data Pump
    • using the SQL*Plus copy command (good for small databases or subsets of a larger database)
  • Ensure that upgrading to Oracle 11g from your current database version is possible using the chosen upgrade method (direct upgrades are permissible from Oracle 9.2.0.4 or higher, 10.1.0.2 or higher and 10.2.0.1 or higher) if not start by planning an upgrade to Oracle 10.2
  • Install the Oracle 11g database software
  • Investigate the new features (read the Oracle documentation and maybe even test a few of them to see how they work)
  • Take a backup of the database
  • Upgrade the database using your chosen method
  • Take another backup of the database!
  • Test your system(s) for functional and performance issues
  • Repeat all steps for the production database(s)

Oracle Upgrade Using the  Database Upgrade Asssistant (DBUA)

Using the DBUA makes life easier especially if you have multiple databases to upgrade or you also need to upgrade an ASM instance or you're using Oracle RAC. It takes you through the upgrade process step by step, enabling you to take a backup, configure a flash recovery area and move datafiles between ASM and the file system.

The DBUA writes to a number of log files (the location of which is displayed on the progress screen) :
  • UpgradeResults.html - summary of what will be upgraded
  • Trace.log - detailed trace of the entire process including any errors
  • Oracle_server.log - details of entire migration product including further details of any errors
  • Post_Upgrade.log - details of post upgrade operations. This will tell you if the upgrade succeeded or not.

If you wish to rollback the upgrade for any reason you can use the DBUA for this. If you used the DBUA to backup the database before you started then the database will be restored and the configuration parameters reset automatically. If you didn't use the DBUA for the backup only the configuration parameters will be reset and you will have to manually restore the database files.

Oracle Tips & Tricks to 
SKYROCKET Your Career!

 If you're not already a subscriber to Oracle Secrets Revealed, you're  missing out on myriad tips and techniques to help you work better, faster and smarter.  Subscribe now and ignite your career.

Upgrading Your Database Manually

Performing the upgrade manually might be tedious but it does give you more control over the process. This method involves running a series of SQL scripts from the command line.

Before upgrading you need to ensure your redo logs are greater than 4MB in size by querying V$LOGFILE. You also need to run the 11g Pre-Upgrade Information Tool (utlu111i.sql) to highlight any upgrade issues and required initialisation parameter changes.

Once you've done this, shutdown the database cleanly, take a backup and prepare the new Oracle home, copying the configuration files from the existing directories and create a listener for the new database. You may need to change some database parameters depending on the results of the pre-upgrade script. 

Before you start the upgrade process, on Windows you need to stop and remove the existing Oracle database service before creating and starting a new one for the Oracle 11g database.  On Unix and Linux you just need to ensure the environment variables are pointing to the Oracle 11g directories.

To perform the upgrade, start the database in upgrade mode (startup upgrade) ensuring that you're using the 11g version of SQL*Plus then run catupgrd.sql and spool the output to a log file. Once the script has finished, it will shut down the database.

Next, re-start the database, run utlu111s.sql (to ensure all components have been successfully upgraded), followed by catuppst.sql (for further upgrade-related steps) and utlrp.sql, both from $ORACLE_HOME/rdbms/admin/.

Once these have finished, perform a clean shutdown again, remove any obsolete parameters from the parameter file, add/change any 11g specific ones. Re-start the database to ensure the parameter changes are OK then shutdown and take a backup again.

There are a few final steps that you may need to take depending on your setup including upgrading the RMAN recovery catalog as well as any statistics tables created by DBMS_STATS. Review the Oracle 11g upgrade guide for the full list.

Need Help With Your Upgrades?
Get Expert Assistance from Smartsoft

Take advantage of our highly skilled and highly experienced consultants to ensure your Oracle upgrades go smoothly.  Contact us today for expert help tomorrow.



footer for Oracle page