Steps in Applying a Patch - Oracle Apps 11i
.
Here are 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>’
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 .
*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
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:
*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.
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)
STEP 6: 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:
*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.
2.Disable Maintenance mode.
3.Return to Main Menu.
Select option 2. Then return to console.
STEP 7: start all application service
HOw to apply patch without putting maintenance mode:
APPS - how to apply patch HOT (without enabling
maintenance mode)
Use the following option when calling adpatch:
options=hotpatch
EXAMPLE:
adpatch
defaultsfile=/u02/app/applmgr/11.5/admin/SIDNAME/def.txt \
logfile=all_5162862.log \
patchtop=/copy/APPS_PATCHES/2006/002/5162862 \
driver=u5162862.drv \
workers=4 \
interactive=yes \
options=novalidate,hotpatch
In the above example we will:
apply patch#
5162862
using
u5162862.drv driver
using 4
workers
in
interactive mode
without
validating pre-reqs
without
enabling maintenance mode (hotpatch)
No comments:
Post a Comment