Frequently Asked Questions About Using AutoConfig With Oracle Applications Release
Frequently Asked Questions About Using AutoConfig With Oracle Applications Release
387859.1.
Questions
1. What is AutoConfig?
2. What is the difference between the application tier and the database tier?
3. How can I identify the application tier and the database tier in a multi-node
system?
4. How do I configure AutoConfig for a multi-node system?
5. What user do I log in as to use AutoConfig in a typical multi-node system?
6. How do I determine if AutoConfig is enabled?
7. Is AutoConfig compatible with Oracle Applications 11.5.x?
8. What does the term "Context_name" mean?
9. What are the basic components of AutoConfig ?
10. What are the different AutoConfig scripts and what do they do?
AutoConfig pre-requisites
12. How will the adbldxml utility name the Applications Context file it generates?
13. How do I make changes to the Applications Context file?
14. I want to execute the adbldxml utility on a fresh RDBMS Oracle Home. How
can I build the Context file, when the database environment file is not
present?
15. I was instructed to change the value of the context variables s_adperlprg and
s_perl5lib. How can I achieve that?
Running AutoConfig
Customizations
Patching AutoConfig
Net Services
Database connectivity
42. Should the database server remain available during the AutoConfig run?
43. What is the use of the context variable s_apps_jdbc_connect_descriptor?
44. When do I need to reset (empty) the context variable
s_apps_jdbc_connect_descriptor?
45. What steps do I need to follow to maintain my database connectivity when I
migrate my database from one host/platform to another?
46. I migrated my database tier to a new host/platform, but the application tier still
tries to connect to the old database. How can I fix this situation, so that the
application tier connects to the new database?
RAC
47. My 11i instance is configured with RAC. Now I want to migrate to AutoConfig.
How do I achieve that?
48. My 11i instance is configured as non-RAC. Now I want to migrate to RAC
using AutoConfig. What steps should I follow?
49. I applied all the required RAC patches, but my TWO_TASK variables still
point to the instance aliases. How can I point them to load balanced aliases?
Windows specifics
Troubleshooting
Additional References
1. What is AutoConfig?
Answer:
AutoConfig is a configuration tool that automates the configuration of an
Oracle Applications system. The information required for configuring an
Applications system is collected into a repository, called the Applications
Context; there is one Applications Context for each application tier, and one
for the database tier. When AutoConfig runs, it uses information from the
Applications Context file to generate all configuration files and update
database profiles.
Refer to Metalink Note 165195.1 for details on installing, using and updating
AutoConfig. The Oracle Applications Maintenance Procedures and the
Oracle Applications Maintenance Utilities provide further information on how
to use AutoConfig in the context of maintaining your system.
[top]
2. What is the difference between the application tier and the database
tier?
Answer:
Before we can answer that, let's define a few terms in the context of the
Release 11i architecture:
o The application tier (also called the middle tier) consists of a number of
servers, such as the concurrent processing server, web server, forms
server, and administration server, that process the transactions of the
Release 11i system, as well as provide communication between the
desktop tier and the database tier. (Such servers are also referred to as
application tier servers. Likewise, the nodes on which such servers run are
also referred to as application tier server nodes.)
o The database tier consists of the database server, which stores all the data
of the Release 11i system.
The primary location of the files used by the application tier servers is the
APPL_TOP, whereas the primary location of the files used by the database
server is the Oracle8i or Oracle9i ORACLE_HOME.
For more information about the Release 11i architecture, refer to Oracle
Applications Concepts, Release 11i.
[top]
3. How can I identify the application tier and the database tier in a multi-
node system?
Answer:
A node can contain one or more servers, and can therefore belong to one or
more tiers.
In a single node system, that node belongs to both the application tier and the
database tier, since all servers are contained on that single node.
Let's analyze a common configuration where the database server and the
concurrent processing server exist on one node (Node 1), and the other
servers exist on a second node (Node 2). Since Node 1 contains both an
application tier server (the concurrent processing server) and the database
server, Node 1 belongs to both the database tier and the application tier. But
since Node 2 contains only application tier servers, Node 2 belongs only to
the application tier.
[top]
Answer:
The AutoConfig patch is applied using AutoPatch. Therefore, it must be
applied to each application tier server node, which means to each node that
contains an APPL_TOP.
If the database server node contains only the database server and no other
servers, then you would not apply an AutoConfig patch on that node.
Once all the application tier servers have been updated by the AutoConfig
patch, there is a separate process for updating the database server, which is
documented in Metalink Note 165195.1. This process consists of running the
admkappsutil utility on one (only one) application tier, copying the generated
appsutil.zip file to the database tier and unzipping the appsutil.zip file into the
RDBMS ORACLE HOME.
Example 1:
The system has two nodes.
Node 1 = administration server, concurrent processing server, database
server
Node 2 = forms server, web server
Since both nodes are application tier server nodes, the AutoConfig patches
need to be applied to both nodes. Once the patches are applied, you have to
update the database server Node1 by running the admkappsutil utility from
the APPL_TOP on Node1, copying the generated appsutil.zip to your RDBMS
ORACLE_HOME on Node1 and unzipping the appsutil.zip file into the
RDBMS ORACLE_HOME.
Example 2:
The system has two nodes.
Node 1 = database server
Node 2 = administration server, concurrent processing server, forms server,
web server
Since Node 2 is the only application tier server node, the AutoConfig patch
needs only be applied to Node 2. Once the patch is applied, you have to
update the database server Node1 by running the admkappsutil utility from
the APPL_TOP on Node2, copying the generated appsutil.zip to your RDBMS
ORACLE_HOME on Node1 and unzipping the appsutil.zip file into the
RDBMS ORACLE_HOME.
Example 3:
The system has three nodes.
Node 1 = database server
Node 2 = administration server, concurrent processing server
Node 3 = forms server, web server
Since Node 2 and Node 3 are application tier server nodes, the AutoConfig
patch needs to be applied to Node 2 and Node3. Once the patches are
applied, you have to update the database server Node1 by running the
admkappsutil utility either from the APPL_TOP on Node1 or Node2 (it does
not matter on which Node you run the admkappsutil utility), copying the
generated appsutil.zip to your RDBMS ORACLE_HOME on Node1 and
unzipping the appsutil.zip file into the RDBMS ORACLE_HOME.
Reference:
[top]
Answer:
For nodes running Windows, there is only one user that owns both the
application tier servers and the database server, so you would log in as that
user.
For nodes running UNIX or Linux, if you want to configure the application tier
servers, log in as the user that owns the application tier servers (sometimes
referred to as the applmgr user). If you want to configure the database server,
log in as the user that owns the database server (sometimes referred to as
the oracle user).
[top]
6. How do I determine if AutoConfig is enabled?
Answer:
Check for the script adcfginfo.sh (adcfginfo.cmd on Windows) under
<AD_TOP>/bin. If it exists, use it to check whether AutoConfig is enabled.
For the APPL_TOP:
adcfginfo.sh contextfile=<CONTEXT>
For products:
Note: If you manually changed any file containing this file header,
it is no longer considered as officially AutoConfig enabled!
[top]
Answer:
Yes, it is compatible with all 11i releases. You can use AutoConfig to configure
and maintain any Oracle Applications 11i environment.
[top]
Answer:
The "Context_name" is the logical name for your Context. The default value
for Context_name is <SID>_<hostname>. In earlier versions of AutoConfig
the default was set to <SID>.
[top]
Answer:
[top]
10. What are the different AutoConfig scripts and what do they do?
Answer:
The scripts are listed in the following table.
Note: .sh scripts are for UNIX users and .cmd scripts are for
Windows users.
Scripts Location Description
adautocfg.sh On the application tier: A wrapper script that calls
<COMMON_TOP>/admin/s adconfig.sh/ adconfig.cmd.
adautocfg.cm cripts/ Instantiates template files with
d <Context_name> values specific to the instance
(taken from the Applications
On the database tier: Context). Updates configuration
<RDBMS files and profile options.
ORACLE_HOME>/appsutil/
scripts/ <Context_name>
adconfig.sh On the application tier: A wrapper script that calls
<AD_TOP>/bin adconfig.pl. In earlier versions of
adconfig.cmd AutoConfig
On the database tier: adconfig.sh/adconfig.cmd used
<RDBMS to call the Java API to start
ORACLE_HOME>/appsutil/ AutoConfig.
bin/
adconfig.pl On the application tier: A wrapper script that calls the
<AD_TOP>/bin Java API to start AutoConfig.
[top]
AutoConfig pre-requisites
Answer:
If you are applying the AutoConfig patch to an instance created with a Rapid
Install version lower than Release 11.5.5, upgrade to Apache 1.3.12s.
Note: Rapid Install for versions 11i7 and higher installs Oracle
HTTP Server 1.3.19 from iAS 1.0.2.2
[top]
12. How will the adbldxml utility name the Applications Context file it
generates?
Answer:
When adbldxml generates the Context file, it first checks for the existence of
an Applications Context file conforming to specific requirements in the
<APPL_TOP>/admin directory on the application tier and in the <RDBMS
ORACLE_HOME>/appsutil directory on the database tier.
If an xml file exists, adbldxml creates the Applications Context file using the
same name.
Specific requirements are:
o The Context file refers to the hostname for which we generate the file.
o The Context file refers to the Database SID for which we generate the file.
[top]
Answer:
Go to the OAM Login page. Sign in and navigate to Site Map. Click on
AutoConfig. Use this link to update your Applications Context file.
[top]
14. I want to execute the adbldxml utility on a fresh RDBMS Oracle Home.
How can I build the Context file, when the database environment file is
not present?
Answer:
The adbldxml utility requires the following environment variables to be set:
o ORACLE_HOME
o ORACLE_SID (LOCAL on Windows)
o TNS_ADMIN
[top]
Answer:
Apply the latest AutoConfig patch, then perform the following steps depending
on your use case:
o You were instructed to use a certain perl version. You have perl and its
libraries installed in the perl standard location for your os (e.g. /usr/lib/perl5
on Linux) and perl is in your PATH:
1. unset PERL5LIB
2. perl $AD_TOP/bin/adconfig.pl
3. Source the environment file (APPS<Context_name>.env)
4. Review your Applications Context file; s_adperlprg and s_perl5lib will
now point to your system perl location.
o You were instructed to use a certain perl version. You installed perl and its
libraries into a custom - non perl standard location (e.g. perl is installed at
/u03/myperl/bin and the perl libraries at /u03/myperl/lib).
1. PERL5LIB=<location of the new PERL5LIB that you want to use>
2. export PERL5LIB
3. <location of the new perl you want to use>
<AD_TOP>/bin/adconfig.pl
4. Source the environment file (APPS<Context_name>.env)
5. Review your Applications Context file; s_adperlprg and s_perl5lib will
now point to your customized perl location.
Example:
PERL5LIB=/u03/myperl/lib/5.00503:/u03/myperl/lib/site_perl/5.005
export PERL5LIB
/u03/myperl/bin/perl $AD_TOP/bin/adconfig.pl
AutoConfig will update the context variables in the context file accordingly.
After the AutoConfig run subsequent utilities and tools can use the context
variables s_adperlprg and s_perl5lib.
[top]
Running AutoConfig
Answer:
You should run AutoConfig in the event of the following cases:
[top]
Answer:
Run the adchkcfg utility to get an html report that lists all the files and profile
options that get changed when you run AutoConfig.
If you have AD.I or higher applied and you want to see the list of files and
profile options that will get changed when adpatch is run, then run adpatch
with the apply=no option before applying the patch. For more information,
refer to Oracle Applications Maintenance Procedures - Section Patching -
Testing a Patch before Applying it.
For instructions on how to run the adchkcfg utility and a discussion about the
report that the utility generates, see Appendix B of the Metalink Note
165195.1.
[top]
[top]
Answer:
AutoConfig creates the following directories based on the Context_name:
Beginning with Release 11.5.7, Oracle Applications comes with the modified
directory structure.
[top]
Answer:
Previously, AutoConfig generated the directory <SID> in
<COMMON_TOP>/admin/scripts. To provide support for a shared
APPL_TOP, AutoConfig now creates the directory <SID>_<hostname>.
If your system contains both directory names, use the scripts under
<SID>_<hostname>. You can safely delete directories named <SID>, after
backing them up.
Refer to Metalink Document 233428.1 on OracleMetalink to learn more about
the Shared APPL_TOP configuration.
[top]
Answer:
All backup configuration files from each AutoConfig session are stored in:
On the application tier:
<APPL_TOP>/admin/<Context_name>/out/<MMDDhhmm>/
[top]
Answer:
The following variables in the Applications Context File let AutoConfig know
which scripts to create:
The variables are set according to your configuration when you create the
Applications Context file:
Single-node system: All the service control scripts are present on the same
node. Therefore, all variables are set to "YES" in the Applications Context file.
Multi-node system:
Example
On Node 1 only the forms and web service control scripts are created. On
Node 2 only the admin and concurrent processing service control scripts are
created. The Applications Context files contain the following values:
Node 1 Node 2
Context Variable
Value Value
s_isAdmin NO YES
s_isConc NO YES
s_isWeb YES NO
s_isForms YES NO
[top]
How does AutoConfig know what application tier node type the
APPL_TOP supports?
Answer:
The AD Utilities such as AutoPatch and AD Administration patch and maintain
files based on the application tier node type that the APPL_TOP supports.
The following variables in the Applications Context file define which files are
patched and maintained for the APPL_TOP:
The variables are set according to your configuration when you create the
Applications Context file:
Single-node system: All the application tier types are present on the same
node and there is only one APPL_TOP. All variables are set to "YES" in the
Applications Context file.
Example:
Every node has its own APPL_TOP that only patches and maintains the files
specific to the node. The Applications Context files contains the following
values:
Node 1 Node 2
Context Variable
Value Value
s_isAdAdmin NO YES
s_isAdConc NO YES
s_isAdWeb YES NO
s_isAdForms YES NO
[top]
Customizations
How do I preserve customizations to an AutoConfig-maintained
environment?
Answer:
Refer to Metalink Note 270519.1 for details on how to implement
customizations.
[top]
Answer:
Contact Oracle Support to incorporate the necessary changes in the
AutoConfig templates:
Identify the patch or the note that is requesting the manual change.
Log a Service Request with Oracle Support, providing the same
information.
[top]
Patching AutoConfig
Answer:
Updates to AutoConfig are delivered in the ADX product patch. The latest
patch at the time of this writing are patch number 3453499.
[top]
Answer:
Perform the following steps in the order listed:
[top]
Net Services
Answer:
The Net Services Topology Data Model stores the entire topological
information about a single Oracle Application instance. The data model stores
information about each node in the Oracle Applications instance which is then
used to generate the Net Service configuration files (for example
tnsnames.ora). AutoConfig seeds the data model with relevant data.
The Net Services Topology Data Model stores the following information:
[top]
Answer:
The Net Services Topology Data Model is seeded every time you run
AutoConfig on the respective tier. Every time you run AutoConfig on the
database tier, the relevant data is seeded/updated for the database tier.
Respectively, every time you run AutoConfig on the application tier, the
relevant data is seeded/updated for the application tier.
[top]
Answer:
In ADX.D and earlier, AutoConfig instantiates the tnsnames.ora file based on
an AutoConfig template. To support enhanced configuration scenarios (for
example RAC), the adgentns.pl script dynamically generates the tnsname.ora
file. It generates the tnsnames.ora based on the information in the Net
Services Topology Data Model. The adgentns.pl script was introduced with
ADX.E. Refer to the following matrix to understand when tnsnames.ora is
generated from a template or from the adgentns.pl script:
[top]
Answer:
The Net Services Topology Data Model can be seeded/updated by running
AutoConfig on the database tier followed by all application tiers.
[top]
Answer:
You have to deregister a tier from the Net Services Topology Data Model in
one of the following cases:
[top]
Answer:
To deregister the current application tier from the Net Services Topology Data
Model, invoke the following command:
perl <AD_TOP>/bin/adgentns.pl appspass=<APPSpwd>
contextfile=<CONTEXT> -removeserver
[top]
8. How do I deregister a database tier from the Net Services Topology Data
Model?
Answer:
To deregister the current database tier from the Net Services Topology Data
Model, invoke the following command:
[top]
Answer:
You need to purge the complete Net Services Topology Data Model, when the
Database Name is changed as a result of a database upgrade/migration.
[top]
Answer:
To purge the complete Net Services Topology Data Model, invoke the
following command:
[top]
11.How do I seed the Net Services Topology Data Model after purging it?
Answer:
See question "How do I seed the Net Services Topology Data Model".
[top]
Answer:
In this case you can use the PL/SQL API. Perform the following steps in the
order listed:
[top]
13.I want to purge the complete Net Services Topology Data Model. I can't
use the adgentns.pl script because I removed the relevant context
file(s). How can I purge the Data Model?
Answer:
In this case you can use the PL/SQL API. Perform the following steps in the
order listed:
o Locate the System Name:
The System name is the database name
Verify with sql query: select DB_NAME from FND_DATABASES;
o Run the following PL/SQL block:
begin
FND_NET_SERVICES.remove_system(SYSTEM_NAME);
end;
/
commit;
/
[top]
Answer:
To generate the failover aliases use the database tier context variable
s_alt_service_instances.
For example
'SERVICE_NAME:INSTANCE_NAME1,SERVICE_NAME:INSTANCE_NAME
2' will generate a TNS Alias in the tnsnames.ora file that fails over to
INSTANCE_NAME1 when the current instance is not available. If
INSTANCE_NAME1 is not available it fails over to INSTANCE_NAME2.
To set up the failover listing, perform the following steps in the order listed:
Check the question "For which database versions can I define failover aliases
for information about the availability of failover aliases on different database
versions.
[top]
Answer:
You can generate failover aliases for all database versions that are 8.1.7.4 or
higher. Currently, Oracle Applications does not support failover aliases for the
8.0.6 Oracle Home.
[top]
Database connectivity
Answer:
Yes. The database server and the database listener must remain available
during the AutoConfig run. This is true when running AutoConfig on the
application tier, as well when running AutoConfig on the database tier. If you
run AutoConfig on the application tier, then the 806 database listener must
remain available also.
[top]
Answer:
The s_apps_jdbc_connect_descriptor stores the connect string for jdbc
connections. All jdbc connections are done using this context variable. The
value for this context variable is generated by AutoConfig.
When the value is reset (empty), AutoConfig tries to connect to the database
using the s_dbSid, s_dbhost and s_dbport context variables.
[top]
Answer:
You should reset the value for s_apps_jdbc_connect_descriptor to an empty
value (" "), when one of the following value changes:
o Database Host
o Database Port
[top]
Answer:
Perform the steps in the order listed:
1. Deregister the database tier from the Net Services Topology Data
Model. Refer to the question "How do I deregister a database tier from
the Net Services Topology Data Model?"
If you haven't enabled AutoConfig on the database tier, you can ignore
this step.
[top]
16. I migrated my database tier to a new host/platform, but the application
tier still tries to connect to the old database. How can I fix this situation,
so that the application tier connects to the new database?
Answer:
Your old database tier is still registered in the Net Services Topology Data
Model. Perform the following steps:
o You have to clean up the data model by following the steps described in the
question: "How do I purge the complete Net Services Topology Data
Model?".
o Perform the step described in the question: "How do I seed the Net Service
Topology Data Model?"
[top]
RAC
Answer:
To migrate to AutoConfig on a RAC instance, follow these steps in the order
listed:
Answer:
To migrate an Oracle Applications 11i instance from non-RAC to RAC, follow
the instructions as described in Metalink Note 279956.1.
[top]
3. I applied all the required RAC patches, but my TWO_TASK variables still
point to the instance aliases. How can I point them to load balanced
aliases?
Answer:
Update your application tier context file and set the values of the following
context variables to the desired load balanced alias names:
o s_tools_twotask
o s_weboh_twotask
[top]
Windows specifics
Answer:
Use the path to the VC98 directory, not the MSDev98 directory. The
vcvars32.bat file exists only under the VC98 directory. For
example:C:\CPP\VC98.
[top]
19. After running AutoConfig, the Apps.cmd and <CONTEXT_NAME>.cmd
contain slashes instead of backslashes on Windows. How do I resolve
this issue?
Answer:
Download patch 2690783 from OracleMetaLink and follow the instructions in
Readme.
[top]
20. Can I use the perl shipped by MKS to run adconfig.cmd on Windows?
Answer:
No. The perl shipped by MKS is not certified. Use the perl available in your
Applications Environment (iAS for the application tier, 9i for the database tier)
or download the ActivePerl from perl.com. Perl has to be in the PATH in order
for AutoConfig to run.
[top]
Answer:
[top]
2. After I run AutoConfig in my 11.5.9 Windows environment I have two
Apache services, two forms services, two metrics client services, and
two metrics server services. Which ones should I use?
Answer:
[top]
Answer:
Check in your Service Control Panel to see if the 806 listener service is set to
automatic or manual.
If your service is set to automatic, then you hit a known issue, that can be
ignored. You can use the following workaround to resolve the issue:
copy %AD_TOP%\bin\adstart.exe %COMMON_TOP%\util\SrvStart.exe
[top]
Troubleshooting
o Errors in the instantiation phase: Check to see if the template files listed in
the error summary exist in your file system. If they do not exist, the
AutoConfig File Driver of the product is faulty. Report the problem to Oracle
Support.
If the template files exist, check for permission issues. If you cannot fix the
issue, report the problem to Oracle Support.
o Error encountered in the SETUP/PROFILE/APPLY phase: Check the
adconfig.log file to see the reason for the failure. If you cannot fix the issue,
report the problem to Oracle Support.
Note: Refer to the question "Where is the log file located that
AutoConfig creates?" for the location of the log file.
[top]
Answer:
Perform the following steps:
References:
[top]
2. How can I resolve TNS-12500 while trying to start GSM?
Answer:
Change the profile option CONC_GSM_ENABLED to N until GSM is
configured. If GSM is configured, check listener.ora located in
<8.0.6 ORACLE_HOME>/network/admin/<Context_name>
Apply the latest AutoConfig patch. The patch creates the FNDSM entry in
listener.ora.
Reference:
o Cannot Start GSM Service Manager - TNS Errors in listener Log and CCM
Log
[top]
Answer:
[top]
Answer:
If the script adupdts.sh fails with a "FileNotFoundException", apply the latest
AutoConfig patch.
References:
[top]
5. How do I resolve an address in use (could not bind to port) when staring
Apache?
Answer:
The error "Address already in use: make_sock could not bind to port" occurs
when non-SSL Apache and SSL Apache occupy the same port. The latest
AutoConfig patch makes sure, that these ports don't conflict.
Reference:
[top]
6. I get the message "You are not authorized to view this page" when I
access the application. How do I resolve this problem?
Answer:
After applying TXK AutoConfig Template Rollup F (patch 3104607) or later,
the Apache configuration won't allow symbolic links per default. Standard
security practice and our strong recommendation is that you don't use
symbolic links for E-Business Suite files.
If you want to enable symbolic links, use the Context Editor to change the
value of the variable s_options_symlinks from "Options -FollowSymLinks" to
"# Options -FollowSymLinks". Run AutoConfig to reflect the change and
restart the applications services.
The pre-patch report txkValidateRollup of TXK AutoConfig Template Rollup G
(patch 3239694) or later provides you more detailed instructions.
[top]
7. On HP/UX Itanium adconfig.pl fails because of a missing POSIX module.
How do I resolve this problem?
Answer:
When you get the error message "Can't locate loadable object for module
POSIX @INC." while running AutoConfig on HP/UX Itanium, then download
and apply patch 4261525 .
[top]
Additional References
[top]