<?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; SELinux</title>
	<atom:link href="http://www.database.fi/tag/selinux/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>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>

