<?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; Linux</title>
	<atom:link href="http://www.database.fi/tag/linux/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>
		<item>
		<title>SELinux and Oracle – How to disable SELinux and make Oracle work</title>
		<link>http://www.database.fi/2010/03/selinux-and-oracle-%e2%80%93-how-to-disable-selinux-and-make-oracle-work/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=selinux-and-oracle-%25e2%2580%2593-how-to-disable-selinux-and-make-oracle-work</link>
		<comments>http://www.database.fi/2010/03/selinux-and-oracle-%e2%80%93-how-to-disable-selinux-and-make-oracle-work/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 21:43:32 +0000</pubDate>
		<dc:creator>pparkko</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Disable SELinux]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://www.database.fi/?p=16</guid>
		<description><![CDATA[If you encounter this error on Oracle it is a good possibility that you have SELinux enabled on your Linux box:
$> sqlplus / as sysdba
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
The quick way to get Oracle working is to use setenforce:
$> setenforce 0
$> sqlplus / as sysdba
SQL*Plus: [...]]]></description>
			<content:encoded><![CDATA[<p>If you encounter this error on Oracle it is a good possibility that you have SELinux enabled on your Linux box:</p>
<p>$> sqlplus / as sysdba<br />
sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied<br />
The quick way to get Oracle working is to use setenforce:</p>
<p>$> setenforce 0<br />
$> sqlplus / as sysdba<br />
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 13 15:31:35 2010<br />
Copyright (c) 1982, 2009, Oracle. All rights reserved.<br />
&#8230;<br />
However, this solution will only work until you reboot the server.<br />
To permanently fix this issue you need to modify the SELinux configuration file:</p>
<p>$> vi /etc/selinux/config<br />
Change:<br />
SELINUX=enforcing<br />
To:<br />
SELINUX=disabled<br />
You should also be able to use permissive mode on single instances, if you change to this mode BEFORE you install Oracle:<br />
SELINUX=permissive<br />
CRS will not like permissive mode, so this does not apply for RAC installations.<br />
Now SQL*Plus works:</p>
<p>$> sqlplus / as sysdba<br />
SQL*Plus: Release 11.2.0.1.0 Production on Wed Jan 13 15:31:35 2010<br />
Copyright (c) 1982, 2009, Oracle. All rights reserved.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.database.fi/2010/03/selinux-and-oracle-%e2%80%93-how-to-disable-selinux-and-make-oracle-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

