Escolar Documentos
Profissional Documentos
Cultura Documentos
Hi ,
Here are the steps to upgrade the Database from ORACLE 9i to ORACLE 10g:
3. Adjust the size of the tablespaces where the dictionary objects are stored.
5. Shut down the database (do not perform a SHUTDOWN ABORT; perform only
SHUTDOWN
IMMEDIATE or SHUTDOWN NORMAL). On Windows you will have to do NET
STOP, ORADIM -
DELETE from the old Oracle home directory and ORADIM -NEW from the new Oracle
10g
home directory
6. Copy the parameter file (initDB.ora or spfileDB.ora) and password file from the old
Oracle home directory to the Oracle 10g Oracle home directory. The default location for
parameter file is $ORACLE_HOME/dbs on Unix platforms and
ORACLE_HOME\database on Windows. Adjust the following parameters:
* Adjust the COMPATIBLE parameter; the minimum value required is 9.2.0 for the
upgrade.
If you set this to 10.0, you will never be able to downgrade the database to 9i.
* Make sure memory parameters have at least the minimum size required for upgrade:
SHARED_POOL_SIZE (96MB for 32-bit platforms, 144MB for 64-bit),
PGA_AGGREGATE_
TARGET (24MB), JAVA_POOL_SIZE (48MB), and LARGE_POOL_SIZE (8MB). Use
the
sizes recommended by the preinstall verification utility
7. Make sure all the environment variables are set to correctly reference the Oracle 10g
Oracle
home. On Unix, verify ORACLE_HOME, PATH, ORA_NLS33, and
LD_LIBRARY_PATH.
8. Use SQL*Plus, and connect to the database using the SYSDBA privilege. Start the
instance by using the STARTUP UPGRADE mode.
10. Run the upgrade script from the $ORACLE_HOME/rdbms/admin directory. Based
on the version of the old database, the name of the upgrade script varies. The following
lists the old release and the upgrade script name:
For example, to upgrade an Oracle 8.1.7 database to Oracle 10g, you must run
u0801070.sql.
SQL> spool ora8i7upg.log
SQL> @?/rdbms/admin/u0801070.sql
SQL> spool off
If you get any errors during the upgrade script execution, reexecute the script after fixing
the error. The postupgrade status utility—utlu101s.sql—gives the name of specific script
to run to fix the failed component.
11. Run the utlu101s.sql utility with the TEXT option. It queries the
DBA_SERVER_REGISTRY to determine upgrade status and provides information about
invalid or incorrect component upgrades. It also provides names of scripts to rerun to fix
the errors.
12. Shut down and restart the instance to reinitialize the system parameters for normal
operation.
The restart also performs Oracle 10g database initialization for JServer Java Virtual
Machine and other components. Perform a clean shutdown (SHUTDOWN
IMMEDIATE);
starting the instance flushes all caches, clears buffers, and performs other housekeeping
activities. This is an important step to ensure the integrity and consistency of the
upgraded database.
14. Update the listener.ora file with the new database information.
Once upgrading the database there will be some degradation in the performance …so
check the performance through AWR and ADDM….
http://rafioracledba.blogspot.com/2010/03/database-upgradation-9i-to-10g-manual.html