SlideShare a Scribd company logo
1 of 3
Download to read offline
Oracle PATCHING : adpatch , Maintenance Mode




Patch is a program to fix a particular problem or enhance/add a particular feature
in 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 the
following 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 the
oracle application system is made accessible only for patching activities. Greatly
improves performance by minimizing downtime.
If you wish to apply patch without putting applications in maintenance mode (for
small 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 already
there or not. For this we query the database:

*sqlplus apps/<apps password>@<tnsalias> then
select * from AD_BUGS where bug_number=’<patch number>’

STEP 2 : Download the patch.
*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 to
download the patch.
*Click download .

If you have downloaded the patch at desktop then move it to directory where you
want it to unzip.

mv <patch.zip> <destination patch directory>
eg: mv p4003579_linux.zip /u1/apps/patch

STEP 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.zip

This will unzip the patch in current directory & will make the required patch
directories & 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 will
ask questions related to admin utility with default answers in brackets.Then it
shows 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.
Select option 5. The status of maintenance mode is displayed at the top of
change maintenance mode menu.Again it will show following options & ask for
choice:

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 following
command:

$ adpatch

After this answer the questions of autopatch. As autopatch finishes its tasks, it
writes 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 Autopatch
log file, Autopatch did not complete successfully.

The most important step after autopatch completes is to check the log files for
any errors that may occurred during the patching process. Check the main
Autopatch 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)

More Related Content

Similar to Patch

Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docxLab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docxDIPESH30
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11guzzal basak
 
Orangescrum Time Log Add-on User Manual
Orangescrum Time Log Add-on User ManualOrangescrum Time Log Add-on User Manual
Orangescrum Time Log Add-on User ManualOrangescrum
 
R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24zeesniper
 
R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22zeesniper
 
Upgrade to IBM z/OS V2.4 technical actions
Upgrade to IBM z/OS V2.4 technical actionsUpgrade to IBM z/OS V2.4 technical actions
Upgrade to IBM z/OS V2.4 technical actionsMarna Walle
 
EMC Documentum xCP 2.2 Self Paced Tutorial v1.0
EMC Documentum xCP 2.2 Self Paced Tutorial v1.0EMC Documentum xCP 2.2 Self Paced Tutorial v1.0
EMC Documentum xCP 2.2 Self Paced Tutorial v1.0Haytham Ghandour
 
SugarCE For Small And Medium Enterprises
SugarCE For Small And Medium EnterprisesSugarCE For Small And Medium Enterprises
SugarCE For Small And Medium EnterprisesDashamir Hoxha
 
Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015andreas kuncoro
 
R12 d49656 gc10-apps dba 14
R12 d49656 gc10-apps dba 14R12 d49656 gc10-apps dba 14
R12 d49656 gc10-apps dba 14zeesniper
 
Ax2012 technical Upgrade process
Ax2012 technical Upgrade processAx2012 technical Upgrade process
Ax2012 technical Upgrade processTariq Rafique
 
Cis 206 i lab 2 backing up and restoring data
Cis 206 i lab 2 backing up and restoring dataCis 206 i lab 2 backing up and restoring data
Cis 206 i lab 2 backing up and restoring dataacece556
 
Troubleshooting oracle apps
Troubleshooting oracle appsTroubleshooting oracle apps
Troubleshooting oracle appsvamsi18here
 
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01IT TRAINER
 

Similar to Patch (20)

Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docxLab #9 and 10 Web Server ProgrammingCreate a New Folder  I s.docx
Lab #9 and 10 Web Server ProgrammingCreate a New Folder I s.docx
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
 
Orangescrum Time Log Add-on User Manual
Orangescrum Time Log Add-on User ManualOrangescrum Time Log Add-on User Manual
Orangescrum Time Log Add-on User Manual
 
R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24R12 d49656 gc10-apps dba 24
R12 d49656 gc10-apps dba 24
 
R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22R12 d49656 gc10-apps dba 22
R12 d49656 gc10-apps dba 22
 
Upgrade to IBM z/OS V2.4 technical actions
Upgrade to IBM z/OS V2.4 technical actionsUpgrade to IBM z/OS V2.4 technical actions
Upgrade to IBM z/OS V2.4 technical actions
 
EMC Documentum xCP 2.2 Self Paced Tutorial v1.0
EMC Documentum xCP 2.2 Self Paced Tutorial v1.0EMC Documentum xCP 2.2 Self Paced Tutorial v1.0
EMC Documentum xCP 2.2 Self Paced Tutorial v1.0
 
Pacthing
PacthingPacthing
Pacthing
 
SugarCE For Small And Medium Enterprises
SugarCE For Small And Medium EnterprisesSugarCE For Small And Medium Enterprises
SugarCE For Small And Medium Enterprises
 
Applications lab
Applications lab Applications lab
Applications lab
 
Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015Adop and maintenance task presentation 151015
Adop and maintenance task presentation 151015
 
R12 d49656 gc10-apps dba 14
R12 d49656 gc10-apps dba 14R12 d49656 gc10-apps dba 14
R12 d49656 gc10-apps dba 14
 
Ax2012 technical Upgrade process
Ax2012 technical Upgrade processAx2012 technical Upgrade process
Ax2012 technical Upgrade process
 
Cis 206 i lab 2 backing up and restoring data
Cis 206 i lab 2 backing up and restoring dataCis 206 i lab 2 backing up and restoring data
Cis 206 i lab 2 backing up and restoring data
 
Applications lab
Applications labApplications lab
Applications lab
 
Troubleshooting oracle apps
Troubleshooting oracle appsTroubleshooting oracle apps
Troubleshooting oracle apps
 
Basic Debugging
Basic DebuggingBasic Debugging
Basic Debugging
 
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01Abapdebuggingfrombasictoadvance 140214043218-phpapp01
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
 
Hplan classic
Hplan classicHplan classic
Hplan classic
 
IRRICAD HELP.pdf
IRRICAD  HELP.pdfIRRICAD  HELP.pdf
IRRICAD HELP.pdf
 

More from Deepti Singh

Oracle apps 11i file system
Oracle apps 11i   file systemOracle apps 11i   file system
Oracle apps 11i file systemDeepti Singh
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneDeepti Singh
 
File character set converter
File character set converterFile character set converter
File character set converterDeepti Singh
 
File character set converter
File character set converterFile character set converter
File character set converterDeepti Singh
 
Change oracle apps password
Change oracle apps passwordChange oracle apps password
Change oracle apps passwordDeepti Singh
 
Apps tech bootcamp_descriptions
Apps tech bootcamp_descriptionsApps tech bootcamp_descriptions
Apps tech bootcamp_descriptionsDeepti Singh
 
Appsdba interview question
Appsdba interview questionAppsdba interview question
Appsdba interview questionDeepti Singh
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing reportDeepti Singh
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing reportDeepti Singh
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification reportDeepti Singh
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification reportDeepti Singh
 
Ad configuration report
Ad configuration reportAd configuration report
Ad configuration reportDeepti Singh
 
121adpp patching procedures
121adpp patching procedures121adpp patching procedures
121adpp patching proceduresDeepti Singh
 

More from Deepti Singh (20)

Oracle apps 11i file system
Oracle apps 11i   file systemOracle apps 11i   file system
Oracle apps 11i file system
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
Oracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid cloneOracle applications 11i hot backup cloning with rapid clone
Oracle applications 11i hot backup cloning with rapid clone
 
Ilm
IlmIlm
Ilm
 
File character set converter
File character set converterFile character set converter
File character set converter
 
File character set converter
File character set converterFile character set converter
File character set converter
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Cloning 2
Cloning 2Cloning 2
Cloning 2
 
Change oracle apps password
Change oracle apps passwordChange oracle apps password
Change oracle apps password
 
Apps tech bootcamp_descriptions
Apps tech bootcamp_descriptionsApps tech bootcamp_descriptions
Apps tech bootcamp_descriptions
 
Appsdba interview question
Appsdba interview questionAppsdba interview question
Appsdba interview question
 
Adsplice
AdspliceAdsplice
Adsplice
 
Adpatch options
Adpatch optionsAdpatch options
Adpatch options
 
Adpatch options
Adpatch optionsAdpatch options
Adpatch options
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing report
 
Ad job timing report
Ad job timing reportAd job timing report
Ad job timing report
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification report
 
Ad file identification report
Ad file identification reportAd file identification report
Ad file identification report
 
Ad configuration report
Ad configuration reportAd configuration report
Ad configuration report
 
121adpp patching procedures
121adpp patching procedures121adpp patching procedures
121adpp patching procedures
 

Patch

  • 1. Oracle PATCHING : adpatch , Maintenance Mode Patch is a program to fix a particular problem or enhance/add a particular feature in 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 the following 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 the oracle application system is made accessible only for patching activities. Greatly improves performance by minimizing downtime. If you wish to apply patch without putting applications in maintenance mode (for small 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 already there or not. For this we query the database: *sqlplus apps/<apps password>@<tnsalias> then select * 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 to download the patch. *Click download . If you have downloaded the patch at desktop then move it to directory where you want it to unzip. mv <patch.zip> <destination patch directory> eg: mv p4003579_linux.zip /u1/apps/patch STEP 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.zip This will unzip the patch in current directory & will make the required patch directories & 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 will ask questions related to admin utility with default answers in brackets.Then it shows 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 of change maintenance mode menu.Again it will show following options & ask for choice: 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 following command: $ adpatch After this answer the questions of autopatch. As autopatch finishes its tasks, it writes 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 Autopatch log file, Autopatch did not complete successfully. The most important step after autopatch completes is to check the log files for any errors that may occurred during the patching process. Check the main Autopatch 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)