Friday 8 March 2013

How can we change the location of conc manager logfiles $APPLCSF/$APPLLOG?



1)Make sure service should not be runing.

[applmgr@apps scripts]$ ps -fu applmgr
UID        PID  PPID  C STIME TTY          TIME CMD
applmgr  26816 26815  0 14:51 pts/1    00:00:01 -bash
applmgr  27723 26816  0 15:35 pts/1    00:00:00 ps -fu applmgr
[applmgr@apps scripts]$


2)Take the backup of old xml file before you make changes to it.
cp -r PROD_apps.xml PROD_apps.xml_08mar2013


3) $APPLCSF existing location

[applmgr@apps admin]$ echo $APPLCSF/$APPLLOG
/u02/inst/apps/PROD_apps/logs/appl/conc/log
     
                         (OR)              

Also you can check with the below commands.

To extract one parameter from xml use grep
=========================================

[applmgr@apps log]$ grep -i s_applcsf $CONTEXT_FILE
         <APPLCSF oa_var="s_applcsf">/u02/inst/apps/PROD_apps/logs/appl/conc</APPLCSF>

To grep multiple parameter use egrep
=================================================
[applmgr@apps log]$ egrep -i 's_applcsf|s_appllog|s_applout' $CONTEXT_FILE
         <APPLCSF oa_var="s_applcsf">/u02/inst/apps/PROD_apps/logs/appl/conc</APPLCSF>
         <APPLLOG oa_var="s_appllog">log</APPLLOG>
         <APPLOUT oa_var="s_applout">out</APPLOUT>
[applmgr@apps log]$

4)change the location and run autoconfig

i have changed the value of $APPLCSF  in xml file to /u02/inst,$APPLLOG to log and $APPLOUT to out only .once parameters are changed in the xml file 
run autoconfig in order to reflect it.

When you grep it .It will show you modified value.
[applmgr@apps admin]$ egrep -i 's_applcsf|s_appllog|s_applout' $CONTEXT_FILE
         <APPLCSF oa_var="s_applcsf">/u02/inst</APPLCSF>
         <APPLLOG oa_var="s_appllog">log</APPLLOG>
         <APPLOUT oa_var="s_applout">out</APPLOUT>
[applmgr@apps admin]$


Still it will show you the old value as you have not run the autoconfig,just run autconfig to reflect it.

[applmgr@apps admin]$ echo $APPLCSF/$APPLLOG
/u02/inst/apps/PROD_apps/logs/appl/conc/log


Now go to script location and run autoconfig.
===============================

[applmgr@apps inst]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@apps scripts]$ pwd
/u02/inst/apps/PROD_apps/admin/scripts
[applmgr@apps scripts]$ ls -ltrh
total 168K
drwxr-xr-x  2 applmgr dba 4.0K Mar  1 19:17 msc
drwxr-xr-x  2 applmgr dba 4.0K Mar  1 19:17 ieo
-rwx------  1 applmgr dba 5.6K Mar  1 19:21 adstpall.sh
-rwx------  1 applmgr dba 5.7K Mar  1 19:21 adstrtal.sh
-rwx------  1 applmgr dba 7.1K Mar  1 19:21 adalnctl.sh
-rwx------  1 applmgr dba  17K Mar  1 19:21 adcmctl.sh
-rwx------  1 applmgr dba 1.5K Mar  1 19:21 adautocfg.sh
-rwx------  1 applmgr dba  15K Mar  1 19:21 adpreclone.pl
-rwx------  1 applmgr dba 7.0K Mar  1 19:21 adexecsql.pl
-rwx------  1 applmgr dba 2.1K Mar  1 19:22 java.sh
-rwx------  1 applmgr dba 2.2K Mar  1 19:22 gsmstart.sh
-rwx------  1 applmgr dba 8.5K Mar  1 19:22 adformsctl.sh
-rwx------  1 applmgr dba 8.0K Mar  1 19:22 adapcctl.sh
-rwx------  1 applmgr dba 7.1K Mar  1 19:22 adopmnctl.sh
-rwx------  1 applmgr dba 7.8K Mar  1 19:22 adoafmctl.sh
-rwx------  1 applmgr dba 7.7K Mar  1 19:22 adoacorectl.sh
-rwx------  1 applmgr dba  10K Mar  1 19:22 adformsrvctl.sh
-rwx------  1 applmgr dba 6.1K Mar  1 19:37 jtffmctl.sh
-rwxrwxr--  1 applmgr dba 6.5K Mar  1 19:38 mwactlwrpr.sh
-rwxrwxr--  1 applmgr dba 6.5K Mar  1 19:38 mwactl.sh
[applmgr@apps scripts]$

Running autoconfig
============
[applmgr@apps scripts]$ adautocfg.sh
Enter the APPS user password:

The log file for this session is located at: /u02/inst/apps/PROD_apps/admin/log/03081544/adconfig.log

AutoConfig is configuring the Applications environment...

AutoConfig will consider the custom templates if present.
        Using CONFIG_HOME location     : /u02/inst/apps/PROD_apps
        Classpath                   : /u02/apps/apps_st/comn/java/lib/appsborg2.zip:/u02/apps/apps_st/comn/java/classes

        Using Context file          : /u02/inst/apps/PROD_apps/appl/admin/PROD_apps.xml

Context Value Management will now update the Context file

        Updating Context file...COMPLETED

        Attempting upload of Context file and templates to database...COMPLETED

Configuring templates from all of the product tops...
        Configuring AD_TOP........COMPLETED
        Configuring FND_TOP.......COMPLETED
        Configuring ICX_TOP.......COMPLETED
        Configuring MSC_TOP.......COMPLETED
        Configuring IEO_TOP.......COMPLETED
        Configuring BIS_TOP.......COMPLETED
        Configuring AMS_TOP.......COMPLETED
        Configuring CCT_TOP.......COMPLETED
        Configuring WSH_TOP.......COMPLETED
        Configuring CLN_TOP.......COMPLETED
        Configuring OKE_TOP.......COMPLETED
        Configuring OKL_TOP.......COMPLETED
        Configuring OKS_TOP.......COMPLETED
        Configuring CSF_TOP.......COMPLETED
        Configuring IGS_TOP.......COMPLETED
        Configuring IBY_TOP.......COMPLETED
        Configuring JTF_TOP.......COMPLETED
        Configuring MWA_TOP.......COMPLETED
        Configuring CN_TOP........COMPLETED
        Configuring CSI_TOP.......COMPLETED
        Configuring WIP_TOP.......COMPLETED
        Configuring CSE_TOP.......COMPLETED
        Configuring EAM_TOP.......COMPLETED
        Configuring FTE_TOP.......COMPLETED
        Configuring ONT_TOP.......COMPLETED
        Configuring AR_TOP........COMPLETED
        Configuring AHL_TOP.......COMPLETED
        Configuring OZF_TOP.......COMPLETED
        Configuring IES_TOP.......COMPLETED
        Configuring CSD_TOP.......COMPLETED
        Configuring IGC_TOP.......COMPLETED

AutoConfig completed successfully.
[applmgr@apps scripts]$


once autoconfig completed successfully source the env file.

[applmgr@apps appl]$ ls -ltrh *.env
-rw-r--r--  1 applmgr dba 16K Mar  8 15:46 PROD_apps.env
-rw-r--r--  1 applmgr dba 999 Mar  8 15:46 APPSPROD_apps.env
[applmgr@apps appl]$ . ./PROD_apps.env

[applmgr@apps appl]$ echo $APPLCSF/$APPLLOG
/u02/inst/log
[applmgr@apps appl]$


Concurrent manager logfile location successfully  changed to /u02/inst/log .

Re cap
=====
1) Services should not be running
2)Take backup of old xml file
3)change location in xml file.
4)Run autoconfig.sh
5)source env and check location


Please click on the below link to see how to roll back  an autoconfig session.
Rolling back autoconfig session






No comments:

Post a Comment