From 11.5, we can run AutoPatch non-interactively.
Before we can run AutoPatch non-interactively, for this mode we must first create an AutoPatch defaults file in $APPL_TOP/admin/<SID>
Here are the simple steps to create an AutoPatch defaults file for our current environment:
1. Specify defaultsfile=<New Defaults File Name> on the AutoPatch command line. The defaults file must be located under $APPL_TOP/admin/<SID>.
For example:
adpatch defaultsfile=$APPL_TOP/admin/testdb1/my_def.txt
2. Run AutoPatch up to the point where it asks you for the directory where your Oracle Applications patch has been unloaded. Then type ‘abort’ at this prompt.
3. Verify that our defaults file exists.
Once we have an AutoPatch defaults file for our current environment, you can run AutoPatch non-interactively.
It is possible to apply just a single patch driver file non-interactively using AutoPatch. Here is an example:
•defaults file is $APPL_TOP/admin/PROD/def.txt
•Applying copy driver for patch xxxxx, which is located in directory $APPL_TOP/patch/xxxxx.
•Using three parallel workers
•AutoPatch log file name is xxxxx.log
4. The AutoPatch command line would be:
adpatch defaultsfile=$APPL_TOP/admin/PROD/defaults.txt \
logfile=xxxxx.log \
patchtop=$APPL_TOP/patch/xxxxx \
driver=uxxxxx.drv \
workers=8 \
interactive=no
or
adpatch defaultsfile=$APPL_TOP/admin/PROD/defaults.txt interactive=no
If we don’t give any of the mode as mentioned above and apply the patch simply using adpatch command then Interactive will work which is normal mode of patch application.
Before we can run AutoPatch non-interactively, for this mode we must first create an AutoPatch defaults file in $APPL_TOP/admin/<SID>
Here are the simple steps to create an AutoPatch defaults file for our current environment:
1. Specify defaultsfile=<New Defaults File Name> on the AutoPatch command line. The defaults file must be located under $APPL_TOP/admin/<SID>.
For example:
adpatch defaultsfile=$APPL_TOP/admin/testdb1/my_def.txt
2. Run AutoPatch up to the point where it asks you for the directory where your Oracle Applications patch has been unloaded. Then type ‘abort’ at this prompt.
3. Verify that our defaults file exists.
Once we have an AutoPatch defaults file for our current environment, you can run AutoPatch non-interactively.
It is possible to apply just a single patch driver file non-interactively using AutoPatch. Here is an example:
•defaults file is $APPL_TOP/admin/PROD/def.txt
•Applying copy driver for patch xxxxx, which is located in directory $APPL_TOP/patch/xxxxx.
•Using three parallel workers
•AutoPatch log file name is xxxxx.log
4. The AutoPatch command line would be:
adpatch defaultsfile=$APPL_TOP/admin/PROD/defaults.txt \
logfile=xxxxx.log \
patchtop=$APPL_TOP/patch/xxxxx \
driver=uxxxxx.drv \
workers=8 \
interactive=no
or
adpatch defaultsfile=$APPL_TOP/admin/PROD/defaults.txt interactive=no
If we don’t give any of the mode as mentioned above and apply the patch simply using adpatch command then Interactive will work which is normal mode of patch application.
Can we provide the passwords of APPS and System in defaults file?
ReplyDelete