• Save
Upgrade Oracle Database to 12c
Upcoming SlideShare
Loading in...5
×
 

Upgrade Oracle Database to 12c

on

  • 4,401 views

Upgrade Oracle Database From version 11.2.0.3 to Database 12.1

Upgrade Oracle Database From version 11.2.0.3 to Database 12.1

Statistics

Views

Total Views
4,401
Views on SlideShare
4,353
Embed Views
48

Actions

Likes
2
Downloads
0
Comments
1

9 Embeds 48

http://appsdbaabdul.blogspot.com 22
http://appsdbaabdul.blogspot.in 12
http://appsdbaabdul.blogspot.fr 5
https://twitter.com 4
http://appsdbaabdul.blogspot.de 1
http://appsdbaabdul.blogspot.co.uk 1
http://appsdbaabdul.blogspot.com.ar 1
http://appsdbaabdul.blogspot.co.nz 1
http://appsdbaabdul.blogspot.tw 1
More...

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Salam Mr.Osama,

    When we can expect Manual upgrade :) .. and i could not able to find u in twitter..
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Upgrade Oracle Database to 12c Upgrade Oracle Database to 12c Document Transcript

  • 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