<?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>Read ERN &#187; red hat</title>
	<atom:link href="http://www.readern.com/tag/red-hat/feed" rel="self" type="application/rss+xml" />
	<link>http://www.readern.com</link>
	<description>生命不息折腾不止</description>
	<lastBuildDate>Sat, 31 Dec 2011 16:18:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[重发]RedHat Enterprise Linux 5(RHEL5)安装Oracle 11.1.0.6(11gR1)简要</title>
		<link>http://www.readern.com/install-oracle-11gr1-on-rhel5.html</link>
		<comments>http://www.readern.com/install-oracle-11gr1-on-rhel5.html#comments</comments>
		<pubDate>Tue, 28 Apr 2009 11:59:03 +0000</pubDate>
		<dc:creator>ern</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://www.readern.com/?p=42</guid>
		<description><![CDATA[原文刊载于2007年8月18日晚 新鲜出炉的Oracle 11.1.0.6的文档中对以下Linux发行版提供了 Asianux 2.0 Asianux 3.0 Oracle Enterprise Linux 4.0 Oracle Enterprise Linux 5.0 Red Hat Enterprise Linux 4.0 Red Hat Enterprise Linux 5.0 SUSE Enterprise Linux 10.0 估计现在用得最多就是RHEL4和5了。关于在RHEL5上安装Oracle11g，在ITPUB和fenng的Blog上已经有所说明，前者有具体截图，后者有简洁说明。我还是简单写个流程吧： 一、 安装RHEL5的时候要注意对硬盘空间的规划，根据Oracle的推荐，Oracle11g要求1G内存（如果达不到那就调小各种参数，反正自己测试用， 问题也不大），对应的swap就需要1.5G（如果小于512MB，那么swap=2*RAM，如果大于2G，那么swap=RAM，如果大于8G，那么 swap=0.75*RAM，512-2G之间的，1.5*RAM就OK了），/tmp需要400MB，安装企业版的Oracle需要3.47GB，默认 库又需要1.6GB。可以用grep MemTotal /proc/meminfo检查。如下可以临时转移/tmp到有空闲资源的地方： su &#8211; root mkdir /&#60;AnotherFilesystem&#62;/tmp chown root.root /&#60;AnotherFilesystem&#62;/tmp chmod 1777 /&#60;AnotherFilesystem&#62;/tmp export TEMP=/&#60;AnotherFilesystem&#62; # used by Oracle export [...]]]></description>
			<content:encoded><![CDATA[<p>原文刊载于<a href="http://yaoyp.spaces.live.com/blog/cns!AC5FD97B8A549660!1081.entry" target="_blank">2007年8月18日晚</a></p>
<p>新鲜出炉的<a href="http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.html" target="_blank">Oracle 11.1.0.6</a>的文档中对以下Linux发行版提供了<br />
Asianux 2.0<br />
Asianux 3.0<br />
Oracle Enterprise Linux 4.0<br />
Oracle Enterprise Linux 5.0<br />
Red Hat Enterprise Linux 4.0<br />
Red Hat Enterprise Linux 5.0<br />
SUSE Enterprise Linux 10.0<br />
估计现在用得最多就是RHEL4和5了。关于在RHEL5上安装Oracle11g，在<a href="http://www.itpub.net/showthread.php?threadid=831835&amp;pagenumber=" target="_blank">ITPUB</a>和<a href="http://www.dbanotes.net/database/rhel_5_oracle_11g.html" target="_blank">fenng的Blog</a>上已经有所说明，前者有具体截图，后者有简洁说明。我还是简单写个流程吧：<br />
一、 安装RHEL5的时候要注意对硬盘空间的规划，根据Oracle的推荐，Oracle11g要求1G内存（如果达不到那就调小各种参数，反正自己测试用， 问题也不大），对应的swap就需要1.5G（如果小于512MB，那么swap=2*RAM，如果大于2G，那么swap=RAM，如果大于8G，那么 swap=0.75*RAM，512-2G之间的，1.5*RAM就OK了），/tmp需要400MB，安装企业版的Oracle需要3.47GB，默认 库又需要1.6GB。可以用grep MemTotal /proc/meminfo检查。如下可以临时转移/tmp到有空闲资源的地方：<br />
su &#8211; root<br />
mkdir /&lt;AnotherFilesystem&gt;/tmp<br />
chown root.root /&lt;AnotherFilesystem&gt;/tmp<br />
chmod 1777 /&lt;AnotherFilesystem&gt;/tmp<br />
export TEMP=/&lt;AnotherFilesystem&gt; # used by Oracle<br />
export TMPDIR=/&lt;AnotherFilesystem&gt; # used by Linux programs like the linker “ld”<br />
结束后恢复：<br />
su &#8211; root<br />
rmdir /&lt;AnotherFilesystem&gt;/tmp<br />
unset TEMP<br />
unset TMPDIR</p>
<p><span id="more-42"></span></p>
<p>二、在正常安装完成RHEL5之后，首先建议停掉SELinux和防火墙，然后检查如下的包是否装全了（rpm -qa | grep 包名）<br />
binutils-2.17.50.0.6-2.el5<br />
compat-libstdc++-33-3.2.3-61<br />
elfutils-libelf-0.125-3.el5<br />
elfutils-libelf-devel-0.125<br />
glibc-2.5-12<br />
glibc-common-2.5-12<br />
glibc-devel-2.5-12<br />
gcc-4.1.1-52<br />
gcc-c++-4.1.1-52<br />
libaio-0.3.106<br />
libaio-devel-0.3.106<br />
libgcc-4.1.1-52<br />
libstdc++-4.1.1<br />
libstdc++-devel-4.1.1-52.e15<br />
make-3.81-1.1<br />
sysstat-7.0.0<br />
unixODBC-2.2.11<br />
unixODBC-devel-2.2.11<br />
三、增加用户：<br />
su &#8211; root<br />
groupadd dba<br />
groupadd oinstall<br />
useradd -c “Oracle Owner” -g oinstall -G dba oracle<br />
passwd oracle<br />
之后安装路径的路径，比如：<br />
su &#8211; root<br />
mkdir -p /u01/app/oracle<br />
chown -R oracle.oinstall /u01/app<br />
chmod -R 775 /u01/app<br />
四、对各类参数，fenng提供了一个简洁的说明，修改 /etc/sysctl.conf，追加如下内容：<br />
# First line:SEMMSL SEMMNS SEMOPM SEMMNI<br />
kernel.sem=1055 32000 100 128<br />
kernel.shmmax=2147483648<br />
kernel.shmall = 2097152<br />
net.ipv4.tcp_sack = 0<br />
net.ipv4.tcp_timestamps = 0<br />
net.ipv4.conf.default.rp_filter = 0<br />
net.core.optmem_max = 65535<br />
net.core.rmem_default = 4194304<br />
net.core.wmem_default = 262144<br />
net.core.rmem_max = 4194304<br />
net.core.wmem_max = 262144<br />
fs.file-max = 6553600<br />
net.ipv4.ip_local_port_range = 1024 65000<br />
上述值中fs.file-max一项，Oracle的建议是512 * PROCESSES。<br />
然后执行/sbin/sysctl -p激活（root用户）。<br />
五、修改Shell限制。<br />
在/etc/security/limits.conf中增加：<br />
oracle              soft    nproc   2047<br />
oracle              hard    nproc   16384<br />
oracle              soft    nofile  1024<br />
oracle              hard    nofile  65536<br />
在/etc/pam.d/login增加或创建：<br />
session    required     /lib/security/pam_limits.so  //对64位系统这条不需要<br />
session    required     pam_limits.so<br />
对Bourne、Bash或Korn shell，编辑/etc/profile增加：<br />
if [ $USER = "oracle" ]; then<br />
if [ $SHELL = "/bin/ksh" ]; then<br />
ulimit -p 16384<br />
ulimit -n 65536<br />
else<br />
ulimit -u 16384 -n 65536<br />
fi<br />
fi<br />
对C shell，编辑/etc/csh.login增加：<br />
if ( $USER == “oracle” ) then<br />
limit maxproc 16384<br />
limit descriptors 65536<br />
endif<br />
六、修改环境变量。选择好你的安装目录后，直接编辑上面提到的shell环境文件，增加类似如下，就可以了：<br />
export ORACLE_BASE=/u01/app/oracle  //安装路径<br />
export ORACLE_SID=orcl11<br />
export DISPLAY=你的IP:0.0(如果是在本地安装，不要加IP，直接DISPLAY=:0.0就可以了)<br />
完成安装以后还要加上：<br />
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1  //HOME路径<br />
export PATH=$PATH:$ORACLE_HOME/bin<br />
export LD_LIBRARY_PATH=$ORACLE_HOME/lib<br />
七、执行./runInstaller，大功告成。</p>
<hr />
<p><small>© ern for <a href="http://www.readern.com">Read ERN</a>, 2009. |
<a href="http://www.readern.com/install-oracle-11gr1-on-rhel5.html">Permalink</a> |
<a href="http://www.readern.com/install-oracle-11gr1-on-rhel5.html#comments">No comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.readern.com/install-oracle-11gr1-on-rhel5.html&title=[重发]RedHat Enterprise Linux 5(RHEL5)安装Oracle 11.1.0.6(11gR1)简要">del.icio.us</a>
<br/>
Post tags: <a href="http://www.readern.com/tag/oracle" rel="tag">Oracle</a>, <a href="http://www.readern.com/tag/red-hat" rel="tag">red hat</a>, <a href="http://www.readern.com/tag/%e5%ae%89%e8%a3%85" rel="tag">安装</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.readern.com/install-oracle-11gr1-on-rhel5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

