You are on page 1of 19

Using AutoConfig to Manage System Configurations with Oracle Applications 11i (Doc ID 165195.

1)
Modified: 26-Jan-2014 Type: WHITE PAPER ***Checked for relevance on 26-Dec-2011***

Using AutoConfig to Manage System Configurations with Oracle Applications 11i


July 2010
This document provides an overview of AutoConfig, instructions for migration to AutoConfig, instructions for configuring an Oracle Applications 11i environment using AutoConfig, and a discussion of the management of configuration customizations. It is important that you read and follow this document in its entirety before migrating. The most current version of this document is published in Note 165195.1 on Oracle MetaLink . An FAQ is also available in Note 218089.1 on Oracle MetaLink . Attention: Windows users. This document typically uses UNIX syntax when specifying directories; please substitute the appropriate Windows syntax. This document contains the following sections: Section 1: Overview Use AutoConfig to manage your system configurations. Section 2: Pre-requisites Pre-requisites for migrating to AutoConfig. Section 3: Maintaining System Configuration Maintain the configuration of your Oracle Applications Release 11i environment. Section 4: Managing Configuration Customizations Customize AutoConfig generated configurations. Section 5: Migrating to AutoConfig Migrate to AutoConfig for the configuration management of your Oracle Applications Release 11i environment. Section 6: Managing Application Processes Use AutoConfig to manage Applications processes in your Oracle Applications Release 11i environment. Section 7: Migrating to AutoConfig on RAC Migrate to AutoConfig for the configuration management of your 11i RAC environment. Section 8: Migrating to AutoConfig on the Database Tier Migrate to AutoConfig for the configuration management of your Oracle Applications Release 11i environment on the Database Tier. Section 9: Migrating to AutoConfig on the Application Tier

Migrate to AutoConfig for the configuration management of your Oracle Applications Release 11i environment on the Application Tier. Section 10: Known Issues Known issues with the configuration management of your Oracle Applications Release 11i environment. Conventions Convention APPLMGR ORACLE CONTEXT_NAME Meaning User who owns the applications file system (A P P L _ T O Pand application tier technology stack) User who owns the database file system (R D B M SO R A C L E _ H O M Eand database files). Logical name for your Context. Default: <SID>_<hostname> In earlier versions the default was set to <SID> Full path to the Context File (either Applications Context File or Database Context File). Default: <APPL_TOP>/admin/<CONTEXT_NAME>.xml and <RDBMS ORACLE_HOME>/appsutil/<CONTEXT_NAME>.xml Applications database user password Applications database Represents command line text. Type this command exactly as shown. Text enclosed in angle brackets represents a variable. Substitute a value for the variable text. Do not type the angle brackets.

CONTEXT APPSpwd APPSuser/APPSpwd


M o n o s p a c eT e x t

<>

Section 1: Overview
AutoConfig is a tool that supports automated configuration of an Applications instance. All of the information required for configuring an Applications instance is collected into two local repositories, called the Applications Context and the Database Context. 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. There are several major benefits provided by AutoConfig: Configuration Support: AutoConfig configures the APPL_TOP, the ORACLE_HOME(s) and its supporting technology stack. Configuration Management: AutoConfig centralizes the configuration and re-configuration of an Applications instance.

Configuration Delivery and Patching: The uptake of new technology is simplified, as new configurations and configuration changes can be provided in the form of a patch. AutoConfig consists of several components: Component Applications Context Database Context Description An XML repository located in the APPL_TOP containing information specific to that APPL_TOP. An XML repository located in the RDBMS ORACLE_HOME containing information specific to that Database tier.

AutoConfig File Templates Template files that include named tags, which are replaced with instancespecific information from the according Context (this process is called "instantiation"). AutoConfig Driver File Every product in the E-Business Suite maintains a driver file used by AutoConfig. The driver file lists the AutoConfig file templates and their destination locations. A set of scripts that provide a simplified interface to the AutoConfig APIs.

AutoConfig Scripts

Once an APPL_TOP is enabled for AutoConfig, it has an Applications Context file stored in the APPL_TOP as < A P P L _ T O P > / a d m i n / < C O N T E X T _ N A M E > . x m l . Once the Database is enabled for AutoConfig, it has a Database Context file stored in the RDBMS ORACLE_HOME as < R D B M S O R A C L E _ H O M E > / a p p s u t i l / < C O N T E X T _ N A M E > . x m l . When a change is made to any of the Context files or any of the templates, the AutoConfig utility updates the Applications 11i configuration. AutoConfig can also start and stop all Applications system processes that it manages. Please note that AutoConfig must be implemented on the Database Tier and all Application Tiers.

Section 2: Pre-requisites
Complete the steps in this section (in the order listed) before you migrate to AutoConfig. If you have already migrated to AutoConfig, verify that the pre-requisites are met before applying the latest AutoConfig patch. 1. AD minipack Requirements. If you are not on AD minipack F or later, apply the latest AD minipack from OracleMetaLink. 2. Verify software versions The following software component versions must exist on the application tier and/or on the database tier. The tier column indicates the node where the software component must be present. Software Minimum Tier Details

Version JRE 1.3.1 Database tier Must install JRE 1.3.1_1.5 or higher into the < R D B M S O R A C L E _ H O M E > / j r e / 1 . 3 . 1directory. This directory will be used by the AutoConfig java utility. See Appendix A for installation instructions. Refer to Upgrading to JDK 1.3 with Oracle Applications 11i on OracleMetaLink for instructions.

JDK Zip

1.3.1 2.3

Application tier

Application tier and database Download from InfoZip. Zip must be in your PATH. tier TRU64 customers ONLY Download Perl 5.6 from Perl.com. Perl must be in Application tier the PATH for running AutoConfig. and database tier

Perl

5.6

3. For Windows customers ONLY. Download and apply the Windows AutoConfig Updates: 4617175 - Provide specific Windows executables 4445697 - Provide the Windows Service Control Wrapper (OaMkSvc) For patch application follow the instructions in the Readme.

Section 3: Maintaining System Configuration


This section describes how to apply latest AutoConfig patch and manage your Oracle Applications Release 11i if your Instance is AutoConfig enabled. In addition to re-configuring your system, AutoConfig can be used to review changes made to the configuration files, to start and stop Applications processes and to start and stop Database processes. 1. Commands to maintain System Configurations on the Database Tier All scripts listed below are located in
< R D B M SO R A C L E _ H O M E > / a p p s u t i l / s c r i p t s / < C O N T E X T _ N A M E > .

Platform UNIX

Functionality Start Database listener process Start Database process Stop Database listener process Stop Database process

Command
a d d l n c t l . s hs t a r t< S I D > a d d b c t l . s hs t a r t a d d l n c t l . s hs t o p< S I D > a d d b c t l . s hs t o p

Run AutoConfig Windows Start Database listener process Start Database process Stop Database listener process Stop Database process Run AutoConfig

a d a u t o c f g . s h a d d l n c t l . c m ds t a r t< S I D > a d d b c t l . c m ds t a r t a d d l n c t l . c m ds t o p< S I D > a d d b c t l . c m ds t o p a d a u t o c f g . c m d

Note: Running AutoConfig might change your existing environment files. After running AutoConfig, you should always set the environment before you run any Applications utilities in order to apply the changed environment variables. 2. Commands to maintain System Configurations on the Application Tier All scripts listed below are located in
< C O M M O N _ T O P > / a d m i n / s c r i p t s / < C O N T E X T _ N A M E > .

Platform Functionality UNIX Start Applications processes Stop Applications processes Run AutoConfig Windows Start Applications processes Stop Applications processes Run AutoConfig

Command
a d s t r t a l . s h< A P P S u s e r / A P P S p w d > a d s t p a l l . s h< A P P S u s e r / A P P S p w d > a d a u t o c f g . s h a d s t r t a l . c m d< A P P S u s e r / A P P S p w d > a d s t p a l l . c m d< A P P S u s e r / A P P S p w d > a d a u t o c f g . c m d

Note: Running AutoConfig might change your existing environment files. After running AutoConfig, you should always set the environment before you run any Applications utilities in order to apply the changed environment variables. 3. Patching AutoConfig If you were instructed to apply the latest AutoConfig patch, perform the following steps in the order listed: Review the Pre-Requisites Apply TXK AutoConfig and Templates patch Update the Oracle Applications file system with the AutoConfig files by applying patch 9535311 to all application tier nodes in the Applications instance. Apply the unified driver. Copy AutoConfig to the RDBMS ORACLE_HOME

Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps: On the Application Tier (as the APPLMGR user): Log in to the APPL_TOP environment (source the environment file) Create appsutil.zip file
p e r l< A D _ T O P > / b i n / a d m k a p p s u t i l . p l

This will create appsutil.zip in $APPL_TOP/admin/out . On the Database Tier (as the ORACLE user): Copy or FTP the appsutil.zip file to the < R D B M SO R A C L E _ H O M E >
c d< R D B M SO R A C L E _ H O M E > u n z i poa p p s u t i l . z i p

Run AutoConfig on the Database Tier Run AutoConfig on the database tier node. Use the adautocfg.sh/.cmd command described in Section 3, Task 1. Attention: The database server and the database listener must remain available during the AutoConfig run. All the other database tier services should be shut down. Run AutoConfig on the Application Tiers Run AutoConfig on all application tier nodes. Use the adautocfg.sh/.cmd command described in Section 3, Task 2. Attention: The database server and the database listener must remain available during the AutoConfig run. Only the application tier servers should be shut down. 4. Making changes to your configuration There are two ways to change your configuration: Apply a patch from Oracle that adds or changes the variables in your Context, AutoConfig template files, or AutoConfig driver files. Use the web based Context Editor from OAM to perform configuration updates to your Applications Context. OAM provides advanced features for context file editing. Refer to Oracle Applications Manager 11i Availability for instructions on installing OAM. Refer to Oracle Applications Maintenance Procedures - Section Managing Configuration Parameters for information on how to use the OAM Context Editor. Note: Configuration changes will not take effect until you run AutoConfig and restart your server processes. 5. Rolling back an AutoConfig session

Each execution of AutoConfig creates a rollback script in case you need to revert to the previous configuration settings. The script and all backup configuration files from each AutoConfig session are stored in: Tier Application Database Directory
< A P P L _ T O P > / a d m i n / < C O N T E X T _ N A M E > / o u t / < M M D D h h m m > < R D B M SO R A C L E _ H O M E > / a p p s u t i l / o u t / < C O N T E X T _ N A M E > / < M M D D h h m m >

where:<M M D D h h m m > = (month, day, hour, minute of AutoConfig run) To roll back an AutoConfig session: On UNIX
r e s t o r e . s h

On Windows

r e s t o r e . c m d

6. Reviewing AutoConfig Log files AutoConfig logfiles are stored under: Tier Application Database Directory
< A P P L _ T O P > / a d m i n / < C O N T E X T _ N A M E > / l o g / < M M D D h h m m > < R D B M SO R A C L E _ H O M E > / a p p s u t i l / l o g / < C O N T E X T _ N A M E > / < M M D D h h m m >

There will be one log file per AutoConfig session, and it will contain exact information for every action that AutoConfig performed.

Section 4: Managing Configuration Customizations


All files managed by AutoConfig are marked by the following note: ################################################################ # # 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 165195.1 for assistance. # ################################################################

If the files maintained by AutoConfig require customization, refer to Note 270519.1 on Oracle MetaLink .

Section 5: Migrating to AutoConfig


Complete the steps in this section (in the order listed) to migrate to AutoConfig. If your have already migrated to AutoConfig, refer to Section 3 to learn about maintaining your system configuration using AutoConfig: 1. Apply TXK AutoConfig and Templates patch Update the Oracle Applications file system with the AutoConfig files by applying patch 9535311 to all application tier nodes in the Applications instance. Apply the unified driver. 2. Migrate to AutoConfig on the Database Tier Follow the steps in Section 8 to migrate to AutoConfig on the Database Tier. If you have already migrated to AutoConfig on the Database Tier, then you can omit that section. 3. Migrate to AutoConfig on the Application Tier Follow the steps in Section 8 to migrate to AutoConfig on the Application Tier. If you have already migrated to AutoConfig on the Application Tier, then you can omit that section. Your system is now AutoConfig enabled. Refer to Section 3 on information on maintaining system configurations.

Section 6: Managing Applications Processes


This section describes how to manage Applications processes through AutoConfig. As mentioned in Section 3, the scripts adstrtal.sh/cmd and adstpall.sh/cmd can be used for starting and stopping all AutoConfigmanaged processes on the Applications system. Depending on the requirement of a particular Applications instance, it is possible to modify the set of Applications processes that will be started and stopped via AutoConfig. This can be done by enabling the required processes and disabling the others. 1. To enable a process, ensure that the value of the 'status' context variable corresponding to the process is set to 'enabled'. 2. To disable a process, ensure that the value of the 'status' context variable corresponding to the process is set to 'disabled'.

Section 7: Migrating to AutoConfig on RAC

This section guides you through the steps that need to be performed when your Oracle 11i instance is running on RAC and you want to enable AutoConfig. Note: If your 11i instance is running on a non-RAC database and you decide to migrate to RAC, follow the steps described in Note 279956.1 on Oracle MetaLink . The AutoConfig patch delivers the infrastructure to generate a complete tnsnames.ora file required for RAC. This includes Instance aliases for each AutoConfig enabled database tier node Load balance aliases with address lists for each AutoConfig enabled database tier node FNDSM and FNDFS aliases (used by the CP Service Manager) for each AutoConfig enabled application tier node. 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 Application instance. Complete the steps in this section (in the order listed) to migrate to AutoConfig on RAC: 1. Apply TXK AutoConfig and Templates patch Update the Oracle Applications file system with the AutoConfig files by applying patch 9535311 to all application tier nodes in the Applications instance. Apply the unified driver. 2. Review init.ora AutoConfig will not overwrite your existing init.ora file in the <ORACLE_HOME>/dbs directory. However, AutoConfig will generate a RAC conforming init.ora file when no init.ora file exists in the <ORACLE_HOME>/dbs directory. We recommend creating a backup of the existing init.ora file and let AutoConfig generate a new init.ora file. This will ensure that the init.ora file conforms to Oracle standards (For example, usage of DB_Name as the service name or handling local and remote listeners). 3. Migrate to AutoConfig on the Database Tier Follow the steps in Section 8 to migrate to AutoConfig on the Database Tier. If you have already migrated to AutoConfig on the Database Tier, then you can omit that section. 4. Restart the Database listener Stop and Start your Database listener. 5. Run AutoConfig on the Database tier Run AutoConfig on the database tier node. Use the adautocfg.sh/.cmd command described in Section 3, Task 1. Attention: The database server and the database listener must remain available during

the AutoConfig run. All the other database tier services should be shut down. 6. Migrate to AutoConfig on the Application Tier Follow the steps in Section 9 to migrate to AutoConfig on the Application Tier. If you have already migrated to AutoConfig on the Application Tier, then you can omit that section. 7. Run AutoConfig on the Application tier Run AutoConfig on each application tier. Use the adautocfg.sh/.cmd command described in Section 3, Task 2. Attention: The database server and the database listener must remain available during the AutoConfig run. Your system is now AutoConfig enabled. Refer to Section 3 for information on maintaining system configurations. Note: Use the ifile included from tnsnames.ora/listener.ora to preserve or add customization to these files.

Section 8: Migrating to AutoConfig on the Database Tier


Complete the steps in this section (in the order listed) to migrate to AutoConfig on the Database Tier. If you have already migrated to AutoConfig on the Database Tier omit this section. 1. Copy AutoConfig to the RDBMS ORACLE_HOME Update the RDBMS ORACLE_HOME file system with the AutoConfig files by performing the following steps: On the Application Tier (as the APPLMGR user): Log in to the APPL_TOP environment (source the environment file) Create appsutil.zip file
p e r l< A D _ T O P > / b i n / a d m k a p p s u t i l . p l

This will create appsutil.zip in $APPL_TOP/admin/out . On the Database Tier (as the ORACLE user): Copy or FTP the appsutil.zip file to the < R D B M SO R A C L E _ H O M E >
c d< R D B M SO R A C L E _ H O M E > u n z i poa p p s u t i l . z i p

2. Generate your Database Context File

If you already have the Database Context File and are not creating a new Oracle Home either, go to Task 3 in this section. The Database Context File needs to be created in the following scenarios 1. Your Applications system was created with Release 11.5.8 Rapid Install or earlier and you do not already have a Database Context file 2. You have a new Oracle Home due to the following reasons: You are performing a cross-platform migration of the database tier You are upgrading the database Execute the following commands to create your Database Context File: On UNIX
c d< R D B M SO R A C L E _ H O M E > .< C O N T E X T _ N A M E > . e n v c d< R D B M SO R A C L E _ H O M E > / a p p s u t i l / b i n p e r la d b l d x m l . p lt i e r = d ba p p s u s e r = < A P P S u s e r >

On Windows Source the .cmd file using < R D B M SO R A C L E _ H O M E > \ < C O N T E X T _ N A M E > . c m d
c d/ d< R D B M SO R A C L E _ H O M E > \ a p p s u t i l \ b i n p e r la d b l d x m l . p lt i e r = d ba p p s u s e r = < A P P S u s e r >

Attention: adbldxml uses your current environment settings to generate the context file. Therefore ensure that your environment is correctly sourced. Attention: If you build the context file for an 11i instance that runs on RAC, all your RAC instances have to be up and running while executing the adbldxml utility. The utility connects to all RAC instances to gather information about the configuration. 3. Prepare for AutoConfig Complete the following AutoConfig steps. Review Prior Manual Configuration Changes The Database Context File may not include manual post-install configuration changes made after the Rapid Install completed. Before running the AutoConfig portion of this patch, review any modifications to specific configuration files and reconcile them with the Database Context file. Note: Prior modifications include any changes made to configuration files as instructed in patch READMEs or other accompanying documents. Appendix B describes how to review and resolve manual configuration changes. 4. Generate and Apply AutoConfig Configuration files

Attention: This step performs the conversion to AutoConfig. Once completed, the previous configuration will not be available. Attention: The database server and the database listener must remain available during the AutoConfig run. All the other database tier services should be shut down. Execute the following commands: On UNIX
c d< R D B M SO R A C L E _ H O M E > / a p p s u t i l / b i n a d c o n f i g . s hc o n t e x t f i l e = < C O N T E X T >

On Windows

c d/ d< R D B M SO R A C L E _ H O M E > \ a p p s u t i l \ b i n a d c o n f i g . c m dc o n t e x t f i l e = < C O N T E X T >

Warning: Running AutoConfig on the database node will update the RDBMS network listener file. Be sure to review the configuration changes from step 3. The new AutoConfig network listener file supports the use of IFILE to allow for values to be customized or added as needed. Note: Running AutoConfig on the database tier will NOT overwrite any existing init.ora file in the <ORACLE_HOME>/dbs directory. If no init.ora file exists in your instance, AutoConfig will generate an init.ora file in the <ORACLE_HOME>/dbs directory for you. On Windows platform, during each AutoConfig run the init.ora file in <ORACLE_HOME>/dbs directory is copied over to <ORACLE_HOME>/database directory. Note: Running AutoConfig might change your existing environment files. After running AutoConfig, you should always set the environment before you run any Applications utilities in order to apply the changed environment variables.

Section 9: Migrating to AutoConfig on the Application Tier


Complete the steps in this section (in the order listed) to migrate to AutoConfig on the Application Tier. If you have already migrated to AutoConfig on the Application Tier omit this section. 1. Find or generate your Oracle Applications Context File Look for the following file in the APPL_TOP:
< A P P L _ T O P > / a d m i n / < C O N T E X T _ N A M E > . x m l

If this file exists, go to Task 2 in this section.

If this file does not exist, then set your environment and execute the following command to create your Applications Context File: On UNIX
c d< A D _ T O P > / b i n p e r la d b l d x m l . p lt i e r = a p p sa p p s u s e r = < A P P S u s e r >

On Windows
c d/ d< A D _ T O P > \ b i n p e r la d b l d x m l . p lt i e r = a p p sa p p s u s e r = < A P P S u s e r >

Attention: adbldxml uses your current environment settings to generate the context file. Therefore ensure that your environment is correctly sourced. Attention: If you build the context file for an 11i instance that runs on RAC, all your RAC instances have to be up and running while executing the adbldxml utility. The utility connects to all RAC instances to gather information about the configuration. 2. Prepare for AutoConfig 11i1 UNIX user: Change ownership of the application tier ORACLE_HOME(s) In 11.5.1 the application tier ORACLE_HOME(s) were owned by ORACLE, while the APPL_TOP was owned by APPLMGR. These application tier ORACLE_HOME(s) need to be owned by APPLMGR. Run the following command to change the owner of these directories:
< A D _ T O P > / b i n / a d o w n m t . s h

11i user: Apply OHS patch Run the following command to find the OHS rollup version: On UNIX:
c d< I A S _ O R A C L E _ H O M E > / A p a c h e / A p a c h e / b i n h t t p dv

On Windows:
c d< I A S _ O R A C L E _ H O M E > \ A p a c h e \ A p a c h e a p a c h e . e x eV

If you have iAS 1.0.2.2.2, you must patch the Oracle HTTP Sever (OHS) component. Apply OHS patch 2674529. You must update the oprocmgr_port value in the Applications Context file with a free port number. Review the <IAS_HOME>/Apache/Apache/conf/httpd.conf file, under the <IfModule mod_oprocmgr.c> section, and use the port already chosen there. Refer to Section 8 for more information on how to edit your configuration. Review Prior Manual Configuration Changes

The Applications Context File may not include manual post-install configuration changes made after the Rapid Install completed. Before running the AutoConfig portion of this patch, review any modifications to specific configuration files and reconcile them with the Applications Context file. Note: Prior modifications include any changes made to configuration files as instructed in patch READMEs or other accompanying documents. Appendix B describes how to review and resolve manual configuration changes. 3. Shut Down Services Shut down the application tier services that are running on the node where the patch was applied. Attention: The database server and the database listener must remain available during the AutoConfig run. Only the application tier servers should be shut down. 4. Generate and Apply AutoConfig Configuration files Attention: This step performs the conversion to AutoConfig. Once completed, the previous configuration will not be available. Execute the following command: On UNIX
< A D _ T O P > / b i n / a d c o n f i g . s hc o n t e x t f i l e = < C O N T E X T >

On Windows

< A D _ T O P > \ b i n \ a d c o n f i g . c m dc o n t e x t f i l e = < C O N T E X T >

Note: Running AutoConfig might change your existing environment files. After running AutoConfig, you should always set the environment before you run any Applications utilities in order to apply the changed environment variables.

Section 10: Known Issues


This section contains known issues with the configuration management of your Oracle Applications Release 11i environment. 1. Application 11i Login page fails with Internal 500 error Update the context variable s_directory_index with "index.html" and run AutoConfig on each application tier node in the Applications instance.

Appendix A: Install JRE 1.3.1 into <RDBMS ORACLE_HOME>


Perform the following steps: 1. Download JRE 1.3.1_15 or higher from Sun Microsystems. Refer to JDK upgrade guide for the download location for other platforms. 2. Follow the installation instructions. 3. When prompted for the location to install jre, click browse and enter the location: 4. Accept the default plug-in options.
< R D B M SO R A C L E _ H O M E > \ j r e \ 1 . 3 . 1 _ < v e r s i o nn u m b e r >w h e r ev e r s i o nn u m b e ri s1 5o r h i g h e r .

JRE 1.3.1_<version number> will be installed in < R D B M SO R A C L E _ H O M E > \ j r e \ 1 . 3 . 1 _<version number>

Appendix B: Review and Resolve Manual Configuration Changes


1. The Check Config utility (adchkcfg) is located at: Tier Application Database Command
< A D _ T O P > / b i n < R D B M SO R A C L E _ H O M E > / a p p s u t i l / b i n

Check the AutoConfig configuration files by executing the following command: On UNIX
a d c h k c f g . s hc o n t e x t f i l e = < C O N T E X T >

On Windows

a d c h k c f g . c m dc o n t e x t f i l e = < C O N T E X T >

This script will generate both html and text reports that 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: File System Changes (See a snapshot) This report provides information about all the files that will be changed during the next normal execution of AutoConfig. The report is divided into the following sections: AutoConfig Context File Changes Displays information about the location of the context file, the content of the currently active context file, the content of the context file that will be generated in the next AutoConfig run. In addition it also displays an html report highlighting the differences between the current and the new context file. Changed Configuration Files

Displays a list of all the files that will be changed during an AutoConfig execution. For each file, information is displayed about the location of the runtime file, the content of the currently active file, the content of the file that will be generated in the next AutoConfig run, an html report highlighting the differences between the current and the new configuration file and the location of the AutoConfig template file. New Configuration Files Displays a list of all the new files that will be created during an AutoConfig execution. For each file, information is displayed about the location of the runtime file, the content of the new file and the location of the AutoConfig template file. Database Changes (See a snapshot) This report provides information about all the profile options that get changed during the next normal execution of AutoConfig. This report is divided into three sections. Profile Value Changes Displays the details only for profiles whose value would be changed in the next AutoConfig run. For each such profile, the current value in the Database, the new AutoConfig value that would be set for it, the Profile Level and the name of the AutoConfig script that changes the profile value is displayed. Profile Values Displays the details as in previous section for all Apps Database profiles managed by AutoConfig. Other Database updates Displays the details for important database updates that will be done in the next run of AutoConfig. The table name, column name, the current column value in the Database and the new AutoConfig value is displayed along with the name of the updating AutoConfig script and a brief description. Resolve any reported differences between your existing files and the files AutoConfig will create. The script will also create a zip file report "ADXcfgcheck.zip" that contains all the files and reports mentioned above, so that 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.

Appendix C: Define the PERL5LIB environment variable


On the Application Tier:
P E R L 5 L I B = < I A S _ O R A C L E _ H O M E > / A p a c h e / p e r l / l i b / 5 . 0 0 5 0 3 : < I A S _ O R A C L E _ H O M E > / A p a c h e / p e r l / l i b / s i t e _ p e r l / 5 . 0 0 5 : < A U _ T O P > / p e r l e x p o r tP E R L 5 L I B

On the Database Tier:


P E R L 5 L I B = < O R A C L E _ H O M E > / A p a c h e / p e r l / l i b / 5 . 0 0 5 0 3 : < O R A C L E _ H O M E > / A p a c h e / p e r l / l i b / s i t e _ p e r l / 5 . 0 0 5 : < O R A C L E _ H O M E > / a p p s u t i l / p e r l e x p o r tP E R L 5 L I B

On the 10g Database Tier: On an 11i Instance with 10g Database, the Database tier does not have the 'Apache' directory. The perl libraries are present in the directory '$ORACLE_HOME/perl/lib'. So the variable 'PERL5LIB' on the 10g Database tier needs to be set as follows:
< O R A C L E _ H O M E > / p e r l / l i b / 5 . 8 . 3 : < O R A C L E _ H O M E > / p e r l / l i b / s i t e _ p e r l / 5 . 8 . 3 : < O R A C L E _ H O M E > / a p p s u t i l / p e r l e x p o r tP E R L 5 L I B

On an 11i instance with 11gR2 Database, the perl version on the database tier is '5.10.0'. So the variable 'PERL5LIB' on the 11gR2 database tier needs to be set as follows:
< O R A C L E _ H O M E > / p e r l / l i b / 5 . 1 0 . 0 : < O R A C L E _ H O M E > / p e r l / l i b / s i t e _ p e r l / 5 . 1 0 . 0 : < O R A C L E _ H O M E > / a p p s u t i l / p e r l e x p o r tP E R L 5 L I B

Appendix D: AutoConfig Performance Profiler


The AutoConfig Performance Profiler is a new feature introduced in TXK AutoConfig and Templates Rollup patch S 6372396. This new feature can be used to profile an AutoConfig run and generate a consolidated report in HTML format. The profile report is comprised of the following sections: Summary (See a snapshot) This section of the report shows the profile information for all the product tops processed in the current AutoConfig run. It shows the following: Product Top: Short name of each product top. Instantiation Time: Total time taken to instantiate templates from each product top. Execution Time: Total time taken to execute scripts from each product top. Time (%): Percentage of AutoConfig execution time taken to instantiate and execute scripts from each product top. Status: Whether or not all the templates from each product top were successfully instantiated

and executed. The product tops listed in the summary section can be drilled down to view the profile information for individual templates. Details (See a snapshot) This section contains the profile information for all product templates that are only instantiated or instantiated and executed in the current AutoConfig run. It shows the following: Script Name: Target name of the template. Instantiation Time: Time taken to instantiate the template. Execution Time: Time taken to execute the instantiated template. Time (%): Percentage of product top processing time taken to process the template. Status: Whether or not the template was successfully processed. Execution Summary: Contains the source and target locations of the template and the execution report of the script. This summary can be viewed by clicking on the script name link in the detailed report. AutoConfig can be run in profile mode using the '-profile' command line option. For example:
p e r la d c o n f i g . p lc o n t e x t f i l e = < C O N T E X T >p r o f i l e p e r la d c o n f i g . p lc o n t e x t f i l e = < C O N T E X T >p r o d u c t = a dn o c u s t o mp r o f i l e

Appendix E: Context Variable Information Utility


The TXK Context Variable Information utility was introduced in TXK AutoConfig and Templates Rollup patch S (6372396). This command-line utility can be used to find out detailed information about context variables and the templates that use them. The utility accepts all or part of a context variable name and generates an html or text report containing information about all of the matched context variables, including 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 specific context variables are used. See a snapshot of the generated report. Follow these instructions to run the utility: 1. Source the Applications environment file as the owner of the application tier file system (APPLMGR user). 2. Run the technology validation utility using the following syntax: On UNIX:
t x k r u n . p ls c r i p t = G e n C t x i n f R e p[ a r g 1a r g 2. . ]

On Windows:
% A D P E R L P R G %% F N D _ T O P % \ b i n \ t x k r u n . p ls c r i p t = G e n C t x i n f R e p[ a r g 1a r g 2. . ]

The arguments which can be accepted on command-line are contextfile (optional): name of the context file. By default, it is set to the value of $CONTEXT_FILE keyword (required): all or part of a context variable name reporttype (optional): specifies the report type. Valid values are html (default) or text outfile (optional): location of the report file. By default it will be set to the value of $APPLTMP/txkCtxInfRep.html For example:
t x k r u n . p ls c r i p t = G e n C t x i n f R e pk e y w o r d = " j d b c " t x k r u n . p ls c r i p t = G e n C t x i n f R e pk e y w o r d = " N u m b e ro fJ V M " t x k r u n . p ls c r i p t = G e n C t x i n f R e pk e y w o r d = " J V Mo p t i o n "

Note 165195.1 by Oracle Applications Development Copyright 2008 Oracle Corporation Last modified: 6th July 2010

REFERENCES

You might also like