Tuesday, January 27, 2009

Autoconfig FAQ

What is Autoconfig in 11i ?

Autoconfig is method of configuring Oracle Applications . All the information required to configure Oracle Apps 11i is stored in file called as Context file.Context file is repository for configuration stored in xml format.

What are different Contexts file Autoconfig in 11i ?

There are two context files, one for database tier called as Database Context second for Application tier called as Application Context.

What is location of Contexts file in 11i ?

Database Context file is under Database $ORACLE_HOME/appsutil/_.xml
Application Context file is under $APPL_TOP/admin/_.xml

How to run Autoconfig in 11i ?

You will use script adautocfg.sh (on both Database tier and & Application tier).

Where to check log files after autoconfig is executed ?

On database tier its under $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/MM_DD_YYYY/adconfig.log
On Application tier its under $APPL_TOP/admin/$CONTEXT_NAME/log/MMDDYYYY/adconfig.log

where CONTXT_NAME is _

What if my Context file itself is corrupted, Can I create one ?

Yes you have utility called adbldxml to build Context File.

How to change some parameter in Context/xml file ?

If you are an expert then you can open xml file via any editor & change it but is recommending to use Context Editor or if you are on OAM.H or higher then use OAM (Oracle Application Manager) to change context file.

When should I run AutoConfig?

You should run AutoConfig in the event of the following cases:

You did updates to your Applications Context file.

An Oracle Metalink Note instructs you to run AutoConfig as part of an upgrade, migration, cloning and/or configuration process.

The Readme of an Oracle patch instructs you to run AutoConfig after the application of the patch.

You apply any ADX Product patch.

Which files / profile options get changed when I run AutoConfig?

Run the adchkcfg utility to get an html report that lists all the files and profile options that get changed when you run AutoConfig.

adchkcfg.sh scripts reside in $AD_HOME/bin and output generate in $APPL_TOP/admin/$CONTECT_NAME/out/

How can I roll back an AutoConfig session?

All backup configuration files from each AutoConfig session are stored in:
On the application tier: /admin//out//

On the database tier: /appsutil/out///

Inside these directories, there will be several files which autoconfig has taken a backup off before making changes. Also there will be a script restore.sh.

You can run restore.sh (Unix) or restore.cmd (Windows) to roll back an AutoConfig session.

How to run AutoConfig in TEST mode?

We can run autoconfig in test mode. This will reduce the risk and we can understand the impact better. We use adchkcfg.sh scripts it willl create a report which will list all files & profile options that is going to change when you run AutoConfig.

Below is the sample run for the same.

$ adchkcfg.sh
Enter the full path to the Applications Context file:
/PRODAPPL/ADMIN/PROD.xml

......

......

After execution of autoconfig is run on test mode, it will generate a zip file (ADXcfgcheck.zip). You can copy the zip file to $OA_HTML location and unzip the same. You can then view the report using following URL

http://hostname:port/OA_HTML/cfgcheck.html

No comments:

Post a Comment