Solved

Question about Oracle CPU patches

Posted on 2014-07-27
5
606 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 35

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 35

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious sideā€¦
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

735 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