How To Apply Apps Patch Using Adpatch R12
How To Apply Apps Patch Using Adpatch R12
STEP 1: Before applying a patch you must check whether the patch is already
there or not. For this we query the database:
su oracle
Run the environment variable db tire
sqlplus apps/<apps password
SQL>select * from AD_BUGS where bug_number=’<patch number>’
Ex:- SQL>select * from AD_BUGS where bug_number=’16213642’
STEP 2 : Download the patch. From your pc and transfer it to Linux server
*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. With winscp or whatever software
Winscp download link
http://winscp.net/eng/download.php#download
STEP 3 :Unzip the patch. And set the permission
su root
cd /u01/patch
unzip p16213642_R12.AP.B_R12_LINUX.zip
chown oracle:dba 16213642
Output
AD Administration Main Menu
--------------------------------------------------
1. Generate Applications Files menu
2. Maintain Applications Files menu
3. Compile/Reload Applications Database Entities menu
4. Maintain Applications Database Entities menu
5. Change Maintenance Mode
6. Exit AD Administration
Select option 6. 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 7: Run autopatch from the patch directory by entering the following
command:
su oracle
[oracle@oftest appl]$cd /u01/patch/16213642/
[oracle@oftest appl]$adpatch
Note: - below red color will highlighted lines you will have to fill
Out put
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Example 2: If you don't have forms files installed in this area, you cannot
generate them or run them from this APPL_TOP.
Example 3: If you don't have concurrent program files installed in this area,
you cannot relink concurrent programs or generate reports from this APPL_TOP.
Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ? YES *
Do you currently have Java and HTML files for HTML-based functionality
installed in this APPL_TOP [YES] ? YES *
Please enter the name Oracle Applications will use to identify this APPL_TOP.
The APPL_TOP name you select must be unique within an Oracle Applications
System, must be from 1 to 30 characters long, may only contain
alphanumeric and underscore characters, and must start with a letter.
Enter the directory where your Oracle Applications patch has been unloaded
The default directory is [/u01/patch/16213642] :
Please enter the name of your AutoPatch driver file : u16213642.drv
If you don’t see the “autopatch is complete” message at the end of the
Autopatch log file, Autopatch did not complete successfully.
STEP 9: confirm the patch installation status For this we query the database:
su oracle
Run the environment variable db tire
sqlplus apps/<apps password
SQL>select * from AD_BUGS where bug_number=’<patch number>’
Ex:- SQL>select * from AD_BUGS where bug_number=’16213642’