You have removed the patch log directoy and what happens when you fire adpatch?
Will patch get succeed or error out?
/apps/vision/apps/apps_st/appl/admin/vision
[applvision@apps vision]$ ls -tlrh
total 56K
drwx------ 2 applvision applmgr 4.0K Sep 20 06:35 21sep2013_log
-rw------- 1 applvision applmgr 25K Sep 22 01:25 adalldefaults.txt
drwx------ 2 applvision applmgr 4.0K Sep 22 02:24 log
drwx------ 3 applvision applmgr 16K Sep 22 02:24 out
drwxr-xr-x 2 applvision applmgr 4.0K Sep 22 02:26 restart
[applvision@apps vision]$ rm -rf log
[applvision@apps vision]$ ls -ld log
ls: log: No such file or directory
[applvision@apps vision]$ pwd
/apps/vision/apps/apps_st/appl/admin/vision
[applvision@apps vision]$
[applvision@apps vision]$ date
Thu Sep 26 06:51:05 IST 2013
[applvision@apps vision]$
My application services are down
=================================
[applvision@apps patches]$ ps -fu applvision
UID PID PPID C STIME TTY TIME CMD
501 5434 5398 0 05:59 ? 00:00:00 sshd: applvision@pts/3
501 5435 5434 0 05:59 pts/3 00:00:00 -bash
501 5964 5957 0 06:08 ? 00:00:00 sshd: applvision@pts/4
501 5965 5964 0 06:08 pts/4 00:00:00 -bash
501 6520 5435 0 06:32 pts/3 00:00:00 ps -fu applvision
[applvision@apps patches]$
Enabling maintainance mode
============================
Beginning database cleanup for previous session ...
Completed database cleanup for previous session.
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
Enter your choice [6] : 5
Change Maintenance Mode
----------------------------------------
Maintenance Mode is currently: [Disabled].
Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system. See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.
Please select an option:
1. Enable Maintenance Mode
2. Disable Maintenance Mode
3. Return to Main Menu
Enter your choice [3] : 1
sqlplus -s &un_apps/***** @/apps/vision/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adsetmmd.sql ENABLE
Successfully enabled Maintenance Mode.
Review the messages above, then press [Return] to continue.
Backing up restart files, if any......Done.
Change Maintenance Mode
----------------------------------------
Maintenance Mode is currently: [Enabled].
Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system. See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.
Please select an option:
1. Enable Maintenance Mode
2. Disable Maintenance Mode
3. Return to Main Menu
i have unloaded the patch in this directory.
/apps/vision/apps/apps_st/patches/11808198
[applvision@apps 11808198]$ adpatch
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Oracle Applications AutoPatch
Version 12.0.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Attention: AutoPatch no longer checks for unapplied pre-requisite patches.
You must use OAM Patch Wizard for this feature. Alternatively, you can
review the README for pre-requisite information.
Your default directory is '/apps/vision/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ?
AutoPatch records your AutoPatch session in a text file
you specify. Enter your AutoPatch log file name or press [Return]
to accept the default file name shown in brackets.
Filename [adpatch.log] : test.log ==> it has created the log direcotory,so adpatch will not fail.
You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ?
Please enter the batchsize [1000] :
Please enter the name of the Oracle Applications System that this
APPL_TOP belongs to.
The Applications System name must be unique across all Oracle
Applications Systems at your site, must be from 1 to 30 characters
long, may only contain alphanumeric and underscore characters,
and must start with a letter.
Sample Applications System names are: "prod", "test", "demo" and
"Development_2".
Applications System Name [vision] : vision *
NOTE: If you do not currently have certain types of files installed
in this APPL_TOP, you may not be able to perform certain tasks.
Example 1: If you don't have files used for installing or upgrading
the database installed in this area, you cannot install or upgrade
the database from this APPL_TOP.
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 *
Do you currently have Oracle Applications forms files installed
in this APPL_TOP [YES] ? YES *
Do you currently have concurrent program files 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.
Sample APPL_TOP Names are: "prod_all", "demo3_forms2", and "forms1".
APPL_TOP Name [apps] : apps *
NOTE:
Adpatch will complete without ant errors,becuase it is able to create log directory.
/apps/vision/apps/apps_st/appl/admin/vision
[applvision@apps vision]$ ls -ltrh
total 56K
drwx------ 2 applvision applmgr 4.0K Sep 20 06:35 21sep2013_log
-rw------- 1 applvision applmgr 25K Sep 22 01:25 adalldefaults.txt
drwx------ 3 applvision applmgr 16K Sep 22 02:24 out
drwxr-xr-x 2 applvision applmgr 4.0K Sep 26 06:52 log
drwxr-xr-x 2 applvision applmgr 4.0K Sep 26 06:52 restart
see the timestamp
[applvision@apps vision]$ date
Thu Sep 26 06:53:53 IST 2013
[applvision@apps vision]$ cd log
[applvision@apps log]$ ls -tlh
total 32K
-rw-r--r-- 1 applvision applmgr 7.2K Sep 26 06:52 test.log
-rw-r--r-- 1 applvision applmgr 366 Sep 26 06:52 test.lgi
-rw-r--r-- 1 applvision applmgr 18K Sep 26 06:49 adadmin.log
[applvision@apps log]$
Will patch get succeed or error out?
/apps/vision/apps/apps_st/appl/admin/vision
[applvision@apps vision]$ ls -tlrh
total 56K
drwx------ 2 applvision applmgr 4.0K Sep 20 06:35 21sep2013_log
-rw------- 1 applvision applmgr 25K Sep 22 01:25 adalldefaults.txt
drwx------ 2 applvision applmgr 4.0K Sep 22 02:24 log
drwx------ 3 applvision applmgr 16K Sep 22 02:24 out
drwxr-xr-x 2 applvision applmgr 4.0K Sep 22 02:26 restart
[applvision@apps vision]$ rm -rf log
[applvision@apps vision]$ ls -ld log
ls: log: No such file or directory
[applvision@apps vision]$ pwd
/apps/vision/apps/apps_st/appl/admin/vision
[applvision@apps vision]$
[applvision@apps vision]$ date
Thu Sep 26 06:51:05 IST 2013
[applvision@apps vision]$
My application services are down
=================================
[applvision@apps patches]$ ps -fu applvision
UID PID PPID C STIME TTY TIME CMD
501 5434 5398 0 05:59 ? 00:00:00 sshd: applvision@pts/3
501 5435 5434 0 05:59 pts/3 00:00:00 -bash
501 5964 5957 0 06:08 ? 00:00:00 sshd: applvision@pts/4
501 5965 5964 0 06:08 pts/4 00:00:00 -bash
501 6520 5435 0 06:32 pts/3 00:00:00 ps -fu applvision
[applvision@apps patches]$
Enabling maintainance mode
============================
Beginning database cleanup for previous session ...
Completed database cleanup for previous session.
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
Enter your choice [6] : 5
Change Maintenance Mode
----------------------------------------
Maintenance Mode is currently: [Disabled].
Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system. See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.
Please select an option:
1. Enable Maintenance Mode
2. Disable Maintenance Mode
3. Return to Main Menu
Enter your choice [3] : 1
sqlplus -s &un_apps/***** @/apps/vision/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adsetmmd.sql ENABLE
Successfully enabled Maintenance Mode.
Review the messages above, then press [Return] to continue.
Backing up restart files, if any......Done.
Change Maintenance Mode
----------------------------------------
Maintenance Mode is currently: [Enabled].
Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system. See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.
Please select an option:
1. Enable Maintenance Mode
2. Disable Maintenance Mode
3. Return to Main Menu
i have unloaded the patch in this directory.
/apps/vision/apps/apps_st/patches/11808198
[applvision@apps 11808198]$ adpatch
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Oracle Applications AutoPatch
Version 12.0.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Attention: AutoPatch no longer checks for unapplied pre-requisite patches.
You must use OAM Patch Wizard for this feature. Alternatively, you can
review the README for pre-requisite information.
Your default directory is '/apps/vision/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ?
AutoPatch records your AutoPatch session in a text file
you specify. Enter your AutoPatch log file name or press [Return]
to accept the default file name shown in brackets.
Filename [adpatch.log] : test.log ==> it has created the log direcotory,so adpatch will not fail.
You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ?
Please enter the batchsize [1000] :
Please enter the name of the Oracle Applications System that this
APPL_TOP belongs to.
The Applications System name must be unique across all Oracle
Applications Systems at your site, must be from 1 to 30 characters
long, may only contain alphanumeric and underscore characters,
and must start with a letter.
Sample Applications System names are: "prod", "test", "demo" and
"Development_2".
Applications System Name [vision] : vision *
NOTE: If you do not currently have certain types of files installed
in this APPL_TOP, you may not be able to perform certain tasks.
Example 1: If you don't have files used for installing or upgrading
the database installed in this area, you cannot install or upgrade
the database from this APPL_TOP.
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 *
Do you currently have Oracle Applications forms files installed
in this APPL_TOP [YES] ? YES *
Do you currently have concurrent program files 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.
Sample APPL_TOP Names are: "prod_all", "demo3_forms2", and "forms1".
APPL_TOP Name [apps] : apps *
NOTE:
Adpatch will complete without ant errors,becuase it is able to create log directory.
/apps/vision/apps/apps_st/appl/admin/vision
[applvision@apps vision]$ ls -ltrh
total 56K
drwx------ 2 applvision applmgr 4.0K Sep 20 06:35 21sep2013_log
-rw------- 1 applvision applmgr 25K Sep 22 01:25 adalldefaults.txt
drwx------ 3 applvision applmgr 16K Sep 22 02:24 out
drwxr-xr-x 2 applvision applmgr 4.0K Sep 26 06:52 log
drwxr-xr-x 2 applvision applmgr 4.0K Sep 26 06:52 restart
see the timestamp
[applvision@apps vision]$ date
Thu Sep 26 06:53:53 IST 2013
[applvision@apps vision]$ cd log
[applvision@apps log]$ ls -tlh
total 32K
-rw-r--r-- 1 applvision applmgr 7.2K Sep 26 06:52 test.log
-rw-r--r-- 1 applvision applmgr 366 Sep 26 06:52 test.lgi
-rw-r--r-- 1 applvision applmgr 18K Sep 26 06:49 adadmin.log
[applvision@apps log]$
No comments:
Post a Comment