Conventions
Attention: Windows users - this document typically uses UNIX syntax when specifying directories. Substitute the appropriate Windows syntax where applicable.
AutoConfig is a tool that supports automated configuration of an Oracle E-Business Suite Release 12 instance. All the information required for configuring an Applications instance is collected into two local repositories, called the Applications context file and the database context file. When AutoConfig runs on the application tier, it uses information from the Applications context file to generate all configuration files and update database profiles. When AutoConfig runs on the database tier, it uses information from the database context file to generate all configuration files used on the database tier.
AutoConfig provides several major benefits, including:
AutoConfig consists of several components:
The Applications Release 12 application tier is AutoConfig-enabled, and has an Applications context file stored in the INST_TOP as <INST_TOP>/appl/admin/<CONTEXT_NAME>.xml. The Applications Release 12 database tier created via Rapid Install is also AutoConfig-enabled, and has a database context file stored in the RDBMS ORACLE_HOME as <RDBMS ORACLE_HOME>/appsutil/<CONTEXT_NAME>.xml. When a change is made to any of the context files or any of the template files, the AutoConfig utility updates the Applications Release 12 configuration.
AutoConfig can also be used to start and stop all Applications system services that it manages.
Below is a summary of the AutoConfig tools.
Besides the above tools, there are start and stop tools that are used to manage the run-time processes of EBS Services. These tools are listed in Section 7.
As mentioned in Section 1, AutoConfig is used to automate system configuration. This section describes how the AutoConfig tools can be used for this purpose. These tools are meant to be used in the following order:
Before running AutoConfig, the Check Config utility may be run to review the changes that would occur in the file system as well as the database in the next AutoConfig run. This step is optional.
Execute the following command to run the Check Config utility.
sh <RDBMS_ORACLE_HOME>/appsutil/bin/adchkcfg.sh contextfile=<CONTEXT_FILE>
<RDBMS_ORACLE_HOME>\appsutil\bin\adchkcfg.cmd contextfile=<CONTEXT_FILE>
On the Applications tier:
sh <AD_TOP>/bin/adchkcfg.sh contextfile=<CONTEXT_FILE>
<AD_TOP>\bin\adchkcfg.cmd contextfile=<CONTEXT_FILE>
Please refer to Section 5.3 for more details on this tool.
Running AutoConfig on the database tier is required in the following scenarios:
fnd_conc_clone.setup_clean
). Subsequently, AutoConfig must be run on the application tier nodes.Execute the following command to run AutoConfig on the database tier.
sh <RDBMS_ORACLE_HOME>/appsutil/scripts/<CONTEXT_NAME>/adautocfg.sh
<RDBMS_ORACLE_HOME>\appsutil\scripts\<CONTEXT_NAME>\adautocfg.cmd
Attention:
Run AutoConfig on all application tier nodes.
Execute the following command to run AutoConfig.
sh <INST_TOP>/admin/scripts/adautocfg.sh
<INST_TOP>\admin\scripts\adautocfg.cmd
Attention:
AutoConfig logfiles are stored under:
Tier
Application
Database
Directory
$INST_TOP/admin/log/MMDDYYYY/adconfig.log
<RDBMS ORACLE_HOME>/appsutil/log/<CONTEXT_NAME>/<MMDDhhmm>
One log file is created per AutoConfig session. It will contain details of every action that AutoConfig performed during the run.
Each AutoConfig run of creates a rollback script you can use to revert to the previous configuration settings if necessary. The script and all backup configuration files from each AutoConfig session are stored in:
Tier
Application
Database
Directory
<INST_TOP>/admin/out/<MMDDhhmm>
<RDBMS ORACLE_HOME>/appsutil/out/<CONTEXT_NAME>/<MMDDhhmm>
where:<MMDDhhmm> = (month, day, hour, minute of AutoConfig run)
To roll back an AutoConfig session, execute the following commands:
$APPL_TOP/admin/$CONTEXT_NAME/out/<MMDDYYYY>/restore.sh
restore.cmd
For patching AutoConfig on the E-Business Suite R12 instance, AutoConfig needs to be enabled on both the applications tier and the database tier.
In order to get the latest AutoConfig updates on both the applications tier and the database tier, perform the following steps in the order listed:
<INST_TOP>/admin/out
perl <AD_TOP>/bin/admkappsutil.pl
cd <RDBMS ORACLE_HOME>
unzip -o appsutil.zip
In R12, AutoConfig is enabled by default on the applications tier. But it might not be enabled on the database tier in the following scenarios:
In order to enable AutoConfig on the database tier, perform the following steps in the order listed:
perl <RDBMS_ORACLE_HOME>/appsutil/bin/adbldxml.pl
<RDBMS_ORACLE_HOME>/appsutil/bin/adconfig.sh contextfile=<context_file>
<RDBMS_ORACLE_HOME>\appsutil\bin\adconfig.cmd contextfile=<context_file>
AutoConfig is a tool that simplifies and standardizes configuration management tasks in an Oracle E-Business Suite environment. The configuration generated by AutoConfig may not always meet your specific requirements, and it may be necessary to customize AutoConfig for your environment.
Examples where you might want to customize AutoConfig include:
Historically, Oracle did not document procedures on how to implement customizations. If you tried to customize your AutoConfig-generated files by manually editing them, your changes were lost every time AutoConfig ran. To avoid this, Oracle Support may have instructed you to add your customizations between "Begin/End customizations" blocks in the configuration files. This limited and inflexible method has now been superseded by a fully supported mechanism to extend your AutoConfig-maintained environment with maximum flexibility, and preserving your extensions every time AutoConfig is run.
Before customizing AutoConfig, certain prerequisites must be met.
Review the logfile generated by the adcustomizer script. Ensure that all your customizations were successfully migrated to the custom template file(s) by examining the generated custom template file(s).
This section addresses the different types of customizations and how to implement them.
Note: All files managed by AutoConfig have the following header:
################################################################
#
# This file is automatically generated by AutoConfig. It will be read and
# overwritten. If you were instructed to edit this file, or if you are not
# able to use the settings created by AutoConfig, refer to Metalink
# document 387859.1 for assistance.
#
################################################################
After identifying your customization need, perform the steps associated with it. Oracle supports the following types of customizations:
����
Adding a new context variable to the context file
����
Customizing an AutoConfig template file delivered by Oracle
If you want to customize an existing AutoConfig template file, perform the following steps in the order listed:
ad admin/template adconfig.txt INSTE8 <s_at>/admin adconfig.txt 600 LOCK
mkdir $FND_TOP/admin/template/custom
mkdir %FND_TOP%\admin\template\custom
copy <AutoConfig template file> <custom template file>
<INST_TOP>/admin/out/<MMDDhhmm>
<RDBMS ORACLE_HOME>/appsutil/out/<CONTEXT_NAME>/<MMDDhhmm>
This section discusses advanced features when using AutoConfig Customizations.
my admin/template myTemplate.txt INSTE8 <s_pt> myConfiguration.txt 660
<AD_TOP>/bin/adconfig.sh -nocustom contextfile=<CONTEXT_FILE>
<AD_TOP>\bin\adconfig.cmd -nocustom contextfile=<CONTEXT_FILE>
mkdir <c_mytop>/admin/template
mkdir <c_mytop>\admin\template
mkdir <c_mytop>/admin/driver
mkdir <c_mytop>\admin\driver
This section gives an overview of some of the useful new advanced AutoConfig features and utilities.
This feature was introduced in TXK 12.0.4 Consolidated Patch. It enables AutoConfig to be executed simultaneously across multiple nodes of an R12 E-Business Suite instance, thus reducing the maintenance downtime.
AutoConfig can be run in 'parallel mode' by issuing the following command.
perl <AD_TOP>/bin/adconfig.pl contextfile=<CONTEXT_FILE> [product=<product_top>] –parallel
perl <ORACLE_HOME>/appsutil/bin/adconfig.pl contextfile=<CONTEXT_FILE> –parallel
Note: When running AutoConfig simultaneously on multiple nodes, the '-parallel' option must be specified while starting AutoConfig on every node. Otherwise the execution of AutoConfig processes on individual nodes will not be synchronized, which might result in inconsistent filesystem or database updates.
The AutoConfig Performance Profiler feature has been introduced in TXK 12.0.4 Consolidated Patch. This feature can be used to profile an AutoConfig run and generate a consolidated report in HTML format. The report displays a summarized view listing all the product tops along with the total instantiation/execution time of the templates within them. The profile report comprises the following sections:
The profile information for individual templates can be seen by drilling down into the product tops listed in the summary section.
AutoConfig can be run in the 'profile' mode by issuing the following command:
perl <AD_TOP>/bin/adconfig.pl contextfile=<CONTEXT_FILE> [product=<product_top>] –profile
perl <ORACLE_HOME>/appsutil/bin/adconfig.pl contextfile=<CONTEXT_FILE> [product=<product_top>] –profile
The Check Config utility (adchkcfg) has been available since the base release of Oracle E-Business Suite Release 12. It is used to review the configuration changes that would take effect on an E-Business Suite instance during the next AutoConfig run. It identifies the potential changes to both the File system as well as the Database. It can be run on both the applications tier and the database tier.
The utility is located in the following location:
Tier
Application
Database
Location
<AD_TOP>/bin
<ORACLE_HOME>/appsutil/bin
The Check Config utility may be run by executing the following command:
adchkcfg.sh contextfile=<CONTEXT_FILE>
adchkcfg.cmd contextfile=<CONTEXT_FILE>
This script generates both HTML and text reports. The reports provide information about all file changes, profile option changes and other important database updates that will be done during the next normal execution of AutoConfig. The report consists of two tabs:
Database Changes (See a snapshot)
This report is divided into the following sections:
The script also creates a zip file report "ADXcfgcheck.zip" that contains all the files and reports mentioned above. The ADXcfgcheck.zip can be copied to a local desktop PC and the HTML report can be viewed there without breaking the hyper-links in the report.
The TXK Context Variable Information utility was introduced in TXK 12.0.4 Consolidated Patch.
This command-line utility can be used to find out detailed information about context variables and the templates in which they are used. The utility accepts all or part of a context variable name and generates an HTML or text report containing information about the matched context variables - the variable descriptions, default and current values. The variable description contains recommended settings, range of allowed values and links to documents for detailed usage information. Additionally, this utility lists the configuration templates where the respective context variables are used. See a snapshot of the generated report.
The Context Variable Information utility can be executed as follows:
This section guides you through the steps that need to be performed when your Oracle Release 12 instance is running on Oracle Real Application Clusters (Oracle RAC).
perl <FND_TOP>/bin/txkrun.pl -script=GenCtxInfRep -keyword="<keyword>"
perl <ORACLE_HOME>/appsutil/bin/txkrun.pl -script=GenCtxInfRep -keyword="<keyword>"
Note: Refer to Oracle MetaLink Note 388577.1 for converting a Release 12 single instance to Oracle RAC, implementing AutoConfig with Oracle RAC, and implementing load balancing of database connections on Oracle RAC for Release 12 application tiers.
Oracle E-Business Suite Release 12 delivers the infrastructure to generate a complete tnsnames.ora file required for Oracle RAC. This includes
The tnsnames.ora file is dynamically generated using the Net Services Topology Data Model. The Net Services Topology Data Model stores the entire topological information about a single Oracle E-Business Suite environment.
Complete the steps in this section (in the order listed) to support AutoConfig on Oracle RAC:
Your system is now AutoConfig-enabled with Oracle RAC. Refer to Section 2 for information on managing system configuration.
This section describes how to manage the Oracle E-Business Suite services through AutoConfig.
As mentioned in Section 2, Applications services must be shut down before running AutoConfig on the applications tier. After completion of the AutoConfig run, these services may be restarted. The scripts adstrtal.sh/cmd and adstpall.sh/cmd can be used for this purpose.
In Applications Release 12, the Applications services have been categorized into service groups, according to the type of service provided. A particular service will be started or stopped via the adstrtal or adstpall scripts only if both the service and its service group are enabled.
Depending on the requirement of a particular Applications instance, it is possible to modify the set of Applications services and service groups that will be started and stopped via the adstrtal/adstpall scripts. This can be done by enabling the required services and service groups, and disabling those that are not needed.
For example, perform the following steps to manage the service 'Oracle Metrics Server' (part of the Service Group 'Other Services') via AutoConfig.
Note: For more details on the Service Groups and Services in E-Business Suite Release 12, please refer to My Oracle Support Knowledge Document 406558.1.
Note: To manage Oracle Configuration Manager (OCM) processes running on an Oracle E-Business Suite Release 12 instance, refer to the OCM documentation. OCM processes are not managed by standard service management scripts such as adstrtal.sh and adstpall.sh.
This section lists any known issues with the configuration management of your Oracle E-Business Suite Release 12 environment.
AutoConfig fails to execute on the Windows Itanium platform
Apply the one-off patch, 6501658, which delivers the fix for this issue. Customers need to be on at least the 12.0.2 patchset in order to apply this one-off patch.
sh $INST_TOP/admin/scripts/adalnctl.sh start <TWO_TASK>
%INST_TOP%\admin\scripts\adalnctl.cmd start <LOCAL>