Solved

Question about Oracle CPU patches

Posted on 2014-07-27
5
600 Views
Last Modified: 2014-08-12
I am applying the Oracle CPU quarterly July Patches.( Oracle 11g rel 2 11.2.0.3)
I am having more than 30 databases on one server and I am the only dba here. I like to upgrade the home and half of the databases only. (Like 15 out of 30 on Sunday and the rest 15 databases after 3-4 days)
My question is I like to Patch the Oracle Home (using Opatch ) and I like to keep all the databases up and running.
Can I patch the home keeping all the databases up and running and then shutdown and start the individual oracle instance as per my own convenience like 15 now and the rest later?
The readme says stop the listener but it does not say to stop all the databases as well. I am planning to upgrade the home on Sunday and upgrade at least half of the databases at the same time and the rest half of the databases on Wednesday or Thursday ( After 3-4 days)
My question is that the non patched  databases will give any error or it will keep running until I stop and start with the below command to upgrade the instances?
Earlier I used to stop everything (All the databases  including listeners ) and apply it. This time I am thinking to apply this approach. Is this a right approach or I may not able to apply it without shutting down all the instances??

Steps:-  
Apply Patch using Opatch
then catpatch individual databases
SQL> STARTUP
SQL> @catbundle.sql cpu apply

Suggestions please
0
Comment
Question by:Oranew
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:praveencpk
ID: 40222968
if you have a single oracle home then is not possible to do partially now and rest afterwards has your un-upgraded database will fail to communicate.

>>The readme says stop the listener but it does not say to stop all the databases as well.<<
stop listener itself will stop the new communication to the database and for applying the patch on the database you need to start the database in upgrade mode.
0
 
LVL 34

Expert Comment

by:johnsone
ID: 40223784
What we do is create a new ORACLE_HOME with the upgraded and patched software.  Then when it is time to switch a database, all we have to do is reset the ORACLE_HOME and run the upgrade scripts in that one database.

Typically the software is installed and ready days (if not weeks) in advance.

Once all databases are migrated to the new software, we remove the old one.  The databases that aren't upgrade only have a momentary outage while the old listener is shut down and the new one is started.  It doesn't require a shutdown on the old databases, they just wouldn't accept new connections for a few seconds.  Existing connections wouldn't be affected.
0
 

Author Comment

by:Oranew
ID: 40230558
Thanks both of you !
Now I created a second Oracle Home by tar and untar.
The existing home is /u01/app/oracle/11.2.0
I create a new home (using tar and Untar) which is exactly the same as below:-
/u01/app/oracle/11.2.3

All my instances are using 11.2.0 HOME.
Earlier; like a year ago. When I was upgrading to 11.2.0.3 It gave me error and I need to shutdown all the instances including the listeners and then only I can able to upgrade it.
I am worried if the same problem will come if I use the new home?
My plan is to shutdown one instance and restart using the new home(11.2.0.3) and test. As the listeners are also different for each database so I will only be shutting down ONE listener for this particular database and If it worked I will do the same steps for the rest of the databases ..in the similar fashion.
Please let me know if  this is what you guys are advising to do?
Your comments will be highly appreciated.
0
 
LVL 12

Expert Comment

by:praveencpk
ID: 40230587
yes that's right go for one by one , also i think you need to re create the listener with new oracle home.
0
 
LVL 34

Accepted Solution

by:
johnsone earned 500 total points
ID: 40231438
tar and untar may not work.  The software will run, but since it wasn't installed, it doesn't have an inventory directory.  Also, the path names are different, so relinking will most likely fail (the install path is saved in the scripts, it doesn't rely on ORACLE_HOME).

The safest way is to actually do an install into the new directory and then apply all the patches.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now