<?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>KentW Limited &#187; RDBMS</title>
	<atom:link href="http://ltd.kentw.co.uk/tag/rdbms/feed/" rel="self" type="application/rss+xml" />
	<link>http://ltd.kentw.co.uk</link>
	<description>Appsblog 2.1</description>
	<lastBuildDate>Mon, 07 Jun 2010 19:55:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>R12 &#8211; OEL Login Script</title>
		<link>http://ltd.kentw.co.uk/technical/oel-r12-login-script-draft/</link>
		<comments>http://ltd.kentw.co.uk/technical/oel-r12-login-script-draft/#comments</comments>
		<pubDate>Fri, 08 May 2009 09:59:22 +0000</pubDate>
		<dc:creator>Kent</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[Oracle Enterprise Linux]]></category>
		<category><![CDATA[R12]]></category>
		<category><![CDATA[RDBMS]]></category>
		<category><![CDATA[Red Hat Enterprise Linux]]></category>

		<guid isPermaLink="false">http://ltd.kentw.co.uk/oracle/technology/oel-r12-login-script-draft/</guid>
		<description><![CDATA[Use this script (vis.sh) to initialise the Oracle environment.
I recommend you to start with this article to get R12 up and running.
Run as Oracle user:
$ . ./vis.sh
Note the dot and space in front of a script to assign variables to the current environment.




#!/bin/bash             [...]]]></description>
			<content:encoded><![CDATA[<p>Use this script (vis.sh) to initialise the Oracle environment.</p>
<p>I recommend you to start with <a href="http://ltd.kentw.co.uk/technical/r12-vis-installation/" target="_blank">this article</a> to get R12 up and running.</p>
<p>Run as Oracle user:</p>
<p>$ . ./vis.sh</p>
<p>Note the dot and space in front of a script to assign variables to the current environment.</p>
<table cellspacing="0" cellpadding="0" width="600" border="1">
<tbody>
<tr>
<td valign="top" width="600">
<p><font size="1">#!/bin/bash             <br />shopt -s expand_aliases              <br />ORACLE_SID=VIS              <br />ORACLE_HOST=`hostname -s`              <br />CONTEXT_NAME=${ORACLE_SID}_${ORACLE_HOST}              <br />TECH_HOME=/oracle/${ORACLE_SID}/db/tech_st/11.1.0              <br />APPS_HOME=/oracle/${ORACLE_SID}/apps/apps_st/appl              <br />alias techenv=&#8217;. ${TECH_HOME}/$CONTEXT_NAME.env&#8217;              <br />alias appsenv=&#8217;. ${APPS_HOME}/$CONTEXT_NAME.env&#8217;              <br />APPSENV=&quot;$APPS_HOME/$CONTEXT_NAME.env&quot;              <br />if [ ! -f $APPSENV ];              <br />then              <br />&#160;&#160; echo &quot;Environment file $APPSENV is not found&quot;              <br />&#160;&#160; exit              <br />else              <br />&#160;&#160; . $APPSENV              <br />fi              <br />for SCRIPT in $ADMIN_SCRIPTS_HOME/*.sh              <br />do              <br />&#160;&#160;&#160; BASE=`basename $SCRIPT | sed &#8217;s/.sh//g&#8217;`              <br />&#160;&#160;&#160; alias $BASE=&quot;$SCRIPT&quot;              <br />done              <br />TECHENV=&quot;$TECH_HOME/$CONTEXT_NAME.env&quot;              <br />if [ ! -f $TECHENV ];              <br />then              <br />&#160;&#160; echo &quot;Environment file $TECHENV is not found&quot;              <br />&#160;&#160; exit              <br />else              <br />&#160;&#160; . $TECHENV              <br />fi              <br />for SCRIPT in $TECH_HOME/appsutil/scripts/$CONTEXT_NAME/*.sh              <br />do              <br />&#160;&#160;&#160; BASE=`basename $SCRIPT | sed &#8217;s/.sh//g&#8217;`              <br />&#160;&#160;&#160; alias $BASE=&quot;$SCRIPT&quot;              <br />done</font></p>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://ltd.kentw.co.uk/technical/oel-r12-login-script-draft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>R12 &#8211; Managing</title>
		<link>http://ltd.kentw.co.uk/technical/r12-managing/</link>
		<comments>http://ltd.kentw.co.uk/technical/r12-managing/#comments</comments>
		<pubDate>Fri, 08 May 2009 09:57:01 +0000</pubDate>
		<dc:creator>Kent</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[e-Business Suite]]></category>
		<category><![CDATA[Oracle Enterprise Linux]]></category>
		<category><![CDATA[R12]]></category>
		<category><![CDATA[RDBMS]]></category>
		<category><![CDATA[Red Hat Enterprise Linux]]></category>

		<guid isPermaLink="false">http://ltd.kentw.co.uk/technical/r12-managing/</guid>
		<description><![CDATA[This article applies to:
EBS 12.0.4 on OEL5.3   EBS 12.1.1 on OEL5.4    RDBMS 10g on OEL5.3    RDBMS 11g on OEL5.3 and OEL5.4
I recommend you to start with this article to get R12 up and running.
Login
This is my own login script which you can see here.
Login to OEL as [...]]]></description>
			<content:encoded><![CDATA[<p>This article applies to:</p>
<p>EBS 12.0.4 on OEL5.3   <br />EBS 12.1.1 on OEL5.4    <br />RDBMS 10g on OEL5.3    <br />RDBMS 11g on OEL5.3 and OEL5.4</p>
<p>I recommend you to start with <a href="http://ltd.kentw.co.uk/technical/r12-vis-installation/" target="_blank">this article</a> to get R12 up and running.</p>
<h3>Login</h3>
<p>This is my own login script which you can <a href="http://ltd.kentw.co.uk/oracle/technology/oel-r12-login-script-draft/" target="_blank">see here</a>.</p>
<p>Login to OEL as Oracle and run login script:</p>
<p>$ . ./vis.sh</p>
<p>Ensure you also got the first dot so it is the current environment you are setting environment variables for.</p>
<h3>Startup</h3>
<p>Start database:</p>
<p>$ addbctl start</p>
<p>Start database listener:</p>
<p>$ addlnctl start VIS</p>
<p>Start application server and concurrent managers:</p>
<p>$ adstrtal apps/apps</p>
<h3>Shutdown</h3>
<p>Start with shutting down application server and concurrent managers:</p>
<p>$ adstpall apps/apps</p>
<p>Wait until all concurrent processes has stopped.</p>
<p>I use this commend to check for that:</p>
<p>$ ps –fed | grep VIS</p>
<p>When only the database processes are left then shut down the database:</p>
<p>$ addbctl stop</p>
<p>Then finally stop the listener:</p>
<p>$ addlnctl stop VIS</p>
<h3>Connect</h3>
<p>Enter the following URL in Firefox to connect to EBS</p>
<p><a href="http://localhost.localdomain:8000/OA_HTML/AppsLogin">http://localhost.localdomain:8000/OA_HTML/AppsLogin</a></p>
<p>Login as SYSADMIN and password SYSADMIN</p>
<h3>Modify Managers</h3>
<p>After installing R12 you have more than 200 oracle processes running – check with:</p>
<p>$ ps –fed | grep VIS | wc –l</p>
<p>The managers take up cpu and disk i/o.</p>
<p>Reduce the number of concurrent managers running to something like this:</p>
<p><a href="http://ltd.kentw.co.uk/wp-content/uploads/2009/05/image12.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://ltd.kentw.co.uk/wp-content/uploads/2009/05/image-thumb12.png" width="523" height="352" /></a></p>
<p>Use Define Concurrent Managers and reduce to workshift to 0 for non-essential managers.</p>
<p>Also reduce the Standard Manager to 2. You need a minimum of two of a program starts a sub process.</p>
<p>This should get you down to around 120 processes. The system should feel more responsive now.</p>
<p>If you need to work with Inventory or similar find the managers relating to this application and re-activate.</p>
<h3>Errors</h3>
<h4><strong>Remove Persistent Locks (error 204)</strong></h4>
<p>If the adstrtal.sh returns error 204 it may be due to locks. Use the following script rmlock.sh:</p>
<table border="1" cellspacing="0" cellpadding="0" width="600">
<tbody>
<tr>
<td valign="top" width="600">
<p><font size="1">#!/bin/bash              <br />rm -frv $INST_TOP/ora/10.1.3/j2ee/oacore/persistence/*               <br />rm -frv $INST_TOP/ora/10.1.3/j2ee/oafm/persistence/*               <br />rm -frv $INST_TOP/ora/10.1.3/j2ee/forms/persistence/*</font></p>
</td>
</tr>
</tbody>
</table>
<h4><strong>Timeouts (error 150)</strong></h4>
<p>If the adstrtal.sh returns error 150 it may be due to timeouts. This can happen for any of the subscripts called by adstrtal.sh especially if you try to start EBS within Virtualbox or you have a slow USB disk.</p>
<p>To remedy do the following:</p>
<p>$ vi $CONTEXT_FILE</p>
<p>Manually search and replace &gt;100&lt; with &gt;900&lt;</p>
<p>$ vi opmn/config/opmn.xml</p>
<p>Manually update timeout from &gt;600&lt; to &gt;1800&lt;</p>
<h4><strong>Internal Server Error (error 500)</strong></h4>
<p>If the browser comes out with:</p>
<p>500 Internal Server Error</p>
<p>…and much more…</p>
<p>Then the JSP files may be corrupt.</p>
<p>I fixed it by compiling them:</p>
<p><strong>Compile JSP:</strong></p>
<p>$ cd $FND_TOP/patch/115/bin    <br />$ perl ojspCompile.pl &#8211;compile &#8211;flush -p 2</p>
<h4><strong>Temp Tablespace Exceeded (ORA-01652)</strong></h4>
<p>The default temp tablespace datafile is around 1G which may be too small</p>
<p>In order to change this you can issue this command from SQL as SYSTEM:</p>
<p>sql&gt; alter database tempfile &#8216;/oracle/VIS/db/apps_st/data/temp1_01.dbf&#8217; autoextend on maxsize 10000m ;</p>
<p>Which enables the system to extend the file to 10Gb</p>
<p>Be sure to extend all tempfiles which on a standard VIS installation is temp1_01.dbf and temp2_01.dbf.</p>
<h4><strong>Unable to authenticate session</strong></h4>
<p>You might see this screen instead of the login screen.</p>
<p>If this happends in Firefox but IE works ok then try to clear the Firefox cache in \Tools\Clear Private Data and then ensure to also select Cookies.</p>
<h4><strong>Slow database connection</strong></h4>
<p>You might see Oracle Applications starting very slowly – like taking more than a half an hour. This could be due to slow sqlnet connection.</p>
<p>First open a command line and type:</p>
<p>$ sqlplus apps/apps</p>
<p>This should connect fast as it bypasses sqlnet. If not you have a CPU or IO performance problem.</p>
<p>Next try:</p>
<p>$ sqlplus apps/apps@VIS</p>
<p>If this is slow then you might have a slow sqlnet connection.</p>
<p>Check /etc/hosts:</p>
<p># Do not remove the following line, or various programs    <br /># that require network functionality will fail.     <br />127.0.0.1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; localhost.localdomain localhost     <br />::1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; localhost.localdomain localhost</p>
<p>I have experiences either the ::1 is missing or pointing to the wrong ip name. Ensure the two lines points to the same name. The problem arises as the new sqlnet has started to use ipv6 which is the ::1 entry.</p>
<p>In 12.0.4 ipv6 was not used but in 12.1.1 ipv6 was introduces maybe with RDBMS 11g</p>
<h4><strong>ORA-01031: insufficient privileges</strong></h4>
<p>If you get this during database startup on 11g on OEL 5.4 it may be because you have incorrect security setup.</p>
<p>This was not a problem in 10g but Oracle can’t stop changing things…this is also called progress!</p>
<p>1. Check /etc/passwd and ensure you got the following line:</p>
<p>oracle:x:500:500:oracle:/home/oracle:/bin/bash</p>
<p>This is normally set correct. The important bit is the default group – the second 500 value.</p>
<p>2. Check /etc/group and ensure you got the following lines:</p>
<p>bin:x:1:root,bin,daemon,oracle   <br />deamon:x:2:root,bin,daemon,oracle    <br />sys:x:3:root,bin,adm,oracle    <br />adm:x:4:root,adm,daemon,oracle    <br />oracle:x:500:oracle    <br />oinstall:x:501:oracle</p>
<p>So add oracle user not only to the usual oralce created groups but also to bin,daemon,sys and adm groups.</p>
]]></content:encoded>
			<wfw:commentRss>http://ltd.kentw.co.uk/technical/r12-managing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
