1. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 1
Step By Step To Upgrade oracle 11.2.0.3 to Database 12c
About the author
Name: Osama Mustafa
Osama Mustafa is a database specialist, Oracle ACE , Certified Oracle Professional (10g, 11g),
Certified Ethical hacker (Penetration testing), and Sun System Administrator, author of book
Oracle Penetration Testing.
Osama currently works as an Oracle Instructor in the Middle East. He also works on
troubleshooting and the implementation of database projects.
He spends his free time on Oracle OTN forums and publishes many articles, including Oracle
database articles.
Twitter: @osamaoracle
LinkedIn: Osama Mustafa
Blog: http://osamamustafa.blogspot.com
2. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 2
Upgrade Oracle Database 11.2.0.3 to 12c
Operating system: Red-hat 6 updates 4
Note : The concepts on windows are the same.
There are two ways to upgrade oracle database:
ďˇ DBUA
ďˇ Manual ( will take about this later )
Upgrade Oracle Database 11.2.0.3 to oracle Database 12c using DBUA:
1- Make sure the database version supports direct upgrade.
2- Download the 12c Software depend on operating system.
3- Unzip downloaded software.
4- After Install Oracle database 12c Media, Fire ./runInstaller and Install Software Only.
5- Now you need to run dbua command from oracle database 12c .
6- Copy the Pre-Upgrade Information Tool (utlu112i.sql) from oracle 12c home
$ORACLE_HOME/rdbms/admin , execute on it database 11g
SQL> SPOOL upgrade_infomation.log
OPTIONAL: YOU CAN RUN EMDWGRD , EMDWGRD UTILITY CAN BE USED TO KEEP A COPY OF YOUR DATABASE CONTROL
FILES AND DATA BEFORE UPGRADING YOUR DATABASE. THE EMDWGRD UTILITY RESIDES IN THE ORACLE_HOME/BIN
DIRECTORY IN THE ORACLE DATABASE 12C HOME, AND YOU CAN USE IT LIKE THE BELOW:
SINGLE NODE:
EMDWGRD -SAVE -SID <SID-FOR-UPGRADE-DATABASE> -PATH <LOCATION-FOR-BACKUP-FILES>
REAL APPLICATION CLUSTER:
EMDWGRD -SAVE -SID <SID-FOR-UPGRADE-DATABASE> -PATH <LOCATION-FOR-BACKUP-FILES>
3. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 3
SQL> @utlu112i.sql
SQL> SPOOL OFF
Check the below screens:
4. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 4
5. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 5
6. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 6
Two warnings appear while upgrade:
1- EM Warning :
[oracle@upgrade Desktop]$ cd /u01/app/oracle/product/12.0.1/db_home1/
[oracle@upgrade db_home1]$ cd rdbms/admin/
[oracle@upgrade admin]$ cp emremove.sql /u01/
[oracle@upgrade admin]$ cd /u01/
[oracle@upgrade u01]$ sqlplus / as sysdba
SQL> @emremove.sql
old 69: IF (upper('&LOGGING') = 'VERBOSE')
new 69: IF (upper('VERBOSE') = 'VERBOSE')
PL/SQL procedure successfully completed.
2-DBMS LDAP dependencies exist ignore it
7. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 7
8. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 8
9. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 9
10. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 10
11. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 11
12. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 12
13. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 13
14. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 14
15. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 15
Finally you can remove old ORACLE_HOME for 11.2.0.3 using $ORACLE_HOME/deinstall
[oracle@upgrade deinstall]$ ./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /u01/app/oraInventory/logs/
The below are small section of deinstall output :
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################## CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /u01/app/oracle/product/11.2.0/db_2
Oracle Home type selected for deinstall is: Oracle Single Instance Database
Oracle Base selected for deinstall is: /u01/app/oracle
Checking for existence of central inventory location /u01/app/oraInventory
Checking for sufficient temp space availability on node(s) : 'upgrade'
## [END] Install check configuration ##
Fix .bash_profile to export your new ORACLE_HOME
16. Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 16
[oracle@upgrade bin]$ ./sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Tue Jul 2 15:01:22 2013
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> select instance_name from v$instance ;
INSTANCE_NAME
----------------
Orcl
Congratulation you upgrade database