<?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>Database.fi &#187; Automatic start</title>
	<atom:link href="http://www.database.fi/tag/automatic-start/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.database.fi</link>
	<description>Database Performance &#38; Disaster Solutions</description>
	<lastBuildDate>Tue, 25 Oct 2011 07:43:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatic start of Oracle database on Linux</title>
		<link>http://www.database.fi/2010/03/automatic-start-of-oracle-database-on-linux/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=automatic-start-of-oracle-database-on-linux</link>
		<comments>http://www.database.fi/2010/03/automatic-start-of-oracle-database-on-linux/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 21:46:47 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Auto-start]]></category>
		<category><![CDATA[Automatic start]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=18</guid>
		<description><![CDATA[In certain cases Oracle does not start automatically on Linux after installation.
To fix this, you need to do these steps:
Modify oratab
vi /etc/oratab
change the “N” at the end => “Y”
For example:
From: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:N
To: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y
Create a dbora file under /etc/init.d/
vi /etc/init.d/dbora
#!/bin/sh
# chkconfig: 345 99 10
# description: Automatic Oracle database start-stop script.
# Set ORA_OWNER to the user id of [...]]]></description>
			<content:encoded><![CDATA[<p>In certain cases Oracle does not start automatically on Linux after installation.<br />
To fix this, you need to do these steps:<br />
Modify oratab<br />
vi /etc/oratab<br />
change the “N” at the end => “Y”<br />
For example:<br />
From: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:N<br />
To: orcl:/u01/app/oracle/product/11.2.0/dbhome_1:Y<br />
Create a dbora file under /etc/init.d/<br />
vi /etc/init.d/dbora<br />
#!/bin/sh<br />
# chkconfig: 345 99 10<br />
# description: Automatic Oracle database start-stop script.<br />
# Set ORA_OWNER to the user id of the owner of the<br />
# Oracle database in ORA_HOME.<br />
ORA_HOME=/u01/app/oracle/product/11.2.0/dbhome_1<br />
ORA_OWNER=oracle<br />
if [ ! -f $ORA_HOME/bin/dbstart ]<br />
then<br />
echo &#8220;Oracle startup: cannot start&#8221;<br />
exit<br />
fi<br />
case &#8220;$1&#8243; in<br />
&#8217;start&#8217;)<br />
# Start Oracle databases:<br />
su &#8211; $ORA_OWNER -c &#8220;$ORA_HOME/bin/dbstart $ORA_HOME&#8221;<br />
touch /var/lock/subsys/dbora<br />
;;<br />
&#8217;stop&#8217;)<br />
# Stop Oracle databases:<br />
su &#8211; $ORA_OWNER -c &#8220;$ORA_HOME/bin/dbshut $ORA_HOME&#8221;<br />
rm -f /var/lock/subsys/dbora<br />
;;<br />
esac<br />
If you modify the script above, remember to keep the 3 first commented lines (shell, chkconfig and description).<br />
Change the privileges to appropriate level with:<br />
chmod 750 /etc/init.d/dbora<br />
Now add the script to chkconfig:<br />
chkconfig &#8211;add dbora<br />
You can check this with:</p>
<p>$> chkconfig &#8211;list | grep db<br />
dbora 0:off 1:off 2:off 3:on 4:on 5:on 6:off<br />
You’re done, verify after next reboot:<br />
ps -ef | grep smon</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2010/03/automatic-start-of-oracle-database-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

