Upgrade Methods For Upgrading To Oracle Database 11g Release 2
Upgrade Methods For Upgrading To Oracle Database 11g Release 2
September 2010
Introduction ....................................................................................... 1
Database Upgrade Methods .............................................................. 2
Database Upgrade Assistant (DBUA) ............................................ 2
Manual Upgrade ............................................................................ 3
Oracle Data Pump Export and Import / Original Export and Import 4
Oracle Transportable Tablespaces ................................................ 6
Oracle Data Guard SQL Apply (Logical Standby) .......................... 7
Online Database Upgrade with Oracle Streams ............................ 8
Conclusion ........................................................................................ 9
References ........................................................................................ 9
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
Introduction
The recommended method to upgrade an Oracle database to Oracle Database 11g
Release 2 is by using the Database Upgrade Assistant. However, there are
circumstances when using the DBUA is not possible and it is more appropriate to use
another method.
This white paper looks at the various upgrade methods that can be used. Choosing a
particular method is dependent on several factors. Some of the factors that help
determine which upgrade method to use include:
This paper discusses these upgrade methods and guidelines for their use. It does not
discuss the pre upgrade, upgrade, or post upgrade steps that a user should follow to
ensure a successful upgrade. For information on all these steps, see the following:
Oracle Database Upgrade Companion 11g Release 2 (My Oracle Support Note
785351.1)
1
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
DBUA is a good choice if the upgrade environment has the following characteristics:
Operating system remains the same (including upgrades in the same OS family, such as
Windows XP to Windows Vista or Solaris 2.8 to Solaris 2.10)
Graphical user interface is preferred over manual interface
Real Application Clusters or Automatic Storage Management is installed
o Much easier and less error prone than manual method – HIGHLY
recommended!
Existing database is at least 9.2.0.4 for Oracle Database 11g Release 1 and 9.2.0.8 for
Oracle Database 11g Release 2
2
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
Databases must be on the same system (in-place upgrade where the new version of
Oracle is installed on the same server as the existing version). The DBUA cannot
upgrade a database remotely.
Manual Upgrade
A manual upgrade consists of running SQL scripts and utilities from a command line to do an in-
place upgrade of a database to the new Oracle Database 11g release. Although a manual upgrade
gives finer control over the upgrade process, it is more susceptible to error if any of the upgrade
steps are not followed or are performed out of order.
Unlike the DBUA, the Pre-Upgrade information Tool (utlu111i.sql) that is shipped with the
Oracle Database 11 software must be run manually to see what changes must be made to the
3
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
Manual upgrade is a good choice if the upgrade environment has the following
characteristics:
Oracle Data Pump Export and Import / Original Export and Import
In this method, the Export and Import utilities physically copy data from the current database to
a new database. When upgrading from Oracle Database 10g or higher, Data Pump Export and
Import are strongly recommended for improved performance and better manageability.
Oracle Data Pump Export/Import and original Export/Import perform a full or partial export
from the current database, followed by a full or partial import into a new Oracle Database 11g.
In order to have two physical copies of the database, along with the dump file set, a significant
amount of disk space may be required. However, the user has the flexibility (especially with Data
Pump) to choose subsets of the database to export such as tablespaces, schemas, tables, and
rows, leaving the original database unchanged. In addition, Data Pump Export/Import has two
features that can help with this issue. First, Data Pump Import can be used in Network Mode,
which allows the new Oracle database to be directly loaded across the network from the old
database being upgraded. Thus, no intervening dump files are required. Second, when using
Data Pump Export and Import in Oracle Database 11g, the imported data can be compressed
with the Oracle Advanced Compression Option to improve performance (only when going from
11g Release 1 to Release 2 or for patch set upgrades from Oracle Database 11g onward).
4
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
Data Pump Export/Import and original Export/Import do not change the existing database,
which enables the database to remain available throughout the upgrade process. Data Pump
Export and Import use Flashback technology to get a consistent view of the data. However,
neither Data Pump Export/Import nor original Export/Import provide consistent snapshots by
default.
Because the current database can remain available, the existing production database can be kept
available for read-only transactions while the new Oracle Database 11g database is being built at
the same time by Data Pump Export/Import or original Export/Import. The current database
can then be deleted once the upgraded system is determined to be fully functional.
Note that Data Pump Export/Import is supported starting in Oracle Database 10g. When
upgrading an Oracle database that is older than 10g, original Export and Import must be used.
Data Pump Export/Import or Export/Import is a good choice if the upgrade environment has
the following characteristics:
Downtime will be much longer than other methods, depending on size of the database
(i.e. 10+ hours for large databases). This can be tested by running a test export into the
file system and then doubling or tripling the amount of time that would be required for
the subsequent import.
Additional disk space will be necessary to store both the export dump files and the new
copy of the database
5
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
Transportable Tablespaces is a good choice if the upgrade environment has the following
characteristics:
Metadata gets transported from the existing database to the new database and may
increase upgrade time. If desired, a time estimate can be obtained by performing a
metadata-only export on the source database.
Higher level of skill is required for the database administrator
6
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
7
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
Oracle Data Guard SQL Apply is a good choice if the upgrade environment has the following
characteristics:
Oracle Streams is a good choice if the upgrade environment has the following
characteristics:
8
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
Conclusion
Database Upgrade Assistant is the preferred method for upgrading a database to Oracle
Database 11g Release 2. However, it is not always possible to use the DBUA, and in such
situations there are other options available.
Choosing the appropriate upgrade method depends on the environment, amount of downtime
that is acceptable, and tolerance for complexity of the database administrator doing the upgrade.
It is important for the database administrator to understand the various upgrade methods and
choose the one that best suits business requirements.
References
1. Oracle Database Upgrade Guide 11g Release 2 (Part Number E10819-02)
2. Oracle Database Upgrade Companion 11g Release 2 (My Oracle Support Note
785351.1)
3. Oracle Database 11g Upgrade page on OTN
4. Complete Checklist to Upgrade to 11g Release 2 using DBUA (My Oracle Support
Note 870814.1.1)
5. Complete Checklist for Manual Upgrades to 11g Release 2 (My Oracle Support Note
837570.1)
6. Oracle Database Utilities 11g Release 2 (Part Number E10701-02))
7. Oracle Database Utilities web page on OTN
8. Oracle Database Administrator’s Guide 11g Release 2 (Part Number E10595-04)
9. Database Upgrade Using Transportable Tablespaces: Oracle Database 11g Release 1
white paper
10. Platform Migration Using Transportable Tablespaces: Oracle Database 11g Release 1
white paper
11. Platform Migration Using Transportable Database: Oracle Database 11g and 10g
Release 2 white paper
9
Upgrade Methods for Upgrading to Oracle Database 11g Release 2
10
Upgrade Methods for Upgrading to Oracle
Database11g Release 2
September 2010
Author: Carol Palmer
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only and
the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other
Oracle Corporation
warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or
World Headquarters
fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are
500 Oracle Parkway
formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any
Redwood Shores, CA 94065
means, electronic or mechanical, for any purpose, without our prior written permission.
U.S.A.
Worldwide Inquiries: Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective
Fax: +1.650.506.7200
oracle.com 0109