Patch
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Patch

on

  • 381 views

 

Statistics

Views

Total Views
381
Views on SlideShare
381
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

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…
Post Comment
Edit your comment

Patch Document Transcript

  • 1. Oracle PATCHING : adpatch , Maintenance ModePatch is a program to fix a particular problem or enhance/add a particular featurein existing program/product/software.In Oracle to apply database patch we use ‘opatch‘ ($ORACLE_HOME/OPatch)where as in order to apply applications patch we use ad utility ‘adpatch‘($AD_TOP/bin).For Basic Apps patches terminology & other related details please refer to thefollowing links:http://onlineappsdba.com/index.php/2006/08/10/oracle-apps-patch-basics/http://onlineappsdba.com/index.php/2006/08/11/oracle-apps-patch-basics-ii/Before going on steps for patching just a brief on Maintenance Mode,Maintenance Mode is mode of operation introduced with AD.I.2, in which theoracle application system is made accessible only for patching activities. Greatlyimproves performance by minimizing downtime.If you wish to apply patch without putting applications in maintenance mode (forsmall patches) use options=hotpatch with adpatch.Here I am explaining basic steps that are performed in patching :STEP 1 :Before applying a patch you must check whether the patch is alreadythere or not. For this we query the database:*sqlplus apps/<apps password>@<tnsalias> thenselect * from AD_BUGS where bug_number=’<patch number>’STEP 2 : Download the patch.
  • 2. *login to oracle metalink.(www.metalink.oracle.com)*Select the patches option then select the search type.*Query for patch by writing the patch no. & platform on which you want todownload the patch.*Click download .If you have downloaded the patch at desktop then move it to directory where youwant it to unzip.mv <patch.zip> <destination patch directory>eg: mv p4003579_linux.zip /u1/apps/patchSTEP 3 :Unzip the patch. For this*log in as application tier user.*Go to the directory where you have your patch directory & type command-unzip patch.zipThis will unzip the patch in current directory & will make the required patchdirectories & sub directories.STEP 4 :Enable the Maintenance Mode.For This:*Set the environment file located in APPL_TOP.*Run the ad administration utility by typing adadmin on unix/linux console. It willask questions related to admin utility with default answers in brackets.Then itshows following options & ask for the choice:1.Generate applications file menu.2.Maintain applications file menu.3.Compile/Reload Applications Database Entities Menu.4.Maintain Applications Database Entities Menu.5.Change Maintenance Mode.6.Exit ad Administration.
  • 3. Select option 5. The status of maintenance mode is displayed at the top ofchange maintenance mode menu.Again it will show following options & ask forchoice:1.Enable Maintenance mode.2.Disable Maintenance mode.3.Return to Main Menu.Select option 1. Then return to console.STEP 5: Run autopatch from the patch directory by entering the followingcommand:$ adpatchAfter this answer the questions of autopatch. As autopatch finishes its tasks, itwrites timing information to the AD timing report for jobs running in parallel (if any) and reminds you to run the log files for any errors.If you don’t see the “autopatch is complete” message at the end of the Autopatchlog file, Autopatch did not complete successfully.The most important step after autopatch completes is to check the log files forany errors that may occurred during the patching process. Check the mainAutopatch log file first,then additional log files as necessary.The default name of main autopatch log file is adpatch.log .The file is located in$APPL_TOP/admin/<SID>/logQuestion for readers :What is lgi file in log location (above directory)