<?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>dbsnaps &#187; Feature Video</title>
	<atom:link href="http://www.dbsnaps.com/category/feature-video/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dbsnaps.com</link>
	<description>database video tutorials</description>
	<lastBuildDate>Sun, 13 Nov 2011 13:50:36 +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>Oracle 11g Linux Installation</title>
		<link>http://www.dbsnaps.com/oracle/oracle-11g-linux-installation-3/</link>
		<comments>http://www.dbsnaps.com/oracle/oracle-11g-linux-installation-3/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 18:02:18 +0000</pubDate>
		<dc:creator>Liron Amitzi</dc:creator>
				<category><![CDATA[Administration]]></category>
		<category><![CDATA[Feature Video]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[11g]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle Installation]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://dbsnaps.oracletutorialvideos.com/?p=7</guid>
		<description><![CDATA[This video will show you how to install oracle 11g on linux - step by step. We will start in checking the requirement for Oracle installation. Then we continue with the steps to complete before starting the installation. We will finish with some final tasks after the installation is complete.]]></description>
			<content:encoded><![CDATA[<div>
<p><span style="text-decoration: underline;"><strong>In this video we will demonstrate Oracle 11g installation on Linux.</strong></span></p>
<p>When installing Oracle on Linux, there are several prerequisites steps that needs to be completed before the installation process ifself.</p>
<p>The installation GUI is identical to other operating systems, but the steps we need to complete before starting the installation are different.</p>
<p>This video will show you how to install Oracle 11gR1, step by step.</p>
<p>This video shows Oracle 11gR1 installation on Linux Cent OS 5 (which is similar to RedHat 5), but can be used to understand the general Oracle installation on Linux.</p>
<p>You can download the Oracle Database software from OTN:</p>
<ul>
<li><a href="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html">Oracle Database 11g Release 1- OTN</a></li>
<li><span id="more-7"></span></li>
</ul>
<p>We will start by checking the requirements for Oracle installation.</p>
<p>1)      <span style="text-decoration: underline;">Checking the memory, SWAP, Kernel version and free space requirements.</span></p>
<p>Memory – Oracle 11g requires at least 1GB RAM.</p>
<p>You’ll be able to check the server’s memory by executing the command:</p>
<pre class="brush: bash;">[root ~]grep MemTotal /proc/meminfo </pre>
<p>Swap requirements are specified in the documentation and based on the RAM.</p>
<p>Check the server’s SWAP by executing the command:</p>
<pre class="brush: bash;">[root ~]grep SwapTotal /proc/meminfo </pre>
<p>At least 400Mb are needed in /tmp directory. In addition, Oracle 11g software requires about 3.5GB.</p>
<p>Check the /tmp available space by executing the command:</p>
<pre class="brush: bash;">[root ~]df -k /tmp</pre>
<p>Check the server’s available space by executing the command:</p>
<pre class="brush: bash;">[root ~]df -k</pre>
<p>The available column will display the free space in kilobytes.</p>
<p>The OS kernel version should be 2.6.18 or higher.</p>
<p>Check the kernel version by executing the command:</p>
<pre class="brush: bash;">[root ~] cat /proc/version
OR
[root ~] uname –r</pre>
<p>2)      <span style="text-decoration: underline;">Required Packages</span></p>
<p>Oracle 11g software needs several rpm packages to be installed on the server.</p>
<p>You can find the full list of packages in the installation guide:</p>
<p><a href="http://download.oracle.com/docs/cd/B28359_01/install.111/b32002/pre_install.htm%23CHDHFGBJ">http://download.oracle.com/docs/cd/B28359_01/install.111/b32002/pre_install.htm#CHDHFGBJ</a></p>
<p>The command “rpm -qa” prints the list of all installed packages. With “grep” command we will look for specific packages.</p>
<p>Example: to verify that the gcc package is install, use:</p>
<pre class="brush: bash;">[root ~]rpm –qa | grep gcc</pre>
<p>3)      <span style="text-decoration: underline;">Creating users and groups.</span></p>
<p>We will create two new groups: ‘dba’ and ‘oinstall’ and the ‘oracle’ user.</p>
<pre class="brush: bash;">[root ~] groupadd oinstall
[root ~] groupadd dba
[root ~] useradd -g oinstall -G dba oracle
[root ~] passwd oracle</pre>
<p>4)      <span style="text-decoration: underline;">Setting Kernel parameters.</span></p>
<p>Open the /etc/sysctl.conf file  and configure the following kernel parameters:</p>
<pre class="brush: bash;">fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576</pre>
<p>Additional information about the kernel parameter can be found in the Documentation:<br />
<a href="http://download.oracle.com/docs/cd/B28359_01/install.111/b32002/pre_install.htm%23BABBBDGA">http://download.oracle.com/docs/cd/B28359_01/install.111/b32002/pre_install.htm#BABBBDGA</a></p>
<p>After editing the file, execute the following command to apply the changes.</p>
<pre class="brush: bash;">  [root ~] sysctl -p</pre>
<p>5)      <span style="text-decoration: underline;">Add the following lines to the /etc/security/limits.conf file:</span></p>
<pre class="brush: bash;"> oracle              soft    nproc    2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536</pre>
<p>6)      <span style="text-decoration: underline;">Add the following line to the /etc/pam.d/login file:</span></p>
<pre class="brush: bash;"> session   required   pam_limits.so</pre>
<p>7)      <span style="text-decoration: underline;">Add the following lines to the /etc/profile file:</span></p>
<p>This section sets the soft limit for user ‘oracle’ upon login:</p>
<pre class="brush: bash;"> if [ $USER = &quot;oracle&quot; ]; then
if [ $SHELL=&quot;/bin/ksh&quot; ] ; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -p 16384 -n 65536
fi
fi</pre>
<p>8)      <span style="text-decoration: underline;">Creating directories for the Oracle installation:</span></p>
<p>We need to create the directory for Oracle installation. This directory should be owned by user ‘oracle’</p>
<pre class="brush: bash;">  [root ~]mkdir -p /u01/app/oracle/product/11.1.0/db_1
[root ~]chown -R oracle:oinstall /u01
[root ~]chmod -R 775 /u01</pre>
<p>9)      <span style="text-decoration: underline;">Disable access control:</span></p>
<p>Access control does not allow opening X-Windows from any server. We will use xhost command to disable this access control.</p>
<pre class="brush: bash;">  [root ~] xhost +</pre>
<p>10)   <span style="text-decoration: underline;">Edit the /etc/profile file:</span></p>
<p>We will now connect as user ‘oracle’ and configure the environment in the bash_profile file.</p>
<pre class="brush: bash;"> [root ~]su – oracle
[oracle ~]vi .bash_profile</pre>
<p>We will set the ORACLE_BASE for oracle base directory and ORACLE_SID environment variables. Add the following lines to bash_profile file:</p>
<pre class="brush: bash;"> export ORACLE_HOSTNAME=&lt;SERVER_NAME&gt;
export ORACLE_BASE=/u01/app/oracle;
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1;
export ORACLE_SID=orcl; </pre>
<p>Apply the changes so that the new variables will be set:</p>
<pre class="brush: bash;"> [oracle ~] . .bash_profile</pre>
<p><strong> </strong></p>
<p><strong><span style="color: #0000ff;">The pre-requirement part is completed. All we have to do now is to start the installation.</span></strong></p>
<p>11)   <span style="text-decoration: underline;">Navigate to the installation directory and start the installation:</span></p>
<pre class="brush: bash;">  [oracle ~] cd /install/database
[oracle ~] ./runInstaller</pre>
<p>We will skip the installation part as it is quite straightforward, and go to the end of the installation part.</p>
<p>12)   <span style="text-decoration: underline;">Execute configuration scripts as root user:</span></p>
<p>At the end of the installation, you’ll see the “execute configuration scripts” wizard window. We should run these scripts as root. Open a Terminal as root and execute the below scripts”</p>
<pre class="brush: bash;">  [root ~] /u01/app/oracle/oraInventory/orainstRoot.sh
[root ~] /u01/app/oracle/product/11.1.0/db_1/root.sh</pre>
<p>The installation is now complete.</p>
<p>13)   <span style="text-decoration: underline;">Updating the .bash_profile file with more environment variables:</span></p>
<p>The last thing we need to do is updating the .bash_profile file:</p>
<pre class="brush: bash;"> [oracle ~] vi .bash_profile</pre>
<p>We will set the ORACLE_HOME for oracle home directory and the path environment variables. Add the following lines to bash_profile file:</p>
<pre class="brush: bash;">export ORACLE_HOSTNAME=&lt;SERVER_NAME&gt;
export ORACLE_BASE=/u01/app/oracle;

export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1;

export ORACLE_SID=orcl;

export PATH=/usr/sbin:$PATH;
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin</pre>
<p>Apply the changes so that the new variables will be set:</p>
<pre class="brush: bash;"> [oracle ~]. .bash_profile</pre>
<p>14)   <span style="text-decoration: underline;">Verify that everything is configured correctly.</span></p>
<pre class="brush: bash;"> [oracle ~] sqlplus / as sysdba
SQL*Plus: Release 11.1.0.1.0 Production on Mon Oct 25 12:26:26 2010

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.1.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL&gt;exit</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dbsnaps.com/oracle/oracle-11g-linux-installation-3/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

