Anda di halaman 1dari 5

MIGRATION FROM 9.2.0.7.0 to 10.2.0.1.

Methods available for migrating to 10g Rel 2:-

1. Database Upgrade Assistant (DBUA) – GUI , can be launched during installation with
the OUI or as stand alone.
2. Manual Upgrade using SQL scripts and Utilities
3. Export & Import Utility
4. CREATE TABLE AS

SCOPE OF UPGRADATION:

 Oracle 8i,9i, 10g database/clients (either or both) can be upgraded


 Existing 32 bit db can be automatically converted to 64 bit during upgradation, except
10.1 to 10.2 (can be done by running the utlip.sql script)
 Rolling upgrades i.e upgrading different databases or different instances of the same
database one at a time without stopping the database
 In case of edition upgradation the release numbers should be same. eg 10.2.0
standard to enterprise edition
 Cannot perform migration across different OS platforms. (Way out – Upgrade on
current OS & migrate to diff OS using 10g cross-platform transportable tablespace
feature)

Upgrade Paths:-

Direct upgrade is not supported. Upgrade to an intermediate Oracle Database release


before you can upgrade to the new Oracle Database 10g release, as follows:
• 7.3.3 (or lower) -> 7.3.4 -> 8.1.7.4 -> 10.2
• 7.3.4 -> 8.1.7.4 -> 10.2
• 8.0.n -> 8.1.7.4 -> 10.2
• 8.1.n -> 8.1.7.4 -> 10.2
The below versions can be directly upgraded to the new Oracle Database 10g release
 8.1.7.4
 9.0.1.4 or higher
 9.2.0.4 or higher

1/5
 10.1.0.2

STEPS TO MIGRATE USING SCRIPTS

 Install the 10g oracle software with a different home.


 Copy the ?/rdbms/admin/utlu102i.sql file and run the same on the database which is
to be upgraded, by connecting to database as sysdba. Examine the output (use spool
file) and make the necesscary changes as below,
• warning is displayed if the COMPATIBLE initialization parameter needs to be
adjusted before the database is upgraded.
• displays a list of redo log files in the current database whose size is less than 4
MB Any redo log files less than 4 MB must be dropped before the database is
upgraded.
• displays a list of tablespaces in the current database, a message is displayed if
the tablespace is adequate for the upgrade. If the tablespace does not have
enough free space, then space must be added to the tablespace in the current
database. Tablespace adjustments need to be made before the database is
upgraded.
• displays a list of initialization parameters in the parameter file of the current
database that must be adjusted before the database is upgraded. The
adjustments need to be made to the parameter file after it is copied to the new
Oracle Database 10g release.
• displays a list of initialization parameters in the parameter file of the current
database that are deprecated in the new Oracle Database 10g release
• displays a list of initialization parameters in the parameter file of the current
database that are obsolete in the new Oracle Database 10g release. Obsolete
initialization parameters need to be removed from the parameter file before the
database is upgraded.
• displays a list of database components in the new Oracle Database 10g release
that will be upgraded or installed when the current database is upgraded.
• displays the minimum required size for the SYSAUX tablespace, which is
required in Oracle Database 10g. The SYSAUX tablespace must be created after
the new Oracle Database 10g release is started and BEFORE the upgrade scripts

2/5
are invoked

Upgrade the Database

After preparing the new Oracle home, complete the following steps to upgrade the
database:
1. Shut down the instance:
SQL> SHUTDOWN IMMEDIATE

2. Take a full backup of the database, either usermanaged or using RMAN.

3. Copy the pfile to the dbs directory of the new oracle home (10g Rel-2)

4. Login as owner of new oracle home and change directory to


$ORACLE_HOME/rdbms/admin. From here invole sqlplus as sysdba.

5. Startup the database in migrate mode using the pfile just copied from older
version oracle.
SQL>startup migrate pfile=$ORACLE_HOME/dbs/init<sid>.ora;

6. Enable Spooling
SQL>spool upgrade.log

7. Run the catupgrd.sql script


SQL>@catupgrd.sql;

8. The upgrade script creates and alters certain data dictionary tables. It also
upgrades or installs the following database components in the new release 10.2
database:
• Oracle Database Catalog Views
• Oracle Database Packages and Types
• JServer JAVA Virtual Machine
• Oracle Database Java Packages
• Oracle XDK
• Oracle Real Application Clusters
• Oracle Workspace Manager

3/5
• Oracle interMedia
• Oracle XML Database
• OLAP Analytic Workspace
• Oracle OLAP API
• OLAP Catalog
• Oracle Text
• Spatial
• Oracle Data Mining
• Oracle Label Security
• Messaging Gateway
• Expression Filter
• Oracle Enterprise Manager Repository
9. It will take few hours for the completion of this script. After completion it will
display the list of database components which are upgraded.

10.Disable spooling
SQL>spool off;

11.Shutdown immediate and then startup.

12.Run the utlrp.sql script to recompile the invalidated PL/SQL and Java code.

13.To verify the invalidated packages


SQL> SELECT count(*) FROM dba_objects WHERE status='INVALID';
SQL> SELECT distinct object_name FROM dba_objects WHERE status='INVALID';

14.create spfile from pfile.

The above procedure was successfully implemented for migration of 9.2.0.7.0 to


10.2.0.1.0 on RHEL AS4 Kernel 2.6.9-5.EL

4/5
5/5

Anda mungkin juga menyukai