SlideShare a Scribd company logo
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
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>
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:
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 4
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 5
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
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 7
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 8
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 9
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 10
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 11
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 12
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 13
Step By Step Upgrade oracle 11.2.0.3 to Database 12c
Osama Mustafa Page 14
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
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

More Related Content

PDF
Refresh development from productions
PDF
Pluggable database tutorial
PDF
Rac&asm
PDF
Are You Ready for 12c? Data Migration and Upgrade Best Practices
PDF
Enable oracle database vault
DOCX
Upgrade EBS DB from 11g to 12c.
PDF
Ebs clone r12.2.4
PDF
Oracle to MySQL DatabaseLink
Refresh development from productions
Pluggable database tutorial
Rac&asm
Are You Ready for 12c? Data Migration and Upgrade Best Practices
Enable oracle database vault
Upgrade EBS DB from 11g to 12c.
Ebs clone r12.2.4
Oracle to MySQL DatabaseLink

What's hot (20)

PDF
Install oracle grid infrastructure on linux 6.6
PDF
Installing oracle timesten database On Linux
PDF
12c on RHEL7
PPTX
Eouc 12 on 12c osama mustafa
PDF
Install oracle solaris 11.2 using gui
PDF
Pluggable database 3
PDF
Oracle api gateway installation as cluster and single node
PDF
12c installation
PDF
Install oracle siebel on windows 2008 r2
PDF
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
PDF
Oracle autovue
PDF
Pluggable database tutorial 2
PDF
Oracle Linux 7 Beta First Look (Installations)
PDF
How to add storage to esxi 5.5
PDF
Steps to Create odbc connection linux
PDF
Deploy agent in em12c
PDF
Install and upgrade Oracle grid infrastructure 12.1.0.2
PDF
PDF
Step by Step Restore rman to different host
PDF
Install oracle grid infrastructure on linux 6.6
Installing oracle timesten database On Linux
12c on RHEL7
Eouc 12 on 12c osama mustafa
Install oracle solaris 11.2 using gui
Pluggable database 3
Oracle api gateway installation as cluster and single node
12c installation
Install oracle siebel on windows 2008 r2
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Oracle autovue
Pluggable database tutorial 2
Oracle Linux 7 Beta First Look (Installations)
How to add storage to esxi 5.5
Steps to Create odbc connection linux
Deploy agent in em12c
Install and upgrade Oracle grid infrastructure 12.1.0.2
Step by Step Restore rman to different host
Ad

Viewers also liked (11)

PDF
Using VirtualBox - Learn Oracle Database 12c and EBS R12
PPT
D17316 gc20 l01_overview
PPTX
All (that i know) about exadata external
PPTX
Aphorisms on Information Technology & Systems
PPTX
Oracle12c data guard farsync and whats new
PDF
Oracle Exadata 1Z0-485 Certification
PPT
PDoolan Oracle Overview PPT Version
PDF
Enable Mobile Apps Designer in OBIEE
PDF
Erp installation r12.2
PDF
J2ee user managment using dwh builder
DOCX
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Using VirtualBox - Learn Oracle Database 12c and EBS R12
D17316 gc20 l01_overview
All (that i know) about exadata external
Aphorisms on Information Technology & Systems
Oracle12c data guard farsync and whats new
Oracle Exadata 1Z0-485 Certification
PDoolan Oracle Overview PPT Version
Enable Mobile Apps Designer in OBIEE
Erp installation r12.2
J2ee user managment using dwh builder
Discoverer 11.1.1.7 web logic (10.3.6) & ebs r12 12.1.3) implementation guide...
Ad

Similar to Upgrade Oracle Database to 12c (20)

DOCX
Oracle 12cR2 RAC Database Software Installation and Create Database
PDF
Oracle WebLogic Server_OL7_Sovann
PDF
oracle upgradation
PDF
Oracle-11g-upgrade
PDF
Installing oracle grid infrastructure and database 12c r1
PDF
Oam install & config
PDF
OAM Install & Config
PDF
Manual Tecnico OGG Oracle to MySQL
PDF
Oracle Enterprise Manager 12c - OEM12c Presentation
PDF
12c (12.1) Database installation on Solaris 11(11.2)
PDF
Cloning 2
PDF
Oracle olap-installation
DOC
Cloning 2
PDF
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)
DOCX
Physical_Standby_Database_R12.2.4
PDF
configuring+oracle+rds+with+glasfish+server
PDF
Oracle bi 10g_install_migration
DOCX
TESTING - Drop 12c RAC Database, Database Software and GI
PDF
Magic With Oracle - Presentation
PDF
Pluggable Databases: What they will break and why you should use them anyway!
Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle WebLogic Server_OL7_Sovann
oracle upgradation
Oracle-11g-upgrade
Installing oracle grid infrastructure and database 12c r1
Oam install & config
OAM Install & Config
Manual Tecnico OGG Oracle to MySQL
Oracle Enterprise Manager 12c - OEM12c Presentation
12c (12.1) Database installation on Solaris 11(11.2)
Cloning 2
Oracle olap-installation
Cloning 2
Oracle 10g to 11g upgrade on sap(10.2.0.5.0 to 11.2.0.3)
Physical_Standby_Database_R12.2.4
configuring+oracle+rds+with+glasfish+server
Oracle bi 10g_install_migration
TESTING - Drop 12c RAC Database, Database Software and GI
Magic With Oracle - Presentation
Pluggable Databases: What they will break and why you should use them anyway!

More from Osama Mustafa (15)

PDF
Case study for software architect
PPTX
DevOps for database
PPTX
Does cloud mean the end of the dba
PDF
Using git hub for your code
PDF
DevOps Project
PDF
Java business service
PDF
Steps creating data_integration_services
PDF
Build, Deploy and Run Node Js Application on Azure using Docker
PDF
Helping implementer dealing with famous siebel based system messages and er...
PPTX
Weblogic and docker
PPTX
Weblogic 101 for dba
PDF
Oracle obia 11.1.1.10.1 installation
PDF
Oracle Enterprise manager 13c Installation
PDF
OBIA Installation
PDF
How to apply new patch on siebel 8.2.2.4
Case study for software architect
DevOps for database
Does cloud mean the end of the dba
Using git hub for your code
DevOps Project
Java business service
Steps creating data_integration_services
Build, Deploy and Run Node Js Application on Azure using Docker
Helping implementer dealing with famous siebel based system messages and er...
Weblogic and docker
Weblogic 101 for dba
Oracle obia 11.1.1.10.1 installation
Oracle Enterprise manager 13c Installation
OBIA Installation
How to apply new patch on siebel 8.2.2.4

Recently uploaded (20)

PPTX
1. Introduction to Computer Programming.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
Spectroscopy.pptx food analysis technology
PDF
Machine learning based COVID-19 study performance prediction
PPT
Teaching material agriculture food technology
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Unlocking AI with Model Context Protocol (MCP)
1. Introduction to Computer Programming.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Agricultural_Statistics_at_a_Glance_2022_0.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Building Integrated photovoltaic BIPV_UPV.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Network Security Unit 5.pdf for BCA BBA.
A comparative study of natural language inference in Swahili using monolingua...
Diabetes mellitus diagnosis method based random forest with bat algorithm
OMC Textile Division Presentation 2021.pptx
Encapsulation theory and applications.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Spectroscopy.pptx food analysis technology
Machine learning based COVID-19 study performance prediction
Teaching material agriculture food technology
gpt5_lecture_notes_comprehensive_20250812015547.pdf
A Presentation on Artificial Intelligence
Unlocking AI with Model Context Protocol (MCP)

Upgrade Oracle Database to 12c

  • 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