P. 1
Upgrade Guide Oracle11

Upgrade Guide Oracle11

|Views: 361|Likes:
Published by jerryp_mty1

More info:

Published by: jerryp_mty1 on Jan 13, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/01/2014

pdf

text

original

To upgrade the database structure, you need to start the Oracle Database Upgrade Assistant (DBUA).
The DBUA tool is a graphical tool that leads you step by step through the upgrade.
If your source database is Oracle 9.2.0.8, see Starting the Database Upgrade Assistant (Oracle 9.2.0.8) [page
30].

Prerequisites

■ dbua.sap.sh sets the environment internally.
■Before you start the DBUA make sure that the DISPLAY environment variable is correctly set.
■Ensure that you have write permissions on /etc/oratab.

Procedure

1.Start the DBUA.

dbua.sap.sh is a wrapper script to automate most of the post-upgrade tasks.
1.Set ORACLE_HOME_SRC and ORACLE_HOME_TGT.

EXAMPLE

■Enter these commands to upgrade from 10.2.0.x to 11.2.0.3:

setenv ORACLE_HOME_SRC /oracle//102_64

setenv ORACLE_HOME_TGT /oracle//11203

■Enter these commands to upgrade from 11.2.0.1 to 11.2.0.3 or from 11.2.0.2 to 11.2.0.3:

setenv ORACLE_HOME_SRC /oracle//112_64

setenv ORACLE_HOME_TGT /oracle//11203

2.Change to the correct directory:

4

Oracle Database Upgrade

4.3

Database Structure Upgrade

28/50

PUBLIC

2011-12-20

cd $ORACLE_HOME_TGT/sap/ora_upgrade/post_upgrade

3.Run this script in query mode initially to verify that the environment is correct:

./dbua.sap.sh -q

During this step, the SQL*Net profiles are copied.
4.Run DBUA as follows:
■For interactive mode, enter the following command:

./dbua.sap.sh

■For silent mode, enter the following command:

./dbua.sap.sh -silent

For more information on how to use dbua.sap.sh, see SAP note 1431793 or run dbua.sap.sh
-help.
2.Respond appropriately to the DBUA dialogs:
The Welcome screen provides information about the upgrade assistant
1.Choose Next to continue.
The Databases screen lets you select the database to be upgraded.
2.Select the correct database and choose Next.
The DBUA now analyzes the database to be upgraded, performs pre-upgrade checks, and issues
warnings if necessary.

RECOMMENDATION

If the DBUA warns you of issues that need to be fixed before the upgrade, you need to
analyze and act on these warnings. The most common warning or information messages
are as follows:

Message

Explanation or Solution

Information message:

Database is using a timezone file older than
version 14

Explanation:
Upgrade of TSTZ data is done automatically if the DBUA
was started using dbua.sap.sh.

Warning message:

Database contains schemas with stale
optimizer statistics

Solution:
Run the following command:

brconnect -u / -c -f stats -t oradict_stats

Warning message:

Database contains INVALID objects prior
to upgrade

Solution:
To recompile any invalid objects, use SQL*Plus to execute
the script $ORACLE_HOME/rdbms/admin/utlrp.sql.
Any invalid SYS/SYSTEM objects found before upgrading
the database are stored in table registry$sys_inv_objs
Any invalid non-SYS/SYSTEM objects found before
upgrading the database are stored in table registry
$nonsys_inv_objs.
After the upgrade, run ORACLE_HOME/rdbms/admin/
utluiobj.sql to identify any new invalid objects due to
the upgrade.

4

Oracle Database Upgrade

4.3

Database Structure Upgrade

2011-12-20

PUBLIC

29/50

The screen Recompiling Invalid Objects lets you choose whether the DBUA has to automatically
recompile all PL/SQL modules after the upgrade. If the database server has multiple CPUs, the
DBUA automatically proposes the number of parallel processes to be used for the
recompilation.
Since you have already performed the database backup [page 27], you do not need to select the
Backup option on this screen.
3.Accept the default values, select Recompile invalid objects after the upgrade, and choose Next.
The screen Move Database Files lets you move the database files during the upgrade process.
4.Select Do not move the database files as part of the upgrade and choose Next.
5.On the screen Recovery and Diagnostic Location, select Specify Flash Recovery Area if you have set up a
restore point on the database to facilitate database recovery in the event of problems.
If you select this option, make sure that you also specify the location and the size of the flash
recovery area and its files.
The screen Management Options lets you set up the database so that it can be managed with the
Enterprise Manager.
6.Make sure that Configure the database with Enterprise Manager is not selected and choose Next.
Before you start it, the DBUA displays a summary of the changes to be made. This includes the
warnings that you ignored or did not fix, components to be upgraded, parameters to be added,
removed, and changed after the upgrade.
3.Review the summary of changes and choose Back to make any final adjustments, if required.

NOTE

For a complete list of obsolete and deprecated parameters, see the documentation for Oracle
Database 11g Release 2 (11.2).
4.Start the database upgrade by choosing Finish.
The DBUA automatically removes the database initialization parameters that are now obsolete in
Oracle Database 11g Release 2 (11.2).
The upgrade process itself runs for some time, depending mainly on the size of the database and
the capacity of the hardware.
When the DBUA has completed successfully the results of the upgrade are displayed
5.Review the changes made and exit the DBUA.
6.Make sure that the database instance has stopped after the upgrade.
7.Optionally, delete the environment variables ORACLE_HOME_SRC and ORACLE_HOME_TGT.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->