<?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>DevOnLinux &#187; oracle</title>
	<atom:link href="http://blog.devonlinux.net/tag/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.devonlinux.net</link>
	<description>ICT solutions that work</description>
	<lastBuildDate>Tue, 02 Feb 2010 23:54:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Install Oracle 10.2.0 x64 on Centos 5.2 AMD64</title>
		<link>http://blog.devonlinux.net/2008/10/28/install-oracle-1020-x64-on-centos-52-amd64/</link>
		<comments>http://blog.devonlinux.net/2008/10/28/install-oracle-1020-x64-on-centos-52-amd64/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 22:09:35 +0000</pubDate>
		<dc:creator>ed0t</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://blog.devonlinux.net/2008/10/28/install-oracle-1020-x64-on-centos-52-amd64/</guid>
		<description><![CDATA[In the past few days i&#8217;ve spent my time at work setting up a Linux server with Oracle database. Since i have had some problems i have decided to write how to install it without any trouble. In our company we have bought two Dell servers QuadCore with 4Gb of Ram and 2Tb of hard [...]]]></description>
			<content:encoded><![CDATA[<p align="left"><img src="http://blog.devonlinux.net/wp-content/uploads/2008/10/oracleandcentos.jpg" alt="Oracle and Centos" style="border: 0px none " align="right" />In the past few days i&#8217;ve spent my time at work setting up a Linux server with Oracle database. Since i have had some problems i have decided to write how to install it without any trouble.</p>
<p>In our company we have bought two Dell servers QuadCore with 4Gb of Ram and 2Tb of hard disk. We have decided to use one of them as a powerful machine to execute some automatic tests on a complex project that requires a lot of computation.</p>
<p>Since the project uses Oracle database, Oracle Warehouse Builder and Oracle Data Integrator, available for Linux and Windows both, i have decided to setup a Linux machine instead of a Windows one to get the more benefits i could.</p>
<p>I admit, i like Ubuntu too much, so my first try has been an Ubuntu Server 8.04 installation, but i&#8217;ve had lots of problem during the installation of the database.</p>
<p>So i&#8217;ve decided to switch to a more supported Linux version and the solution has been Centos 5.2 AMD64.<span id="more-18"></span></p>
<p>I will not explain how to install Centos neither  Java, there are already a lot of complete tutorial.</p>
<p>Attention, i assume you are root, otherwise use sudo before each command. When some operations must be executed by another user it will be written.</p>
<p>First of all you have to edit a file to let Centos appear like a RedHat system. To do this edit the file <strong>/etc/redhat-release</strong>, delete the only line inside the file and write: <strong>redhat-4</strong>.</p>
<pre>vim /etc/redhat-release</pre>
<p>Then add the following lines to the file <strong>/etc/security/limits.conf</strong> :</p>
<pre>
*               soft      nproc    2047
*               hard      nproc    16384
*               soft      nofile   1024
*               hard      nofile   65536</pre>
<p>and add the following line (if it is not already there) to the file : <strong>/etc/pam.d/login</strong>:</p>
<pre>session    required     /lib/security/pam_limits.so</pre>
<p>Now it&#8217;s time to install some packages needed for the installation. So using the Add/Remove Application Tool or simply the <strong>yum</strong> command install the following packages:</p>
<pre>setarch-2.0-1.1x86_64
make-3.81-3.el5.x86_64
glibc-2.5-24.x86_64
glibc-devel-2.5-24.x86_64
glibc-headers-2.5-24.x86_64
glibc-2.5-24.i686
glibc-devel-2.5-24.i386
libaio-0.3.105-3.2.i386
libaio-0.3.105-3.2.x86_64
compat-db-4.2.52-5.1.i386
compat-db-4.2.52-5.1.x86_64
compat-libstdc++-33-3.2.3-61.i386
compat-libstdc++-33-3.2.3-61.x86_64
compat-gcc-34-3.4.6-4.x86_64
compat-gcc-34-c++-3.4.6-4.x86_64
gcc-4.1.2-42.el5.x86_64
gcc-c++-4.1.2-42.el5.x86_64
libXp-1.0.0-8.1.el5.x86_64
libXp-1.0.0-8.1.el5.i386
openmotif-2.3.0-0.5.el5.i386
openmotif-2.3.0-0.5.el5.x86_64
libstdc++-4.1.2-42.el5.x86_64
libstdc++-devel-4.1.2-42.el5.x86_64
libstdc++-4.1.2-42.el5.i386
kernel-headers-2.6.18-92.1.6.el5.x86_64
gtk+-1.2.10-56.el5.x86_64
libpng-1.2.10-7.1.el5_0.1-x86_64
gdk-pixbuf-0.22.0-25.el5.x86_64
giflib-4.1.3-7.1.el5.1.x86_64</pre>
<p>Now it&#8217;s time to add some configuration lines in <strong>/etc/sysctl.conf</strong> file:</p>
<pre>kernel.shmmni = 4096
#semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144</pre>
<p>Then reload all parameters using this command:</p>
<pre>/sbin/sysctl -p</pre>
<p>Now we have to create some groups and a user, the owner of the Oracle database:</p>
<pre>groupadd oinstallgroupadd dba
groupadd oper
useradd -g oinstall -G dba oracle
passwd oracle
mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle.oinstall /u01
mkdir -p /u02/oradata
chown -R oracle.oinstall /u02</pre>
<p>Well, now we have to add some environment variables for the user just created: oracle.</p>
<pre>su - oracle
vim ~/.bashrc</pre>
<p>And add the following lines:</p>
<pre>ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH; export PATH
export DISPLAY=:0.0
JAVA_HOME=/opt/jdk1.6.0_10/; export JAVA_HOME</pre>
<p>We are almost at the end. Extract the archive, if you have not already do this:</p>
<pre>gunzip 10201_database_linux_x86_64.cpio.gzip
cpio -idmv &lt; 10201_database_linux_x86_64.cpio</pre>
<p>Now turn back to root user to execute this last command:</p>
<pre>su - root
xhost +</pre>
<p>At the end switch to oracle user and run the installer:</p>
<pre>su - oracle
cd pathToYourOracleInstallationDirectory
./runInstaller</pre>
<p>Follow instructions provided with the GUI installer and enjoy Oracle 10.2.0 x64 on your Centos 5.2 AMD64!</p>
<p>To perform a correct installation i have followed these amazing guides:</p>
<p><a href="http://bderzhavets.blogspot.com/2007/04/installing-oracle-10.html" title="Read this tutorial">http://bderzhavets.blogspot.com/2007/04/installing-oracle-10.html</a></p>
<p><a href="http://www.puschitz.com/InstallingOracle10g.shtml" title="Read this tutorial">http://www.puschitz.com/InstallingOracle10g.shtml</a></p>
<p>For the second one especially the section titled : <strong>10g R2 on RHEL AS 4 (x86_64)</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.devonlinux.net/2008/10/28/install-oracle-1020-x64-on-centos-52-amd64/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.584 seconds -->
