In Oracle Applications 11i & R12 (12i) all the configuration parameters are captured in two context files:
Application context file called the <CONTEXT_NAME>.xml contains the configuration information for the application tier & is located in $APPl_TOP/admin for each node of application tier.
Database context file called the <CONTEXT_NAME>.xml contains the configuration information for the database tier & is located in $ORACLE_HOME/appsutil/.
Details stored in the context file contains host names,domain name , directory structure, port numbers used ……
The AutoConfig feature of Oracle application manager(OAM) is used to update & manage context files.
Updating Context file
Suppose we want to update the active port from <original port no.> to 80 , for this we will edit the application context file as follows:
Step 1 :Start all services
$ $COMMON_TOP/admin/scripts/<context_name>/adstrtal.sh APPS/<apps password>
Step 2 :log on to OAM & click site map.
Step 3:Click AutoConfig from the list of System Configuration features in the Administration tab.
Step 4 : Click the Edit Parameter button for the application tier context file to access the Context File Parameters page & then click the system tab.
Step 5 : Click the Focus icon (blue triangle) for oa_web_server. This expands oa_web_server and shows the web server related parameters.
Step 6:Update the Web Port (s_active_webport) parameter from < Original port number> to 80.
Step 7 : Save it & answer the tab.Then logout of OAM
AutoConfig Script
The autoconfig script uses information from the context file to generate all applications configuration files & updates database profiles. It is located in
Application tier: $COMMON_TOP/admin/scripts/CONTEXT_NAME/adautoconfig.sh
Database tier: $ORACLE_HOME/appsutil/scripts/CONTEXT_NAME/adautoconfig.sh
Now we run the autoconfig script to reconfigure the oracle application system with the updated Applications context.
Step 1 : Stop all services
$ $COMMON_TOP/admin/scripts/<context_name>/adstpall.sh APPS/<apps password>
Step 2:Run the autoconfig script, $adautocfg.sh & respond to the prompts.
Step 3:Check log files for any errors.log file for autoconfig is adconfig.log & is located in
<APPL_TOP>/admin/<context_name>/log/MMDDhhmm/
Step 4: Restart all services :
$ $COMMON_TOP/admin/scripts/<context_name>/adstrtal.sh APPS/<apps password>
Rolling back an autoconfig session
Each execution of AutoConfig creates a roll back script in case you want to revert back to the previous configuration settings. For this we perform the following steps:
Step 1 :Shut down all services:
$ cd $COMMON_TOP/admin/scripts/<context_name>
$ adstpall.sh APPS/<APPS password>
Step 2:Restore AutoConfig session.
$ cd $APPL_TOP>/admin/<context_name>/out/MMDDhhmm
$ restore.sh
Step 3 : Restart all services:
$ $COMMON_TOP/admin/scripts/<context_name>/adstrtal.sh APPS/<APPS password>
Restoring the AutoConfig updated files and restarting the services allows you to log on to OAM.
Restoring the previous configuration
Now we run OAM AutoConfig to restore the Applications Context.
Step 1 :Log on to the Oracle Application Manager (OAM) & click site map.You will be able to log on but some services will be down.
Step 2: Click AutoConfig from the list of System Configuration features in the Administration tab.
Step 3 : Click the Show History button for the application tier context file to access the Context File History page.
Step 4 :Click the Show Differences from Current Configuration button to see the recently updated parameters & Select Restore Previous Value for the Web Port and Discoverer Port parameters.
Step 5 :Save & respond the tabs. Log out of OAM.
Step 6 :Shut down all services:
$ cd $COMMON_TOP/admin/scripts/<context_name>
$ adstpall.sh APPS/<APPS password>
Step 7 :Run the AutoConfig script, adautocfg.sh & Respond to the prompts.
Step 8 : View the log file and check for any errors.
Step 9 : Restart all services:
$ $COMMON_TOP/admin/scripts/<context_name>/adstrtal.sh APPS/<APPS password>
Step 10 :Log on to the Oracle Application Manager (OAM)
If the status of some services appears to be down, click the Refresh icon to update the
status.
Related : Metalink Notes
218089.1 Autoconfig FAQ
165195.1 Using AutoConfig to Manage System Configurations with Oracle Applications 11i
387859.1 Using AutoConfig to Manage System Configurations in Oracle Applications Release 12
270519.1 Customizing an AutoConfig Environment
364927.1 How To Run Autoconfig On Database Tier (DB-Tier)
341322.1 How to change the hostname of an Applications Tier using AutoConfig
338003.1 How to change the hostname and/or port of the Database Tier using AutoConfig
315674.1 How To Verify if Autoconfig is Enabled on 11.5.x
391406.1 How to get a clean Autoconfig Environment
Other Related Posts
Autoconfig Basics
Unwrapping XML/Context File
Autoconfig Basics
Popularity: 17% [?]







Good hands-on exercises (installation, patching, cloning), very experienced trainer worth for Money 
16 users commented in " Autoconfig in Oracle Apps 11i / R12 / 12i "
Follow-up comment rss or Leave a Trackbackhi.,atul
the main issue is it is SLOW during month end.
os informatiom
——————-
os and version-IBM-AIX 5.3
SYSTEM BIT-64 BIT
RAM SIZE 8GB
DATABASE INFORMATION
—————————
database version-9.2.0.7
bit-64 bit
archive log- enabled
users-200
size of database 128 allocated,103gb actual
oracle application server version & release-oracle E business 11i(11.5.10)
type of installation-multi node(dual node)
total no users -around 200
concurrent users-around 200
hi neha mittal
thank u for providing this information.
Hi Atul,
This is a good documentation.
Thanks.
Hi Neha,
I am facing this issue everytime i run autoconfig. All the configuration files with customization are overwritten everytime i run AC so i need to update it manually all the time. How do i get rid of it?
Thanks
Hi Neha,
This is a good doc.
Hi how u doing?
Well i have installed oracle apps 11i on my machine
but when i try to login through E-Business Home Page i get page cannot be found also my host entries are as follows
127.0.0.1 localhost mydomain mydomain.com
192.168.1.2 mydomain mydomain.com
@ Ankur, I am assuming your server IP is 192.168.1.2 and machine name is mydomain.com
if yes then change entry in /etc/hosts to
127.0.0.1 localhost.localdomain
192.168.1.2 mydomain.com mydomain
and bounce services (bounce middle tier and db tier and try accessing again)
Hi Atul
Thanks for ur kind reply
well i have done some changes
my machine name is hcl.mydomain.com
and now my host entries reads like this
127.0.0.1 localhost.localdomain
192.168.1.2 hcl.mydomain.com hcl
and i have added primary dns suffix as mydomain.com
also if u can tell me how to use and bounce services (bounce middle tier and db tier)
since m not a DBA i am installing oracle apps11i for learning purpose so i would appreciate if you could guide me through the steps in details plz……waiting for ur reply
@Ankur,
Check this
http://onlineappsdba.com/index.php/2006/08/02/startup-shutdown-apps-services/
If you are new and unable to start services in 11i raise it in forum at http://teachMeOracle.com/forum
Hi Atul
this is what my error log has to say
[Sun Jul 05 14:16:07 2009] [error] OPM: EW: Fail to start process with mod=JServ and grp=XmlSvcsGrp, it’s possible that your configuration file is not correct.
[Sat Jul 04 17:46:36 2009] [error] [client 192.168.1.2] File does not exist: /oa_servlets/AppsLogin
hi Atul
Also like to add i have done this installation on windows xp sp2 by checking the log its seems File does not exist: /oa_servlets/AppsLogin so its because of this i guess
hi Atul
Sorry to bother u
but m getting no where
can u please tell me the steps to and bounce services (bounce middle tier and db tier
m having windows xp
wher do i run the scripts and how do i run in which directory……….plz
Hi,
I am working on 11i apps on linux os level.
now oracle process is moving slowly.
Some user told me to check the Ram space & speed
now i want to check Ram level from backend
so how can i check it.
please give me reply as quick as possible.
Thanks
Jay.
@ Jay
Use “top” command to find free and used memory
Iam new to apps. I have 11i(11.5.9) running on RHEL4 on my home desktop. Unfortunately I have lost scripts in dbTier (lsnr, DB, adautocfg.sh) while i was messing up with clone software. Is there any way that i can retrieve (no backups) these scripts back in dbTier.
Iam trying to use adadmin utilities and nothing seems to work as all gets hang on giving password and same with opening webpage for e-business suite. I dont know where iam sailing in the ocean.
please help me out i dont want to reinstall apps.
Hi Neha,
Service manager in production system shows the node of test server.Can you please tell me how to edit the same in Oracle Apps R12.
Regards,
Harsha
Leave A Reply