<?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>Mark Wagner&#039;s Oracle on Linux Site &#187; Oracle Installation</title>
	<atom:link href="http://oracle-on-linux.net/tag/oracle-installation/feed/" rel="self" type="application/rss+xml" />
	<link>http://oracle-on-linux.net</link>
	<description>Helping DBA&#039;s in a Linux World</description>
	<lastBuildDate>Thu, 20 Aug 2009 18:21:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>OS Prep for Oracle 11g installation &#8211; Redhat EL 5 or Centos 5.2 &#8211; 64bit Installation</title>
		<link>http://oracle-on-linux.net/2009/07/24/os-prep-for-oracle-11g-installation-redhat-el-5-or-centos-5-2-64bit-installation/</link>
		<comments>http://oracle-on-linux.net/2009/07/24/os-prep-for-oracle-11g-installation-redhat-el-5-or-centos-5-2-64bit-installation/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 17:56:09 +0000</pubDate>
		<dc:creator>Mark Wagner</dc:creator>
				<category><![CDATA[CentOS 5.2]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Oracle 11g]]></category>
		<category><![CDATA[Redhat EL 5]]></category>
		<category><![CDATA[Kernel Parameters]]></category>
		<category><![CDATA[Oracle Installation]]></category>

		<guid isPermaLink="false">http://oracle-on-linux.net/2009/07/24/os-prep-for-oracle-11g-installation-redhat-el-5-or-centos-5-2-64bit-installation/</guid>
		<description><![CDATA[OS Installation At least 1 GB to /tmp&#160; Current Server has 4 GB for /tmp Package Installation Follow the Oracle recommended practice of using a &#34;default RPMs&#34; installation. Accept the default software selection. Additional RPMs are required to run Oracle Database 11g Release 1. These will be installed later. Disable Firewall Select Disabled SELinux. Verify [...]]]></description>
			<content:encoded><![CDATA[<p><b>OS Installation</b></p>
<ol>
<li>At least 1 GB to /tmp&#160; Current Server has 4 GB for /tmp </li>
<li>Package Installation
<ul>
<li>Follow the Oracle recommended practice of using a &quot;default RPMs&quot; installation. Accept the default software selection. </li>
<li>Additional RPMs are required to run Oracle Database 11<i>g</i> Release 1. These will be installed later. </li>
</ul>
</li>
<li>Disable Firewall </li>
<li>Select Disabled SELinux. </li>
</ol>
<p><b></b></p>
<p><b>Verify &amp; Configure </b><b>OS Installation</b><b>&#160; -&#160; </b><b>64-bit (x86_64) Installations</b></p>
<p>Required kernel version: 2.6.18 This kernel, or any of the kernels supplied in updates, works with Oracle Database 11<i>g</i> Release 1 . </p>
<p>Check your kernel version by running the following command: </p>
<p>uname -rm    <br />Ex:     <br /># uname -rm     <br />2.6.18-8.el5 x86_64</p>
<p>Required package versions (or later):</p>
<ul>
<li>binutils-2.17.50.0.6 </li>
<li>compat-libstdc++-33-3.2.3 </li>
<li>compat-libstdc++-33-3.2.3 (32 bit) </li>
<li>elfutils-libelf-0.125 </li>
<li>elfutils-libelf-devel-0.125 </li>
<li>gcc-4.1.1 </li>
<li>gcc-c++-4.1.1 </li>
<li>glibc-2.5-12 </li>
<li>glibc-2.5-12 (32 bit) </li>
<li>glibc-common-2.5 </li>
<li>glibc-devel-2.5 </li>
<li>glibc-devel-2.5-12 (32 bit) </li>
<li>libaio-0.3.106 </li>
<li>libaio-0.3.106 (32 bit) </li>
<li>libaio-devel-0.3.106 </li>
<li>libgcc-4.1.1 </li>
<li>libgcc-4.1.1 (32 bit) </li>
<li>libstdc++-4.1.1 </li>
<li>libstdc++-4.1.1 (32 bit) </li>
<li>libstdc++-devel 4.1.1 </li>
<li>make-3.81 </li>
<li>sysstat-7.0.0 </li>
</ul>
<p>Note that there are a number of packages where both the 64-bit and 32-bit RPMs must be installed. Fortunately, both should be provided on the 64-bit Linux installation media. </p>
<p>If you&#8217;ve performed a &quot;default RPMs&quot; install as suggested by Oracle, there are still some required packages that must be installed:</p>
<ul>
<li>compat-libstdc++-33-3.2.3 </li>
<li>compat-libstdc++-33-3.2.3 (32 bit) </li>
<li>elfutils-libelf-devel-0.125 </li>
<li>gcc-4.1.1 </li>
<li>gcc-c++-4.1.1 </li>
<li>glibc-devel-2.5 </li>
<li>glibc-devel-2.5-12 (32 bit) </li>
<li>libaio-devel-0.3.106 </li>
<li>libstdc++-devel 4.1.1 </li>
<li>sysstat-7.0.0 </li>
</ul>
<p>To install the remaining packages, mount the RedHat Enterprise Linux media and move to the directory containing the RPMs.</p>
<p>Some required packages are dependent upon other packages, so the dependant packages must be installed as well. Login as <b>root</b> and run the following commands to install the remaining required packages and their dependent packages:</p>
<p>Using Yum</p>
<p>yum install elfutils-libelf-devel*.x86_64.rpm glibc-devel-2* gcc-4*.x86_64.rpm gcc-c++-4*.x86_64.rpm libstdc++-devel-4*.x86_64.rpm glibc-headers*.x86_64.rpm libgomp*.x86_64.rpm compat-libstdc++-33* libaio-devel*.x86_64.rpm sysstat*</p>
<p>Using installation CDs</p>
<p>Mount CD 2</p>
<p>&#160;&#160;&#160; mount -t iso9660 -r /dev/cdrom /media    <br />&#160;&#160;&#160; cd /media/Server</p>
<p>&#160;&#160;&#160; rpm -ivh elfutils-libelf-devel*.x86_64.rpm glibc-devel-2* gcc-4*.x86_64.rpm gcc-c++-4*.x86_64.rpm libstdc++-devel-4*.x86_64.rpm glibc-headers*.x86_64.rpm libgomp*.x86_64.rpm</p>
<p>&#160;&#160;&#160; Ex:    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; # rpm -ivh elfutils-libelf-devel*.x86_64.rpm glibc-devel-2* gcc-4*.x86_64.rpm gcc-c++-4*.x86_64.rpm libstdc++-devel-4*.x86_64.rpm glibc-headers*.x86_64.rpm libgomp*.x86_64.rpm     <br />warning: elfutils-libelf-devel-0.125-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Preparing&#8230; ########################################### [100%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1:glibc-headers ########################################### [ 11%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2:glibc-devel ########################################### [ 22%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 3:libgomp ########################################### [ 33%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 4:gcc ########################################### [ 44%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 5:libstdc++-devel ########################################### [ 56%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 6:gcc-c++ ########################################### [ 67%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 7:glibc-devel ########################################### [ 78%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 8:elfutils-libelf-devel-s########################################### [ 89%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 9:elfutils-libelf-devel ########################################### [100%]     <br />&#160;&#160;&#160; cd /     <br />&#160;&#160;&#160; eject     <br />Mount CD 3</p>
<p>&#160;&#160;&#160; mount -t iso9660 -r /dev/cdrom /media    <br />&#160;&#160;&#160; cd /media/Server</p>
<p>&#160;&#160;&#160; rpm -ivh compat-libstdc++-33* libaio-devel*.x86_64.rpm</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Ex:    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; # rpm -ivh compat-libstdc++-33* libaio-devel*.x86_64.rpm     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; warning: compat-libstdc++-33-3.2.3-61.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Preparing&#8230; ########################################### [100%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1:libaio-devel ########################################### [ 33%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 2:compat-libstdc++-33 ########################################### [ 67%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 3:compat-libstdc++-33 ########################################### [100%]</p>
<p>&#160;&#160;&#160; cd /    <br />&#160;&#160;&#160; eject</p>
<p>Mount CD 4</p>
<p>&#160;&#160;&#160; mount -t iso9660 -r /dev/cdrom /media    <br />&#160;&#160;&#160; cd /media/Server</p>
<p>&#160;&#160;&#160; rpm -ivh sysstat*</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; Ex:    <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; # rpm -ivh sysstat*     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; warning: sysstat-7.0.0-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Preparing&#8230; ########################################### [100%]     <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; 1:sysstat ########################################### [100%]</p>
<p>&#160;&#160;&#160; cd /    <br />&#160;&#160;&#160; eject</p>
<p>To verify that the required packages have been installed on your system, run the following command: </p>
<p>rpm -q &#8211;queryformat &quot;%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n&quot; binutils \    <br />compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc \     <br />glibc-common glibc-devel-2.5 libaio libaio-devel libgcc libstdc++ libstdc++-devel \     <br />make sysstat</p>
<p>&#160;&#160;&#160; Ex:    <br />&#160;&#160;&#160; # rpm -q &#8211;queryformat &quot;%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n&quot; binutils \</p>
<p>&#160;&#160;&#160; &gt; compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc \</p>
<p>&#160;&#160;&#160; &gt; glibc-common glibc-devel-2.5 libaio libaio-devel libgcc libstdc++ libstdc++-devel \</p>
<p>&#160;&#160;&#160; &gt; make sysstat</p>
<p>&#160;&#160;&#160; binutils-2.17.50.0.6-2.el5 (x86_64)</p>
<p>&#160;&#160;&#160; compat-libstdc++-33-3.2.3-61 (i386)</p>
<p>&#160;&#160;&#160; compat-libstdc++-33-3.2.3-61 (x86_64)</p>
<p>&#160;&#160;&#160; elfutils-libelf-0.125-3.el5 (x86_64)</p>
<p>&#160;&#160;&#160; elfutils-libelf-devel-0.125-3.el5 (x86_64)</p>
<p>&#160;&#160;&#160; gcc-4.1.1-52.el5 (x86_64)</p>
<p>&#160;&#160;&#160; gcc-c++-4.1.1-52.el5 (x86_64)</p>
<p>&#160;&#160;&#160; glibc-2.5-12 (i686)</p>
<p>&#160;&#160;&#160; glibc-2.5-12 (x86_64)</p>
<p>&#160;&#160;&#160; glibc-common-2.5-12 (x86_64)</p>
<p>&#160;&#160;&#160; glibc-devel-2.5-12 (x86_64)</p>
<p>&#160;&#160;&#160; glibc-devel-2.5-12 (i386)</p>
<p>&#160;&#160;&#160; libaio-0.3.106-3.2 (x86_64)</p>
<p>&#160;&#160;&#160; libaio-0.3.106-3.2 (i386)</p>
<p>&#160;&#160;&#160; libaio-devel-0.3.106-3.2 (x86_64)</p>
<p>&#160;&#160;&#160; libgcc-4.1.1-52.el5 (x86_64)</p>
<p>&#160;&#160;&#160; libgcc-4.1.1-52.el5 (i386)</p>
<p>&#160;&#160;&#160; libstdc++-4.1.1-52.el5 (x86_64)</p>
<p>&#160;&#160;&#160; libstdc++-4.1.1-52.el5 (i386)</p>
<p>&#160;&#160;&#160; libstdc++-devel-4.1.1-52.el5 (x86_64)</p>
<p>&#160;&#160;&#160; make-3.81-1.1 (x86_64)</p>
<p>&#160;&#160;&#160; sysstat-7.0.0-3.el5 (x86_64)</p>
<p>To install support for ODBC the required packages have to be installed on your system.</p>
<p>unixODBC-2.2.11 (32 bit) or later</p>
<p>unixODBC-devel-2.2.11 (64 bit) or later</p>
<p>unixODBC-2.2.11 (64 bit) or later</p>
<p>Use yum to install if Needed</p>
<p># yum install unixODBC*</p>
<p><b>Create Oracle Account</b></p>
<p>Create Oracle groups and user account:    <br />In the same terminal window as root do the following:</p>
<p>/usr/sbin/groupadd oinstall    <br />/usr/sbin/groupadd dba     <br />/usr/sbin/useradd -m -g oinstall -G dba oracle     <br />id oracle</p>
<p>Expected output:    <br />uid=501(Oracle) gid=501(oinstall) groups=501(oinstall),502(dba)</p>
<p>Set the password for Oracle:</p>
<p>$ passwd oracle    <br />Changing password for user oracle.     <br />New password:     <br />Retype new password:     <br />passwd: all authentication tokens updated successfully.</p>
<p><b></b></p>
<p><b>Set Kernel Parameters</b></p>
<p>Cut and paste the following commands while logged in as root into a script and run it or directly at a terminal prompt: </p>
<p>cat &gt;&gt; /etc/sysctl.conf &lt;&lt;EOF    <br />kernel.shmall = 2097152     <br />kernel.shmmax = 2147483648</p>
<p>kernel.shmmni = 4096    <br />kernel.sem = 250 32000 100 128     <br />fs.file-max = 65536     <br />net.ipv4.ip_local_port_range = 1024 65000     <br />net.core.rmem_default = 4194304     <br />net.core.wmem_default = 262144     <br />net.core.rmem_max = 4194304</p>
<p>net.core.wmem_max = 1048576    <br />EOF     <br />/sbin/sysctl -p</p>
<p>The output should be:    <br />net.ipv4.ip_forward = 0     <br />net.ipv4.conf.default.rp_filter = 1     <br />net.ipv4.conf.default.accept_source_route = 0     <br />kernel.sysrq = 0     <br />kernel.core_uses_pid = 1     <br />kernel.shmall = 2097152     <br />kernel.shmmax = 2147483648     <br />kernel.shmmni = 4096     <br />kernel.sem = 250 32000 100 128     <br />fs.file-max = 65536     <br />net.ipv4.ip_local_port_range = 1024 65000     <br />net.core.rmem_default = 4194304     <br />net.core.wmem_default = 262144     <br />net.core.rmem_max = 4194304</p>
<p>net.core.wmem_max = 1048576</p>
<p>Next run the following commands as root to verify your settings: </p>
<p>/sbin/sysctl -a | egrep “shm|sem|file-max|ip_local_port_range| rmem_default|rmem_max|wmem_default|wmem_max”</p>
<p>The output should be:</p>
<p>net.ipv4.ip_local_port_range = 1024 65000    <br />net.core.rmem_default = 4194304     <br />net.core.wmem_default = 262144     <br />net.core.rmem_max = 4194304     <br />net.core.wmem_max = 1048576     <br />vm..hugetlb_shm_group = 0     <br />kernel.sem = 250 32000 100 128     <br />kernel.shmmni = 4096     <br />kernel.shmall = 2097152     <br />kernel.shmmax = 2147483648     <br />fs.file-max = 65536</p>
<p><b></b></p>
<p><b>Create Directories</b></p>
<p>Now create directories to store the Oracle software and the database files (again as root in the same window):</p>
<p>mkdir -p /u01/app/oracle    <br />chown -R oracle:oinstall /u01/app     <br />chmod -R 775 /u01/app</p>
<p><b></b></p>
<p><b>Set Shell Limits for Oracle User</b></p>
<p>An easy way to set these values is to create a quick script in /tmp. Cut and paste the following commands while logged in as root into a script and run it:</p>
<p>cat &gt;&gt; /etc/security/limits.conf &lt;&lt;EOF1    <br />oracle soft nproc 2047     <br />oracle hard nproc 16384     <br />oracle soft nofile 1024     <br />oracle hard nofile 65536     <br />EOF1     <br />cat &gt;&gt; /etc/pam.d/login &lt;&lt;EOF2     <br />session required /lib/security/pam_limits.so     <br />EOF2     <br />cat &gt;&gt; /etc/profile &lt;&lt;EOF3     <br />if [ \$USER = &quot;oracle&quot; ]; then     <br />if [ \$SHELL = &quot;/bin/ksh&quot; ]; then     <br />ulimit -p 16384     <br />ulimit -n 65536     <br />else ulimit -u 16384 -n 65536     <br />fi     <br />umask 022     <br />fi     <br />EOF3     <br />cat &gt;&gt; /etc/csh.login &lt;&lt;EOF4     <br />if ( \$USER == &quot;oracle&quot; ) then     <br />limit maxproc 16384     <br />limit descriptors 65536     <br />umask 022     <br />endif     <br />EOF4</p>
<p>Now the OS is ready for the Oracle Software installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://oracle-on-linux.net/2009/07/24/os-prep-for-oracle-11g-installation-redhat-el-5-or-centos-5-2-64bit-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

