Professional Documents
Culture Documents
A manual upgrade consists of running SQL scripts and utilities from a command
line to upgrade a database to the new Oracle Database release.
Current ORCALE_HOME=/u01/app/oracle/product/11.2.0.4/db_1
New ORACLE_HOME=/u03/app/oracle/product/12.2/db_1
SYNTAX:
/u01/app/oracle/product/11.2.0.4/db_1/jdk/bin/java -jar
/u03/app/oracle/product/12.2/db_1/rdbms/admin/preupgrade.jar FILE DIR /u01/
After run the above tool we will get below sql files.
C. We have to increase the number of processes and purge the recycle bin
2. Shutdown the database:
Take full database backup. we should turn on the flashback database and create a
Guaranteed Restore Point which can be used to rollback if upgrade process fails.
no rows selected
11:32:41 SYS@ORCL:1>
11:33:27 SYS@ORCL:1> SELECT NAME, SCN, TIME, DATABASE_INCARNATION#,
GUARANTEE_FLASHBACK_DATABASE, STORAGE_SIZE FROM V$RESTORE_POINT WHERE
GUARANTEE_FLASHBACK_DATABASE='YES';
3. Copy the parameter and password file from the 11g home to the new 12c home.
export ORACLE_HOME=/u01/app/oracle/product/12.2/db_1/
$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catctl.pl -d
$ORACLE_HOME/rdbms/admin -l /home/oracle/ -n 4 catupgrd.sql
6. Run “postupgrade_fixups.sql” .
For 12cR2, the new timezone is 26. So once the db upgrade is completed, we have
to upgrade the dst timezone from 14 to 26
This tool is supplied with Oracle Database and displays the version and elapsed
upgrade time for each component in DBA_REGISTRY.
8. Execute catuppst.sql:
If an Oracle bundle patch or patch set update (PSU or BP) is installed in the
Oracle home, this script will automatically applies those patch set update to the
database.
9. Execute utlrp.sql script to compile invalid objects.
10. Set COMPATIBALE parameter value for 12.2.0 as well as start the listener
with 12.2 home.
11. Finally to check the component and version using dba_registry view.
--The End--