P. 1
Oracle 11g Nf 1.0

Oracle 11g Nf 1.0

|Views: 1,031|Likes:
Published by Ramu Spl

More info:

Published by: Ramu Spl on May 10, 2011
Copyright:Attribution Non-commercial


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





Upgrade path

You can directly upgrade to Oracle 11g, if you current database is 9.2.04 or newer. In other words, it supports
direct upgrade to versions, 10.1 and 10.2. Otherwise, you should follow one of the upgrade paths:

7.3.3 ->

7.3.4 -> -> 11.1

8.0.5 ->

8.0.6 -> -> 11.1

8.1.7 -> -> -> 11.1> -> -> 11.1 (or lower)

-> -> 11.1

Oracle 11g client can access Oracle databases of versions 8i, 9i and 10g.

Upgrade process and COMPATIBLE parameter

The default compatibility value for Oracle 11g is 11.1. You can, however, upgrade to Oracle 11g with a minimum
value of the COMPATIBLE parameter of 10.0.0. However, if you upgrade to 11g and keep the COMPATIBLE
parameter to 10.0.0, only a small portion of the new features will be available.

Page 12

Oracle 11g New Features for Administrators - Summary Sheets

Manual Upgrade Procedure

To manually upgrade a database from 10g to Oracle 11g, perform the following steps:
1. Invoke the Pre-Upgrade Information Tool in the database to upgrade.
This tool is simply the script $ORACLE_HOME/rdbms/admin/utlu111i.sql. So, you have to copy this script
altogether with the scripts: utlu111s.sql and utlu111x.sql to a staging directory in the database to

As with previous versions, this tool will examine the target database and display the warnings and
recommendations that you should consider before you start the upgrade process such as removing obsolete
initialization parameters, setting proper values to some parameters and adding space to key tablespaces.

Spool the output of running the script for later review.

SQL>spool upgrade11g.log


SQL>spool off

2. Backup the database.

3. Set the COMPATIBLE parameter to 11.1.0. You can do so by issuing the following command:


4. Modify the values of the initialization parameters and remove the obsolete parameters as recommended by
the Pre-upgrade tool in the current initialization parameter file.

5. Copy the initialization parameter file to the new Oracle 11g home.

6. Shutdown cleanly the database.

7. If the database is installed in a Windows system, perform the following steps:
a) Stop the Oracle database service. Usually its name has the format OracleService.
b) Delete the service. You can use the oradim utility for this purpose.
oradim -delete –SID

c) Use oradim utility in the Oracle 11g home to create a new Oracle Database 11g release instance. Of
course, it should use the same SID.

oradim -NEW –SID

8. If the database to upgrade is using a password file, move it to the new Oracle 11g home.

9. Change the environment variables ORACLE_HOME, PATH, and LD_LIBRARY_PATH so that they point to the new
Oracle Database 11g directories.

10. In the Oracle 11g home, change to directory $ORACLE_HOME/rdbms/admin and then start the SQL*Plus

11. Start the database in upgrade mode and then run the upgrade script (it takes long time). When working in
upgrade mode, Oracle allows only SYSDBA connections and sets some initialization parameters to specific
values that are required to run the upgrade script.

SQL>login sys/password as sysdba

SQL>startup upgrade pfile=$ORACLE_HOME/dbs/initorcl.ora
SQL>spool upgrade11g.log

SQL>@ catupgrd.sql


SQL>spool off

12. After the upgrade script finishes, make sure no error occurred during the upgrade. Usually errors are raised
because of lack of shared memory or tablespace size. If there is any error, fix its cause and restart the
upgrade script.

13. When the upgrade script successfully finishes, restart the database in OPEN mode.

14. Rum utlu111s.sql script (referred to as Post-Upgrade Status tool) to view the results of the upgrade. This
tool will view the installed components and their status. If you see a component with invalid status, usually
running the script in the next step will set it to valid.

Page 13

Oracle 11g New Features for Administrators - Summary Sheets

15. Execute the script utlrp.sql to in parallel recompile any invalid PL/SQL program unit and Java code.



16. Because the upgraded database disables all tablespace alerts by setting the threshold to null, set the
thresholds for tablespace alert to the values you desire.

If the upgrade process fails, restore the database from the backup.

Upgrading with the DBUA

Database Upgrade Assistance (DBUA) is a GUI utility that facilitates upgrade process. DBUA works in 11g in a
similar way to it in 10g. It just now has a screen asking you to define the diagnostic directory.

Beside its simplicity, DBUA has an advantage of being able to upgrade both the database instance and the
ASM instance simultaneously. In manual method, you have to upgrade them separately.

Note The database upgrade process moves SQL profiles to SYSAUX tablespace. Thus, taking that
tablespace offline may lead to degrading the database performance.

You're Reading a Free Preview

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