<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>orazone.com Blog</title>
	<atom:link href="http://orazone.com/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://orazone.com/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 06 Sep 2007 02:33:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Autoconfig Internals</title>
		<link>http://orazone.com/blog/2007/09/06/autoconfig-internals/</link>
		<comments>http://orazone.com/blog/2007/09/06/autoconfig-internals/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 02:33:33 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://orazone.com/blog/2007/09/06/autoconfig-internals/</guid>
		<description><![CDATA[So what happens when you run adconfig.sh script? Remember it uses the XML file generated using adbldxml command. This XML file itself is build based upon the environment settings. You should ensure that the environment is set correctly by executing (CONTEXT_NAME).env script.
So one half of the equation comes from the XML file that we generated. [...]]]></description>
			<content:encoded><![CDATA[<p>So what happens when you run adconfig.sh script? Remember it uses the XML file generated using adbldxml command. This XML file itself is build based upon the environment settings. You should ensure that the environment is set correctly by executing (CONTEXT_NAME).env script.</p>
<p>So one half of the equation comes from the XML file that we generated. The other half is the templates for each of the configuration file the AutoConfig process ultimately generates.</p>
<p>For each of the configuration file that gets generated as a result of running AutoConfig, Oracle uses a template file that come with the initial install process.</p>
<p>For example, if you review the adalnctl.sh file in the $AD_TOP/admin/template directory, you will see the template in action. Following is the extract from the template file adalnctl.sh located in $AD_TOP/admin/template directory</p>
<p># FILENAME<br />
# adalnctl.sh<br />
# # DESCRIPTION<br />
# Start / Stop Applications RPC Listener process for %s_dbSid%<br />
# Make sure the logfile directory exists<br />
#<br />
if [ ! -d "%s_com%/admin/log/%s_dbSid%" ];<br />
then mkdir -p %s_com%/admin/log/%s_dbSid%<br />
fi;<br />
# # Set up the logfile for this instance #<br />
if [ -n "$SRVLOG" ];<br />
then LOGFILE=$SRVLOG<br />
else<br />
LOGFILE=&#8221;%s_com%/admin/log/%s_dbSid%/adalnctl.txt&#8221;<br />
fi;<br />
touch $LOGFILE</p>
<p>Notice the s_dbSid variable being used in this script. The value for this variable will be read from the XML file generated when we ran the perl script adbldxml.pl.</p>
<p>Following the excerpt from the actual (CONTEXT_NAME).xml file located under $APPL_TOP/admin directory. Note that I have removed <> tags to enhance readability.</p>
<p>oa_system<br />
oa_system_name oa_var=&#8221;s_systemname&#8221;SND1/oa_system_name global_db_name oa_var=&#8221;s_dbSid&#8221;snd1/global_db_name<br />
global_db_name oa_var=&#8221;s_dbGlnam&#8221;>SND1/global_db_name<br />
db_name_lower oa_var=&#8221;s_dbSidLower&#8221;snd1/db_name_lower<br />
PRINTER oa_var=&#8221;s_printer&#8221;noprint/PRINTER<br />
!oa_system_config</p>
<p>Now see the extract from actual adalnctl.sh in the $COMMON_TOP/admin/scripts/ directory.</p>
<p>As you can see, the actual file is created as copy from the template with values replaced from XML file.</p>
<p># FILENAME<br />
# adalnctl.sh<br />
# # DESCRIPTION<br />
# Start / Stop Applications RPC Listener process for snd1</p>
<p># # Make sure the logfile directory exists #</p>
<p>if [ ! -d `dirname /u10/apps/snd1/comn/admin/log/snd1_ebdev03/adalnctl.txt` ];<br />
then mkdir -p `dirname /u10/apps/snd1/comn/admin/log/snd1_ebdev03/adalnctl.txt`<br />
fi;<br />
# # Set up the logfile for this instance #</p>
<p>if [ -n "$SRVLOG" ]; then LOGFILE=$SRVLOG<br />
else LOGFILE=&#8221;/u10/apps/snd1/comn/admin/log/snd1_ebdev03/adalnctl.txt&#8221; fi;<br />
touch $LOGFILE</p>
<p><strong>Conclusion</strong><br />
<strong /><br />
We have seen how AutoConfig creates the configuration files from template files.</p>
]]></content:encoded>
			<wfw:commentRss>http://orazone.com/blog/2007/09/06/autoconfig-internals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autoconfig Indepth</title>
		<link>http://orazone.com/blog/2007/09/06/autoconfig-indepth/</link>
		<comments>http://orazone.com/blog/2007/09/06/autoconfig-indepth/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 02:29:20 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://orazone.com/blog/2007/09/06/autoconfig-indepth/</guid>
		<description><![CDATA[Background

Autoconfig is one of the central components of the 11i Architecture. AutoConfig is a process in which several key configuration files are managed centrally by Oracle. If you understand how Oracle uses Autoconfig process to maintain numerous configuration files such as init.ora, listener.ora, tnsnames.ora etc.., maintaining and administering 11i E-Business suite will be more fun [...]]]></description>
			<content:encoded><![CDATA[<div class="post-body entry-content"><span style="font-size: 85%"><span style="font-family: verdana"><strong>Background</strong><br />
</span><br />
</span><span style="font-size: 85%; font-family: verdana">Autoconfig is one of the central components of the 11i Architecture. AutoConfig is a process in which several key configuration files are managed centrally by Oracle. If you understand how Oracle uses Autoconfig process to maintain numerous configuration files such as init.ora, listener.ora, tnsnames.ora etc.., maintaining and administering 11i E-Business suite will be more fun and less stressful.<br />
If your current system is not AutoConfig enabled, you can migrate it to start using AutoConfig. </p>
<p>This post is introduction to AutoConfig. My other posts discuss internals of AutoConfig and Customizing AutoConfig.</p>
<p><strong>Key Terms and their meaning</strong></p>
<p><strong>CONTEXT_NAME</strong><br />
Logical name for your Context. Default: _In earlier versions the default was set to</p>
<p><strong>AutoConfig template file</strong><br />
An AutoConfig template file contains named tags, which are replaced with instance-specific information when AutoConfig runs. AutoConfig template files should not be edited.For example:$FND_TOP/admin/template/appsweb.cfg</p>
<p></span><span style="font-family: verdana"><span style="font-size: 85%"><strong>Custom template file<br />
</strong>To customize AutoConfig-managed configuration files, copy the AutoConfig template file to the custom template file and edit the custom template file. When AutoConfig detects a custom template file, AutoConfig instantiates this file in place of the AutoConfig template file.For example:$FND_TOP/admin/template/custom/appsweb.cfg</span></span><span style="font-family: verdana"><span style="font-size: 85%"><strong>AutoConfig template directory</strong><br />
Directory where Oracle delivers AutoConfig template files. There is an AutoConfig template directory for every product.Location:/admin/template /appsutil/template<br />
For example:$FND_TOP/admin/template $ORACLE_HOME/appsutil/template</p>
<p></span></span><span style="font-family: verdana"><span style="font-size: 85%"><strong>Custom template directory<br />
</strong>Directory where you keep customized AutoConfig template files.Location:/admin/template/custom /appsutil/template/custom<br />
For example:$FND_TOP/admin/template/custom $ORACLE_HOME/appsutil/template/custom</span></span><span style="font-family: verdana"><span style="font-size: 85%" /></span><span style="font-family: verdana"><span style="font-size: 85%"><strong>Configuration file<br />
</strong>The instantiated configuration file created when AutoConfig runs.For example:$COMMON_TOP/html/bin/appsweb_$CONTEXT_NAME.cfg</span></span><span style="font-family: verdana"><span style="font-size: 85%">Autoconfig process reads an XML file ( CONTEXT_NAME.xml located under $APPL_TOP/admin in the application tier and $ORACLE_HOME/appsutil on the Database Tier) containing parameters and values, instantiates a template, replaces the place holders with actual values from the XML file to create an actual configuuration file.</p>
<p>Creating an AutoConfig enabled environment on the Application Tier involve as following steps</p>
<p /></span></span></p>
<ul>
<li><span style="font-size: 85%; font-family: verdana">Setting the environment correctly by sourcing the relevant .env file</span></li>
<li><span style="font-size: 85%; font-family: verdana">Generate an XML file containing parameters and values</span></li>
<li><span style="font-size: 85%; font-family: verdana">Run the AutoConfig process to create the configuration files </span></li>
</ul>
<p><span style="font-size: 85%; font-family: verdana">Lets look at the detailed steps</span><span style="font-size: 85%; font-family: verdana"><strong>AutoConfig on Application Tier</strong></p>
<p></span></p>
<ul>
<li><span style="font-size: 85%; font-family: verdana">If you have an existing xml file in the directory /admin/(CONTEXT_NAME).xml, take the backup of the file. The perl script adbldxml.pl file during this process will overwrite this file. </span></li>
<li><span style="font-size: 85%; font-family: verdana">Make sure you source the environment correctly by running .env file located under $APPL_TOP. If the environment is not sourced correctly, i.e COMMON_TOP, APPL_TOP,IAS_ORACLE_HOME, ORACLE_HOME are not established correctly, the xml file being generated in this step will contain incorrect values. That would generate incorrect configuration files in the AutoConfig run phase in step<br />
Generate the xml file using adbldxml.pl perl script </span></li>
<li><span style="font-size: 85%; font-family: verdana">cd $AD_TOP/bin </span></li>
<li><span style="font-size: 85%; font-family: verdana">perl adbldxml.pl tier=apps appsuser= appspasswd= (apps password )</span></li>
<li><span style="font-size: 85%; font-family: verdana">Review the xml file generated in the above step to ensure all parameters and values are set correctly. </span></li>
<li><span style="font-size: 85%; font-family: verdana">Run adautocfg.sh using the above generated XML file as an input to generate the required configuration files such as tnsnames.ora, Listener.ora, etc.<br />
$AD_TOP/bin/adconfig.sh contextfile= appspass= </p>
<p><strong>AutoConfig on Database Tier</strong></p>
<p>Creating an AutoConfig enabled environment on the Database Tier is a similar process</p>
<p></span></li>
<li><span style="font-size: 85%; font-family: verdana">Generate appsutil.zip file on the Application Tier</span></li>
<li><span style="font-size: 85%; font-family: verdana">Ftp the appsutil.zip to the DB tier</span></li>
<li><span style="font-size: 85%; font-family: verdana">Unzip and run the AutoConfig on the DB Tier<br />
</span></li>
</ul>
<p><span style="font-size: 85%; font-family: verdana">Now lets see those steps in detail</span><br />
<span style="font-size: 85%; font-family: verdana">On the Application Tier (as the APPLMGR user): </span></p>
<ul>
<li><span style="font-size: 85%; font-family: verdana">Log in to the APPL_TOP environment (source the environment file) </span></li>
<li><span style="font-size: 85%; font-family: verdana">cd $AD_TOP/bin</span></li>
<li><span style="font-size: 85%; font-family: verdana">perl admkappsutil.pl </span></li>
<li><span style="font-size: 85%; font-family: verdana">This will create appsutil.zip in $APPL_TOP/admin/out directory</span></li>
<li><span style="font-size: 85%; font-family: verdana">Ftp the appsutil.zip created in the step 1 to the $RDBMS ORACLE_HOME on the Database Tier </span></li>
<li><span style="font-size: 85%; font-family: verdana">Unzip appsutil.zip in the $ORACLE_HOME on the Database Tier. </span></li>
<li><span style="font-size: 85%; font-family: verdana">cd $ORACLE_HOME on the DB Tier</span></li>
<li><span style="font-size: 85%; font-family: verdana">unzip -o appsutil.zip </span></li>
<li><span style="font-size: 85%; font-family: verdana">If there is (CONTEXT_NAME).xml file in $RDBMS ORACLE_HOME/appsutil, review the file and take a backup. </span></li>
<li><span style="font-size: 85%; font-family: verdana">cd $ORACLE_HOME on DB Tier</span></li>
<li><span style="font-size: 85%; font-family: verdana">. (CONTEXT_NAME) .env to source the environment</span></li>
<li><span style="font-size: 85%; font-family: verdana">cd $ORACLE_HOME/appsutil/bin </span></li>
<li><span style="font-size: 85%; font-family: verdana">perl adbldxml.pl tier=db appsuser= appspasswd=<br />
Review the xml file generated in the step above. Ensure that all parameters and values are set correctly. </span></li>
<li><span style="font-size: 85%; font-family: verdana">Enable AutoConfig by running adconfig.sh using the above generated XML file as an input to generate the required configuration files such as tnsnames.ora, Listener.ora, etc..<br />
cd $ORACLE_HOME/appsutil/bin</span></li>
<li><span style="font-size: 85%"><span style="font-family: verdana">adconfig.sh contextfile= ( XML file name with full path) appspass= (apps Password)
<p /></span><span style="font-family: verdana"><strong>Reviewing AutoConfig Log files</strong> </span></p>
<p></span></li>
</ul>
<p><span style="font-family: verdana"><span style="font-size: 85%">AutoConfig logfiles are stored under the following directories:</span></span><span style="font-family: verdana"><span style="font-size: 85%"><strong>Application Tier</strong></p>
<p></span></span><span style="font-size: 85%; font-family: verdana">(APPL_TOP)/admin/(CONTEXT_NAME)/log/(MMDDhhmm)</span></p>
<p><span style="font-family: verdana"><span style="font-size: 85%"><strong>Database (<br />
</strong>RDBMS ORACLE_HOME)/appsutil/log/(CONTEXT_NAME)/(MMDDhhmm)</span></span><br />
<span style="font-size: 85%; font-family: verdana">There will be one log file per AutoConfig session, and it will contain exact information for every action that AutoConfig performed. </span><br />
<strong><span style="font-size: 85%; font-family: verdana">Rolling back an AutoConfig session</span></strong></p>
<p><span style="font-size: 85%; font-family: verdana">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: </span></p>
<p><span style="font-family: verdana"><span style="font-size: 85%"><strong>Application </strong><br />
(APPL_TOP)/admin/(CONTEXT_NAME)/out/(MMDDhhmm)<br />
</span></span><span style="font-family: verdana"><span style="font-size: 85%"><strong>Database<br />
</strong>(RDBMS ORACLE_HOME)/appsutil/out/(CONTEXT_NAME)/(MMDDhhmm)<br />
where::(MMDDhhmm) = (month, day, hour, minute of AutoConfig run) </span></span><br />
<span style="font-size: 85%; font-family: verdana">To roll back an AutoConfig session:<br />
restore.sh</span><span style="font-size: 85%; font-family: verdana"><span style="font-family: verdana"><span style="font-size: 85%"><strong>References<br />
</strong>Refer to Metalink Notes 165195.1 and 270519.1 for requisite patch levels</span></span><span style="font-size: 85%; font-family: verdana"><br />
</span></p>
<p></span> </p>
<div style="clear: both" /></div>
]]></content:encoded>
			<wfw:commentRss>http://orazone.com/blog/2007/09/06/autoconfig-indepth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 3.099 seconds -->
