<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Yuval Ararat &#187; Oracle</title>
	<atom:link href="http://www.yuvalararat.com/category/oracle/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yuvalararat.com</link>
	<description>a web geek</description>
	<lastBuildDate>Sun, 16 May 2010 11:50:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.5.1" -->
	<copyright>Copyright &#xA9; 2010 Yuval Ararat </copyright>
	<managingEditor>ararat01@hotmail.com</managingEditor>
	<webMaster>ararat01@hotmail.com</webMaster>
	<category>posts</category>
	<ttl>1440</ttl>
	<image>
		<url>http://www.yuvalararat.com/wp-images/yuval_pic_144X144.JPG</url>
		<title>Yuval Ararat &#187; Oracle</title>
		<link>http://www.yuvalararat.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Web geek on a mission from ######### (censured by the Australian labor government)</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author></itunes:author>
	<itunes:owner>
		<itunes:name></itunes:name>
		<itunes:email>ararat01@hotmail.com</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.yuvalararat.com/wp-images/yuval_pic_144X144.JPG" />
		<item>
		<title>Installing Oracle 10gR2 on Ubuntu</title>
		<link>http://www.yuvalararat.com/2008/09/installing-oracle-10gr2-on-ubuntu/</link>
		<comments>http://www.yuvalararat.com/2008/09/installing-oracle-10gr2-on-ubuntu/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 06:37:20 +0000</pubDate>
		<dc:creator>yuval</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[access control list]]></category>
		<category><![CDATA[database server]]></category>
		<category><![CDATA[free software]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Open Terminal]]></category>
		<category><![CDATA[shared memory]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[United States]]></category>
		<category><![CDATA[X server]]></category>
		<category><![CDATA[x windows]]></category>

		<guid isPermaLink="false">http://www.ararat.org.il/?p=387</guid>
		<description><![CDATA[Installing Oracle 10gR2 on Ubuntu]]></description>
			<content:encoded><![CDATA[<p></p><p>Currently i am trying to put a VCM Portal self sustaining installation on Ubuntu. i have tried it with the Oracle eXpress but had some problem with missing librarys i decided to go with the normal oracle installation the next install run.<br />
I have done the installation and now i have an Ubuntu running Oracle 10.2.0.3 10gR2.<br />
Hope this one is helpful to you guys.</p>
<h3>Step One</h3>
<p>To make this installation a success we need to have an X server. so on your desktop computer, if you run Linux, allow X connections from your (soon-to-be) database server to your desktop. If you happen to be using Ubuntu Desktop for this installation then:<br />
Open Terminal and type <code>xhost +[IP of your pc].</code><br />
If you are running Ubuntu desktop and installing on an Ubuntu server then go to System -> Administration -> Login Window, select the Security tab and uncheck the box next to ‚ÄúDeny TCP connections to the Xserver‚Äù. You will have to restart your Xserver for this change to take effect. To do that you need to logout and login again.<br />
Call in Terminal on your Desktop after login was completed (replace 192.168.x.y with your ip)<br />
Run in Terminal:<br />
<code>xhost +192.168.x.y</code><br />
you should see this message appearing after the call<br />
<code>192.168.x.y being added to access control list</code></p>
<h3>Step Two</h3>
<p>Upgrade all packages.<br />
Run in Terminal:<br />
<code>sudo su ‚Äì</code><br />
*(sudo su &#8211; effectively makes us root with a new/empty session)<br />
Run in Terminal:<br />
<code>apt-get update</code><br />
The following response (short version removed many lines since the size was over whelming) should appear after you have called the update line:<br />
<code>Hit http://security.ubuntu.com hardy-security Release.gpg
Ign http://security.ubuntu.com hardy-security/main Translation-en_US
Hit http://us.archive.ubuntu.com hardy Release.gpg
Ign http://us.archive.ubuntu.com hardy/main Translation-en_US
(...)
ldconfig deferred processing now taking place</code><br />
You can also get all this done remotely from your Desktop (if running linux as your desktop and configured the X Server to be your host) using SSH. All you need to do is connect to your system.<br />
Run in Terminal:<br />
<code>ssh user@192.168.x.y</code><br />
it will ask for password,<br />
<code>user@192.168.x.y's password:</code><br />
Type it in and you are done. The response should look like this:<br />
<code>Linux hardy 2.6.24-16-server #1 SMP Thu Apr 10 13:58:00 UTC 2008 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Thu May  1 21:45:05 2008 from 192.168.w.z
user@hardy:~$</code><br />
Run also the <code>apt-get dist-upgrade</code> to verify you don‚Äôt need to installs a new kernel version.<br />
Run in Terminal:<br />
<code>apt-get dist-upgrade</code><br />
During the installation you might get a few questions regarding the download of sizeable install files. Please accept them.<br />
If it did install a new kernel it‚Äôs a good idea to reboot the box before proceeding.<br />
Issue the <code>reboot</code> command as root.</p>
<h3>Step Three</h3>
<p>Once the machine is back up, you should log in again and install the required packages for the installation of oracle<br />
The packages are:</p>
<ul>
<li>build-essential</li>
<li>libaio1</li>
<li>gawk</li>
<li>ksh</li>
<li>libmotif3</li>
<li>alien</li>
<li>libtool</li>
<li>lsb-rpm</li>
</ul>
<p>To do so type in, after login, the following line as root:<br />
<code>apt-get install build-essential libaio1 gawk ksh libmotif3 alien libtool lsb-rpm</code><br />
During the installation you might get a few questions regarding the download of sizeable install files. As usual please accept them</p>
<h3>Step Four</h3>
<p>After all those packages and updates are installed, you need to change a few configurations. First of all, change the default replacement for sh from dash to bash.<br />
Do not skip this step! If skipped you may get strange errors during install.<br />
Run in Terminal:<br />
<code>cd /bin
ls -l /bin/sh</code><br />
Verify that the response has this link in it:<br />
<code>lrwxrwxrwx 1 root root 4 2008-09-03 11:59 /bin/sh -&gt; dash</code><br />
Run in Terminal:<br />
<code>ln -sf bash /bin/sh
ls -l /bin/sh</code><br />
Verify that the response has changed the link in it:<br />
<code>lrwxrwxrwx 1 root root 4 2008-09-03 12:01 /bin/sh -&gt; bash</code><br />
<strong>Step Five</strong><br />
Now we need to add a few things to the system. We will start with adding a user for the oracle DB called ‚Äúoracle‚Äù. Before adding oracle to the system we need to create a few groups for the install:<br />
Run in Terminal:<br />
<code>cd ~
pwd</code><br />
The response should look like this:<br />
<code>/root</code><br />
Add the oinstall group for the installation procedure:<br />
Run in Terminal:<br />
<code>addgroup oinstall</code><br />
The response should look like this:<br />
<code>Adding group `oinstall' (GID 1001) ...
Done.</code><br />
Add the dba group for the installation procedure:<br />
Run in Terminal:<br />
<code>addgroup dba</code><br />
The response should look like this:<br />
<code>Adding group `dba' (GID 1002) ...
Done.</code><br />
Add the nobody group for the installation procedure:<br />
Run in Terminal:<br />
<code>addgroup nobody</code><br />
The response should look like this:<br />
<code>Adding group `nobody' (GID 1003) ...
Done.</code><br />
Modify nobody user to join the new group so the Oracle installer will not get confused.<br />
Run in Terminal:<br />
<code>usermod -g nobody nobody</code><br />
Add the oracle user and associate it with the new groups.<br />
Run in Terminal:<br />
<code>useradd -g oinstall -G dba -p password -d /home/oracle -s /bin/bash oracle</code><br />
Now set the oracle user password.<br />
Run in Terminal:<br />
<code>passwd -l oracle</code><br />
Type in the desired password, the response to it should look like this:<br />
Password changed.<br />
Create the oracle Home folder and change the ownership to the oracle user<br />
Run in Terminal:<br />
<code>mkdir /home/oracle
chown -R oracle:dba /home/oracle</code><br />
At this stage we will create some symbolic links to some needed applications we have installed earlier in the guide.<br />
Run in Terminal:<br />
<code>ln -s /usr/bin/basename /bin/basename
ln -s /usr/bin/awk /bin/awk
ln -s /usr/bin/rpm /bin/rpm</code></p>
<p>Create this folder and create symbolic links to it so oracle finds everything where he thinks it should be<br />
Run in Terminal:<br />
<code>mkdir /etc/rc.d
for i in 0 1 2 3 4 5 6 S ; do ln -s /etc/rc$i.d /etc/rc.d/rc$i.d ; done</code><br />
Now create the ORACLE_BASE folder<br />
Run in Terminal:<br />
<code>mkdir -p /u01/app/oracle
chown -R oracle:dba /u01</code></p>
<h3>Step Six</h3>
<p>Now you need to add defaults to our system conf files, these will change some defaults in the Ubuntu system, add the following to the end of <code>/etc/sysctl.conf</code><br />
To do so we need to be root and Run in Terminal:<br />
<code>gedit /etc/sysctl.conf</code></p>
<p>Paste at the end of the file the following lines:</p>
<p><code>fs.file-max = 65535
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65535
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144</code></p>
<p>These lines do the following:<br />
Extend the total number of file descriptors on a system<br />
Extend size of shared memory.<br />
Change the networking subsystem port range.</p>
<p>Using gedit open <code>/etc/security/limits.conf</code> and add this to the end of it:</p>
<p><code>oracle soft nproc 2047
oracle hard nproc 16383
oracle soft nofile 1023
oracle hard nofile 65535</code><br />
Using gedit open <code>/etc/pam.d/login</code> and add these lines to the end of it:<br />
<code>session required /lib/security/pam_limits.so
session required pam_limits.so</code></p>
<p>This will enforce the limits we added to <code>/etc/security/limits.conf</code><br />
Now you have two choices to get the new values sysctl.conf loaded:  Either reboot the machine or as root run in Terminal:<br />
<code>sysctl -p</code></p>
<h3>Step Seven</h3>
<p>Go to the folder where you have unzipped the Oracle linux installation. Here it is/home/oracle.<br />
Now switch to the oracle user either through su to the oracle user or logout and login as oracle.<br />
If you are switching to the user using su use this step if not skip to the next one.<br />
<code>su - oracle</code></p>
<p>if you get the following response you can ignore it since this has no effect on the install of oracle.</p>
<p><code>Your account has expired; please contact your system administrator
su: User account has expired
(Ignored)</code></p>
<p>Now you can set the display parameter to the correct ip so x windows sessions will be available.<br />
Run in Terminal:</p>
<p><code>export DISPLAY=192.168.x.y:0.0</code></p>
<h3>Step Eight</h3>
<p>You are now going to run the installer. To do that you need to go to the database folder under your installation folder<br />
Run in terminal:<br />
<code>cd database
ls -l</code><br />
You should get this response:<br />
<code>total 28
drwxr-xr-x 11 oracle dba 4096 2007-08-06 16:02 doc
drwxr-xr-x  5 oracle dba 4096 2007-08-03 13:28 install
drwxr-xr-x  2 oracle dba 4096 2007-09-18 18:52 response
-rwxr-xr-x  1 oracle dba 2911 2007-08-03 13:28 runInstaller
drwxr-xr-x 14 oracle dba 4096 2007-08-03 13:27 stage
-rw-r--r--  1 oracle dba 4835 2007-08-06 18:19 welcome.html</code></p>
<p>Now Start the installer.<br />
Run in Terminal:</p>
<p><code>/runInstaller -ignoreSysPrereqs</code><br />
After a few moments, the Oracle Universal Installer (OUI) will show up.<br />
If the OUI has failed to start and you get this problem:<br />
<code>Cannot Open Display</code><br />
You can try a few solutions:<br />
If you are SSHing to the server and relying on your machine try to Run in terminal<br />
<code>xhost +</code><br />
This might solve the problem.<br />
If you are logged in as a user other then oracle on the server and have an x windows session on it try the same and see if this solves any issues.<br />
From here you have to run the OUI installer<br />
I will not cover it in this post but when you reach the end of the installer and a popup appears look very carefully and see if it is a popup asking you to run 2 scripts as root.<br />
If it is then issue <code>su ‚Äì root</code> and start a root session then run the 2 scripts:<br />
<code>/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.1.0/db_1/root.sh</code></p>
<p>You might find <a href="http://technicianspot.blogspot.com/2008/05/installing-linux-ubuntu.html">how to install Ubuntu</a> article also helpful if you have not installed Ubuntu yet.</p>
<div class="fullcircle-social-links" style="display: block;"></div><div style="clear: both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.yuvalararat.com/2008/09/installing-oracle-10gr2-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
