Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 19th, 2012, 07:45 AM
CarlosinFL CarlosinFL is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 51 CarlosinFL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 8 m 48 sec
Reputation Power: 2
Question How To Patch Oracle 11g

I've been told by management this weekend I will be required to perform a complete patch of our Oracle 11g database.

Problem is I really have never installed / patched Oracle. I'm able to access pretty much any database here and interact with it from a SQL stand point so since I'm the only person in my entire office who knows SQL, they decided I can become their full blow DBA.

Currently the database is running a unpatched version:

Code:
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>


Can anyone tell me once I download the latest patch (11.2.0.2.0) files from Oracle & perform a complete backup using RMAN:

Code:
RMAN> backup full as compressed backupset database plus archivelog;


How exactly does one properly patch / update Oracle 11g to the latest version?

Reply With Quote
  #2  
Old April 19th, 2012, 08:35 AM
LKBrwn_DBA's Avatar
LKBrwn_DBA LKBrwn_DBA is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2006
Posts: 748 LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 1 h 41 m 3 sec
Reputation Power: 348
Cool

Quote:
Originally Posted by CarlosinFL
..., they decided I can become their full blow DBA.

Can anyone tell me once I download the latest patch (11.2.0.2.0) files from Oracle & perform a complete backup using RMAN:

How exactly does one properly patch / update Oracle 11g to the latest version?

What is your OS?
Download latest patch: 11.2.0.3
This patch is easy because it is a full installation, therefore you just install the software (with Oracle Universal Installer) in a new Oracle home, stop db, start db using new home and use dbua (upgrade assistant) to upgrade the db.
Good luck!
__________________

Reply With Quote
  #3  
Old April 19th, 2012, 09:06 AM
CarlosinFL CarlosinFL is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 51 CarlosinFL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 8 m 48 sec
Reputation Power: 2
Quote:
Originally Posted by LKBrwn_DBA
What is your OS?
Download latest patch: 11.2.0.3
This patch is easy because it is a full installation, therefore you just install the software (with Oracle Universal Installer) in a new Oracle home, stop db, start db using new home and use dbua (upgrade assistant) to upgrade the db.
Good luck!


Our database is running on RHEL 5.8 64-bit. When you say the patch is easy to install because it's a full installation, does this mean I'm going to be basically just re-installing Oracle 11g on top of an existing installation?

A new Oracle home? Currently Oracle home is /oracle on my server. Does this mean when I upgrade, I have to generate a new directory for the patch so like /oraclenew? Can't I just keep Oracle in the same home directory that it's currently in /oracle?

Reply With Quote
  #4  
Old April 19th, 2012, 04:22 PM
LKBrwn_DBA's Avatar
LKBrwn_DBA LKBrwn_DBA is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2006
Posts: 748 LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 1 h 41 m 3 sec
Reputation Power: 348
Cool

Quote:
Originally Posted by CarlosinFL
Our database is running on RHEL 5.8 64-bit. When you say the patch is easy to install because it's a full installation, does this mean I'm going to be basically just re-installing Oracle 11g on top of an existing installation?

Yes, the installation has 7 zip files of which you may need only the first two (read the readme.txt file)
Once you unzip 1of7 and 2o7 files, it creates a directory called "database". From that directory, execute the runInstaller (OUI) program and follow the instructions.

Quote:
A new Oracle home? Currently Oracle home is /oracle on my server. Does this mean when I upgrade, I have to generate a new directory for the patch so like /oraclenew?

It's very unlikely that the actual oracle home is /oracle, perhaps that is the "oracle base". Look under that directory and study the sub-directories.

Execute this on the linux command line, it will list the names of the databases on that server and their Oracle home:
Code:
cat /etc/oratab

The OUI (installer) will create a new oracle home for you.

Quote:
Can't I just keep Oracle in the same home directory that it's currently in /oracle?

You could, but you should follow the instructions in the fine OracleŽ Database Installation Guide about how to setup an Optimal Flexible Architecture.

Reply With Quote
  #5  
Old April 23rd, 2012, 12:22 PM
CarlosinFL CarlosinFL is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2011
Posts: 51 CarlosinFL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 8 m 48 sec
Reputation Power: 2
So I downloaded the latest first two zip files from Oracle 11g 11.2.0.3. My Oracle home currently is:

Code:
[oracle@cq ~]$ echo $ORACLE_HOME
/oracle/u01/app/oracle/product/11.1.0/db_1


So since I would like to do a "out-of-place" upgrade on my server, I created a new directory called $ORACLE_HOME/db_2 & I extracted the two .ZIP files into the new db_2 directory. Now before I run the installed from $ORACLE_HOME/db_2/database/runInstaller, I have some concerns.

1. Since this is an "Out-of-place" upgrade into a different directory, that simply just means that I'm 'installing' Oracle from scratch into my newly created 'db_2' directory, correct?

2. Is it safe? If I'm correct in understanding that an "Out-of-place" upgrade is basically just installed Oracle into a new location on the disk, this can be pretty safe as far as upgrades go, correct? This is a production server and I do have backups taken from RMAN however the chances of borking up my current install is pretty minimal, correct?

3. Assuning I understand 1 & 2 above, then after I run the 'runInstaller.sh' script, how will all the data from my current installation in the 'db_1' path get moved over to the new installation in the 'db_2' folder path? Do I need to do some kind of schema migration or does Oracle installer magically migrate everything for me?

Reply With Quote
  #6  
Old August 14th, 2012, 08:34 AM
TwistedVegas TwistedVegas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2012
Posts: 1 TwistedVegas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m
Reputation Power: 0
Oracle Upgrade

Where you successfull with upgrade. I will be doing a similiar upgrade this Friday? I had questions


Quote:
Originally Posted by CarlosinFL
So I downloaded the latest first two zip files from Oracle 11g 11.2.0.3. My Oracle home currently is:

Code:
[oracle@cq ~]$ echo $ORACLE_HOME
/oracle/u01/app/oracle/product/11.1.0/db_1


So since I would like to do a "out-of-place" upgrade on my server, I created a new directory called $ORACLE_HOME/db_2 & I extracted the two .ZIP files into the new db_2 directory. Now before I run the installed from $ORACLE_HOME/db_2/database/runInstaller, I have some concerns.

1. Since this is an "Out-of-place" upgrade into a different directory, that simply just means that I'm 'installing' Oracle from scratch into my newly created 'db_2' directory, correct?

2. Is it safe? If I'm correct in understanding that an "Out-of-place" upgrade is basically just installed Oracle into a new location on the disk, this can be pretty safe as far as upgrades go, correct? This is a production server and I do have backups taken from RMAN however the chances of borking up my current install is pretty minimal, correct?

3. Assuning I understand 1 & 2 above, then after I run the 'runInstaller.sh' script, how will all the data from my current installation in the 'db_1' path get moved over to the new installation in the 'db_2' folder path? Do I need to do some kind of schema migration or does Oracle installer magically migrate everything for me?

Reply With Quote
  #7  
Old September 17th, 2012, 02:04 AM
ilesterg ilesterg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 3 ilesterg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 35 sec
Reputation Power: 0
I heard our dba's always seek assistance from Oracle everytime they patch production servers. This might depend on the service level, not really sure, but you might want to ask Oracle.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > How To Patch Oracle 11g

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap