Autoconfig Usage in Oracle Apps 11i and R12
In Oracle Applications 11i & R12 (12i) all the configuration parameters are captured in two context files:
Application context file called the .xml contains the configuration information for the application tier & is located in $APPl_TOP/adminfor each node of application tier.
Database context file called the .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
Updating Context file
Suppose we want to update the active port from to 80 , for this we will edit the application context file as follows:
Step 1 :Start all services
$ $COMMON_TOP/admin/scripts//adstrtal.sh APPS/
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
$ $COMMON_TOP/admin/scripts/
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//adstpall.sh APPS/
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
/admin//log/MMDDhhmm/
Step 4: Restart all services :
$ $COMMON_TOP/admin/scripts//adstrtal.sh APPS/
Rolling back an autoconfig session
$ $COMMON_TOP/admin/scripts/
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
Step 4: Restart all services :
$ $COMMON_TOP/admin/scripts/
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/
$ adstpall.sh APPS/
Step 2:Restore AutoConfig session.
$ cd $APPL_TOP>/admin//out/MMDDhhmm
$ restore.sh
Step 3 : Restart all services:
$ $COMMON_TOP/admin/scripts//adstrtal.sh APPS/
$ cd $COMMON_TOP/admin/scripts/
$ adstpall.sh APPS/
Step 2:Restore AutoConfig session.
$ cd $APPL_TOP>/admin/
$ restore.sh
Step 3 : Restart all services:
$ $COMMON_TOP/admin/scripts/
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/
$ adstpall.sh APPS/
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//adstrtal.sh APPS/
Step 10 :Log on to the Oracle Application Manager (OAM)
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/
$ adstpall.sh APPS/
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/
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
AutoConfig - Simplifies configuration management in an Oracle E-Business Suite Release.xml, located in $APPL_TOP/admin acts as a central repository for the instance-specific information that AutoConfig needs to configure an environment, including the name and location of the database, and port numbers for the application tier servers.
Autoconfig Centralizes and simplifies E-Business Suite configuration management.
AutoConfig can be used to instantiate files or scripts, and then execute them for installation and configuration.
Instantiation of a configuration file to be used at runtime
Instantiation of an SQL script that will set profile option values that can be either site or instance-specific
Instantiation of a shell script or Windows command file that will run an SQL script via SQL*Plus, and then execute the shell script
Instantiation of scripts to startup and shutdown services
Autoconfig Template and Driver Files
AutoConfig uses template files to determine the basic settings that are needed. There is one template file for each configuration file.The template files are located in the relevant $PROD_TOP/admin/template directories. For example $AD_TOP/admin/template.
When AutoConfig runs, it cycles through the various/admin/driver directories looking for AutoConfig template driver files.
To Make a Modifiaction in the Context File :
- Running the Context Editor to make changes to the contents of the Applications context file, as described on the following pages
- Using Oracle Applications Manager 2.1.1 or higher, which includes a sophisticated, web-based context editor that can be used to edit the Applications (not database) context
- Can change the value in the Context file manually.
Running Autoconfig
Before Running Autoconfig on Production
1. Advisable to Take a backup of the listener.ora and tnsnames.ora
2. Run adchkcfg.sh and take a backup of files going to be affected by Autoconfig.
Running adchkcfg.sh (cont.)
This script generates a report that lists the differences that would arise on account of runing autoconfig. these differences should first be reviewed.
Usage
adchkcfg.sh contextfile={contextfilepath}
3. Running Autconfig requires downtime.
When Running autoconfig, Get the Applications Services Down , Database Services should be up and Running.
On 11i : $COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh
On R12 : $ADMIN_SCRIPTS_HOME/adstpall.sh or $INST_TOP/admin/scripts/adstpall.sh
To Run Autoconfig on the Applications Tier ,
On 11i , Use : $COMMON_TOP/admin/scripts/$CONTEXT_NAME/adautocfg.sh
On R12 , Use : $ADMIN_SCRIPTS_HOME/adautocfg.sh or $INST_TOP/admin/scripts/adautocfg.sh
and check the log file for Success / Errors.
To Run Autoconfig on the Database Tier ,
Use : $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh
or Use : $ORACLE_HOME/appsutil/bin/adconfig.sh contextfile=appspass=
Reviewing Logs
AutoConfig log files are stored under:
$APPL_TOP/admin//log/MMDDhhmm/
Using Rollback Scripts
Each run of AutoConfig automatically creates a rollback script in case there is a need to revert to the previous configuration settings. This script and backups of all configuration files from each execution
of AutoConfig are stored in: $APPL_TOP/admin//out/
No comments:
Post a Comment