Tuesday, July 12, 2016

Manage Custom settings by Autoconfig in Apps


When we are running Autoconfig   and If we don't want to change the custom settings , then we need to follow some precautions before running Autoconfig . Here as follows ...

1. $AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE target=

Use above command to find out template for your configuration file.
  
$AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE \
target=$COMMON_TOP/html/bin/appsweb_$CONTEXT_NAME.cfg

The adtmplreport utility returns the name and location of the AutoConfig template file.

$FND_TOP/admin/template/appsweb.cfg.


2. Once you get the template

create a "custom" directory in $AD_TOP/admin/template , copy  the template to custom directory and 
do your changes

Execute the following command as the applmgr user:
  

cp -i
For example:
cp -i $FND_TOP/admin/template/appsweb.cfg \
      $FND_TOP/admin/template/custom/appsweb.cfg

Edit the custom template file with the editor of your choice, such as vi on UNIX


3. Run autoconfig.

Brief explanation of above 


$COMMON_TOP/html/bin/appsweb_$CONTEXT_NAME.cfg,

execute:

$AD_TOP/bin/adtmplreport.sh contextfile=$CONTEXT_FILE  
target=$COMMON_TOP/html/bin/appsweb_$CONTEXT_NAME.cfg
The adtmplreport utility returns the name and location of the AutoConfig template file.

Output will be :

$FND_TOP/admin/template/appsweb.cfg.

 “You cannot customize all AutoConfig template files. The AutoConfig template file cannot be customized if the "LOCK" keyword appears in the template file's entry in the product driver file. AutoConfig ignores custom template files that are marked with "LOCK". For example, the following entry in /admin/driver/adtmpl.drv would prevent customization of the file adconfig.txt:

ad admin/template adconfig.txt INSTE8 /admin adconfig.txt 600 LOCK  “


Create the custom template directory

Create a directory named "custom" at the location where the AutoConfig template file resides.

mkdir  -p $FND_TOP/admin/template/custom

For example, if you want to customize /admin/template/appsweb.cfg, execute the following command as the applmgr user:
  
 (Copy the AutoConfig template file to the custom template file. )

cp -i  $FND_TOP/admin/template/appsweb.cfg        $FND_TOP/admin/template/custom/appsweb.cfg

Edit the custom template file with the editor of your choice
  
Then you can run the autoconfig now . So that you will remain with all custom settings what you have before .

2 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete