Autoconfig in R12.2
🔧 AutoConfig Overview in Oracle E-Business Suite
AutoConfig is a configuration tool that automates the setup of both Application Tier and Database Tier in Oracle E-Business Suite.
The required configuration information is stored in an XML repository called the Applications Context File. There is one context file for each tier — Application and Database.
🧩 AutoConfig Components
- Context File
- Driver Files
- Template Files
📘 Context File
It contains configuration values and environment details for each server.
Format: SID_HOSTNAME.xml
Location:
- Application Tier:
echo $CONTEXT_FILE - Database Tier:
$ORACLE_HOME/appsutil/<contextfile.xml>
📝 Template Files
Template files contain placeholder tags used to create configuration files. When AutoConfig runs, these tags are replaced with actual values from the context file.
Locations:
- Application Tier:
$PRODUCT_TOP/admin/template - Database Tier:
$ORACLE_HOME/appsutil/template
🚀 Driver Files
Each product top has its own driver file. It defines mappings between template files and target configuration files.
Location:
/apps/oracle/TEST/fs1/EBSapps/appl/ad/12.0.0/admin/driver//apps/oracle/TEST/fs1/EBSapps/appl/fnd/12.0.0/admin/driver/
⚙️ AutoConfig Template and Driver Overview
In template files, environment variables that need replacement are defined. The driver files list which configuration files to generate. When AutoConfig runs, it reads these definitions and creates configuration files automatically.
📂 AutoConfig Scripts and Log Locations
| Script | Purpose | Application Tier | Database Tier |
|---|---|---|---|
| adautocfg.sh | Wrapper to call adconfig.sh and pass context files. | $INST_TOP/admin/scripts | $ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME |
| adconfig.sh | Wrapper that calls adconfig.pl (invoked by adautocfg.sh). | $AD_TOP/bin | $ORACLE_HOME/appsutil/bin |
| Logs | Created by AutoConfig to track configuration. | $INST_TOP/admin/log/MMDDhhmm | $ORACLE_HOME/appsutil/log/$CONTEXT_NAME/MMDDhhmm |
🧠 How to Enable AutoConfig on the Database Tier
AutoConfig must be enabled once before execution on the DB Tier.
🔹 Steps to Enable
- Create AppsUtil Zip File on Apps Tier
perl $AD_TOP/bin/admkappsutil.pl - Copy appsutil.zip to Database Tier and unzip under
$ORACLE_HOME - Install JRE on Database Tier
- Generate Context File
perl $ORACLE_HOME/appsutil/bin/adbldxml.pl - Run AutoConfig
$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh
✅ Summary Table
| Step | Action | Tier |
|---|---|---|
| 1 | Create appsutil.zip using admkappsutil.pl | Application Tier |
| 2 | Copy appsutil.zip to DB Tier | Database Tier |
| 3 | Install JRE | Database Tier |
| 4 | Generate Context File | Database Tier |
| 5 | Run adautocfg.sh | Database Tier |
❓ AutoConfig FAQs
What is AutoConfig?
AutoConfig is an Oracle E-Business Suite utility that automates configuration using XML-based context files for both tiers.
What are the basic components of AutoConfig?
| Component | Location | Description |
|---|---|---|
| Applications Context | App Tier: <INST_TOP>/appl/adminDB Tier: <RDBMS ORACLE_HOME>/appsutil | XML repository (<CONTEXT_NAME>.xml) with instance-specific info. |
| Template Files | App Tier: <PROD_TOP>/admin/templateDB Tier: <RDBMS ORACLE_HOME>/appsutil/template | Contain placeholders replaced with actual values from context. |
| Driver Files | App Tier: <PROD_TOP>/admin/driverDB Tier: <RDBMS ORACLE_HOME>/appsutil/template | Lists templates, destinations, and commands for AutoConfig execution. |
When should I run AutoConfig?
- After updating a context file
- When Oracle documentation instructs (patch, upgrade, clone, migration)
- After applying ADX product patches
Where are the AutoConfig log files?
- Application Tier:
<INST_TOP>/admin/log/<MMDDhhmm>/adconfig.log - Database Tier:
<RDBMS ORACLE_HOME>/appsutil/log/<CONTEXT_NAME>/<MMDDhhmm>/adconfig.log
How to Roll Back AutoConfig?
Backup configuration files from each AutoConfig run are stored under /out/<MMDDhhmm> directory.
Use restore.sh (UNIX) or restore.cmd (Windows) to roll back.
Comments
Post a Comment