<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Oracle%2FDatabase%2FOracle_10g_RHEL5_Install</id>
	<title>Oracle/Database/Oracle 10g RHEL5 Install - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Oracle%2FDatabase%2FOracle_10g_RHEL5_Install"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Oracle/Database/Oracle_10g_RHEL5_Install&amp;action=history"/>
	<updated>2026-05-08T18:46:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Oracle/Database/Oracle_10g_RHEL5_Install&amp;diff=1988&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;== Oracle 10g Linux Install ==  === kickstart ===  /etc/yum.repos.d/oeey-rhel.repo: &lt;pre&gt; cat &gt; /etc/yum.repos.d/oeey-rhel.repo &lt;&lt; &quot;EOF&quot;  [oeey-rhel5.1] name=RHEL-$releasever...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Oracle/Database/Oracle_10g_RHEL5_Install&amp;diff=1988&amp;oldid=prev"/>
		<updated>2015-04-15T16:40:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Oracle 10g Linux Install ==  === kickstart ===  /etc/yum.repos.d/oeey-rhel.repo: &amp;lt;pre&amp;gt; cat &amp;gt; /etc/yum.repos.d/oeey-rhel.repo &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;  [oeey-rhel5.1] name=RHEL-$releasever...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Oracle 10g Linux Install ==&lt;br /&gt;
&lt;br /&gt;
=== kickstart ===&lt;br /&gt;
&lt;br /&gt;
/etc/yum.repos.d/oeey-rhel.repo:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt; /etc/yum.repos.d/oeey-rhel.repo &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[oeey-rhel5.1]&lt;br /&gt;
name=RHEL-$releasever - Server Base&lt;br /&gt;
baseurl=http://216.119.202.4/rhel/$releasever/$basearch/Server/&lt;br /&gt;
gpgcheck=1&lt;br /&gt;
gpgkey=http://216.119.202.4/rhel/RPM-GPG-KEY-redhat-release&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will need to rebuild repodata to get this to work:&lt;br /&gt;
 createrepo .&lt;br /&gt;
&lt;br /&gt;
Disable RHN:&lt;br /&gt;
 sed -i &amp;#039;s/enabled = 1/enabled=0/&amp;#039; /etc/yum/pluginconf.d/rhnplugin.conf&lt;br /&gt;
 #vi /etc/yum/pluginconf.d/rhnplugin.conf&lt;br /&gt;
 # enabled = 0&lt;br /&gt;
&lt;br /&gt;
Install dependencies:&lt;br /&gt;
 yum install compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-devel \&lt;br /&gt;
   glibc-common gcc-4.1.1 gcc-c++-4.1.1 kernel-headers libgcc-4.1.1 libaio libaio-devel \&lt;br /&gt;
   libstdc++ libstdc++-devel unixODBC unixODBC-devel sysstat binutils make libXp&lt;br /&gt;
&lt;br /&gt;
Missing from kickstart:&lt;br /&gt;
 # i386&lt;br /&gt;
 yum install libaio-devel sysstat unixODBC unixODBC-devel libXp&lt;br /&gt;
&lt;br /&gt;
 # x86_64&lt;br /&gt;
 yum install libaio-devel.x86_64 sysstat.x86_64 unixODBC.x86_64 unixODBC-devel.x86_64&lt;br /&gt;
&lt;br /&gt;
=== Hosts ===&lt;br /&gt;
&lt;br /&gt;
 cp /etc/hosts /etc/hosts.original&lt;br /&gt;
 echo -e &amp;quot;127.0.0.1\t\tlocalhost.localdomain localhost&amp;quot; &amp;gt; /etc/hosts&lt;br /&gt;
 echo -e &amp;quot;`ifconfig | grep &amp;quot;inet addr&amp;quot; | head -n 1 | cut -f 2 -d &amp;quot;:&amp;quot; | cut -f 1 -d &amp;quot; &amp;quot;`\t\t`hostname` `hostname | cut -f 1 -d &amp;#039;.&amp;#039;`&amp;quot; &amp;gt;&amp;gt; /etc/hosts&lt;br /&gt;
&lt;br /&gt;
The /etc/hosts file must contain a fully qualified name for the server:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
127.0.0.1		localhost.localdomain localhost&lt;br /&gt;
::1			localhost6.localdomain6 localhost6&lt;br /&gt;
10.10.10.10		ws-194-130.oeey.com ws-194-130&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
WARNING: If during the precheck you get a &amp;quot;not executed&amp;quot; instead of a &amp;quot;success&amp;quot; or &amp;quot;warning&amp;quot; your hosts file is wrong!&lt;br /&gt;
&lt;br /&gt;
=== Kernel Parameters ===&lt;br /&gt;
&lt;br /&gt;
Add the following lines to the /etc/sysctl.conf file - &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt;&amp;gt; /etc/sysctl.conf &amp;lt;&amp;lt;EOF&lt;br /&gt;
&lt;br /&gt;
# Oracle Settings&lt;br /&gt;
#&lt;br /&gt;
# Only change default kernel.shmall and kernel.shmmax if pre-existing values&lt;br /&gt;
#   are lower then listed below:&lt;br /&gt;
# kernel.shmall = 2097152&lt;br /&gt;
# kernel.shmmax = 536870912&lt;br /&gt;
kernel.shmmni = 4096&lt;br /&gt;
# semaphores: semmsl, semmns, semopm, semmni&lt;br /&gt;
kernel.sem = 250 32000 100 128&lt;br /&gt;
fs.file-max = 65536&lt;br /&gt;
net.ipv4.ip_local_port_range = 1024 65000&lt;br /&gt;
# memory settings&lt;br /&gt;
net.core.rmem_default = 4194304&lt;br /&gt;
net.core.rmem_max = 4194304&lt;br /&gt;
net.core.wmem_default = 262144&lt;br /&gt;
net.core.wmem_max = 262144&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the following command to change the current kernel parameters:&lt;br /&gt;
 /sbin/sysctl -p&lt;br /&gt;
&lt;br /&gt;
=== limits ===&lt;br /&gt;
&lt;br /&gt;
Add the following lines to the /etc/security/limits.conf file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt;&amp;gt; /etc/security/limits.conf &amp;lt;&amp;lt;EOF&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Oracle Settings&lt;br /&gt;
*               soft    nproc   	2047&lt;br /&gt;
*               hard    nproc   	16384&lt;br /&gt;
*               soft    nofile  	1024&lt;br /&gt;
*               hard    nofile  	65536&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following line to the /etc/pam.d/login file, if it does not already exist:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt;&amp;gt; /etc/pam.d/login &amp;lt;&amp;lt;EOF&lt;br /&gt;
&lt;br /&gt;
# Oracle Settings&lt;br /&gt;
session    required     pam_limits.so&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Users and Groups ===&lt;br /&gt;
&lt;br /&gt;
Create the new groups and users and set password:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
groupadd oinstall&lt;br /&gt;
groupadd dba&lt;br /&gt;
groupadd oper&lt;br /&gt;
useradd -g oinstall -G dba oracle&lt;br /&gt;
# give password to oracle user &amp;#039;test12&amp;#039;&lt;br /&gt;
# passwd oracle&lt;br /&gt;
echo &amp;quot;test12&amp;quot; | passwd --stdin oracle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the directories in which the Oracle software and database files will be stored:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir -p /opt/oracle&lt;br /&gt;
chown -R oracle.oinstall /opt/oracle&lt;br /&gt;
mkdir /opt/oraInventory&lt;br /&gt;
chown -R oracle.oinstall /opt/oraInventory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following lines at the end of the Oracle user&amp;#039;s .bash_profile file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt;&amp;gt; /home/oracle/.bash_profile &amp;lt;&amp;lt;&amp;quot;EOF&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Oracle Settings&lt;br /&gt;
export TMP=/tmp&lt;br /&gt;
export TMPDIR=$TMP&lt;br /&gt;
&lt;br /&gt;
export ORACLE_BASE=/opt/oracle&lt;br /&gt;
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1&lt;br /&gt;
export ORACLE_SID=orcl&lt;br /&gt;
export ORACLE_TERM=xterm&lt;br /&gt;
export PATH=/usr/sbin:$PATH&lt;br /&gt;
export PATH=$ORACLE_HOME/bin:$PATH&lt;br /&gt;
&lt;br /&gt;
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib&lt;br /&gt;
export CLASSPATH=$ORACLE_HOME/jdk/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib&lt;br /&gt;
&lt;br /&gt;
if [ $USER = &amp;quot;oracle&amp;quot; ]; then&lt;br /&gt;
  if [ $SHELL = &amp;quot;/bin/ksh&amp;quot; ]; then&lt;br /&gt;
    ulimit -p 16384&lt;br /&gt;
    ulimit -n 65536&lt;br /&gt;
  else&lt;br /&gt;
    ulimit -u 16384 -n 65536&lt;br /&gt;
  fi&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hack OS Version ===&lt;br /&gt;
&lt;br /&gt;
This is an important step.  If you miss this Oracle will complain about OS Version comparability.  This can be undone, once Oracle has been installed.&lt;br /&gt;
&lt;br /&gt;
 cp /etc/redhat-release /etc/redhat-release.bak&lt;br /&gt;
 echo &amp;quot;redhat-4&amp;quot; &amp;gt; /etc/redhat-release&lt;br /&gt;
&lt;br /&gt;
=== VNC ===&lt;br /&gt;
&lt;br /&gt;
Add to the /etc/sysconfig/vncservers file&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt;&amp;gt; /etc/sysconfig/vncservers &amp;lt;&amp;lt;EOF&lt;br /&gt;
&lt;br /&gt;
VNCSERVERS=&amp;quot;2:oracle&amp;quot;&lt;br /&gt;
VNCSERVERARGS[2]=&amp;quot;-geometry 800x600&amp;quot;&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Log into the oracle user and create VNC Password&lt;br /&gt;
 su - oracle&lt;br /&gt;
 # give vnc login a password &amp;#039;test12&amp;#039;&lt;br /&gt;
 vncpasswd ; exit&lt;br /&gt;
&lt;br /&gt;
Enable VNC persistent desktops at boot and start service&lt;br /&gt;
 chkconfig vncserver on&lt;br /&gt;
 service vncserver start&lt;br /&gt;
&lt;br /&gt;
Remove # from /home/oracle/.vnc/xstartup to enable full desktop&lt;br /&gt;
 sed -i &amp;#039;s%# unset SESSION_MANAGER%unset SESSION_MANAGER%g&amp;#039; /home/oracle/.vnc/xstartup&lt;br /&gt;
 sed -i &amp;#039;s%# exec /etc/X11/xinit/xinitrc%exec /etc/X11/xinit/xinitrc%g&amp;#039; /home/oracle/.vnc/xstartup&lt;br /&gt;
 # restart vncserver to take effect:&lt;br /&gt;
 service vncserver restart&lt;br /&gt;
&lt;br /&gt;
This will result in: /home/oracle/.vnc/xstartup:&lt;br /&gt;
 #  Uncomment the following two lines for normal desktop:&lt;br /&gt;
 unset SESSION_MANAGER&lt;br /&gt;
 exec /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
VNC to system:&lt;br /&gt;
 vncviewer [SYSTEM]:2&lt;br /&gt;
&lt;br /&gt;
=== Install Oracle ===&lt;br /&gt;
&lt;br /&gt;
 # copy oracle install local&lt;br /&gt;
 &lt;br /&gt;
 # 32bit:&lt;br /&gt;
 unzip 10201_database_linux32.zip&lt;br /&gt;
 &lt;br /&gt;
 # 64bit:&lt;br /&gt;
 cat 10201_database_linux_x86_64.cpio | cpio -idmv&lt;br /&gt;
 &lt;br /&gt;
 cd database&lt;br /&gt;
 ./runInstaller&lt;br /&gt;
&lt;br /&gt;
Oracle Installation Details:&lt;br /&gt;
 Oracle Home Location: /opt/oracle/product/10.2.0/db_1&lt;br /&gt;
 Installation Type: Enterprise Edition (1.3GB)&lt;br /&gt;
 UNIX DBA Group: oinstall&lt;br /&gt;
 Create Starter Database (additional 720MB)&lt;br /&gt;
   Global Database Name: orcl&lt;br /&gt;
   * Database Password: test12&lt;br /&gt;
 &lt;br /&gt;
 Inventory directory: /opt/oracle/oraInventory&lt;br /&gt;
 Operating System group name: oinstall&lt;br /&gt;
&lt;br /&gt;
During the prerequisite check you should only have the following issues:&lt;br /&gt;
* swap - warning (due to small swap - ignore)&lt;br /&gt;
* network - warning (due to dhcp address - fix by static ip)&lt;br /&gt;
&lt;br /&gt;
If the network has &amp;quot;not run&amp;quot; check your hosts file.  If anything else is error or warned, you have problems.&lt;br /&gt;
&lt;br /&gt;
Database Control URL is: http://[HOST]:1158/em&lt;br /&gt;
&lt;br /&gt;
=== root ===&lt;br /&gt;
&lt;br /&gt;
Near the end of the install it will ask you to run the following root:&lt;br /&gt;
 /opt/oracle/oraInventory/orainstRoot.sh&lt;br /&gt;
 /opt/oracle/product/10.2.0/db_1/root.sh&lt;br /&gt;
&lt;br /&gt;
=== Unhack OS Version ===&lt;br /&gt;
&lt;br /&gt;
 mv /etc/redhat-release.bak /etc/redhat-release&lt;br /&gt;
&lt;br /&gt;
== Enterprise Manager ==&lt;br /&gt;
&lt;br /&gt;
The following J2EE Applications have been deployed and are accessible at the URLs listed below.&lt;br /&gt;
&lt;br /&gt;
iSQL*Plus URL:&lt;br /&gt;
 http://[HOSTNAME]:5560/isqlplus&lt;br /&gt;
&lt;br /&gt;
iSQL*Plus DBA URL:&lt;br /&gt;
 http://[HOSTNAME]:5560/isqlplus/dba&lt;br /&gt;
&lt;br /&gt;
Enterprise Manager 10g Database Control URL:&lt;br /&gt;
 http://[HOSTNAME]:1158/em&lt;br /&gt;
&lt;br /&gt;
== oracle init.d script ==&lt;br /&gt;
&lt;br /&gt;
NOTE: Make sure to set the auto start flag for the database (/etc/oratab), or this will not work!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
# chkconfig: 345 99 10&lt;br /&gt;
# description: Oracle auto start-stop script.&lt;br /&gt;
#&lt;br /&gt;
# Set ORA_HOME to be equivalent to the $ORACLE_HOME&lt;br /&gt;
# from which you wish to execute dbstart and dbshut;&lt;br /&gt;
#&lt;br /&gt;
# Set ORA_OWNER to the user id of the owner of the&lt;br /&gt;
# Oracle database in ORA_HOME.&lt;br /&gt;
#&lt;br /&gt;
# Note: make sure to modify /etc/oratab start&lt;br /&gt;
# parameter from &amp;#039;N&amp;#039; to &amp;#039;Y&amp;#039;&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
ORA_HOME=/opt/oracle/product/10.2.0/db_1&lt;br /&gt;
ORA_OWNER=oracle&lt;br /&gt;
&lt;br /&gt;
if [ ! -f $ORA_HOME/bin/dbstart ]&lt;br /&gt;
then&lt;br /&gt;
    echo &amp;quot;Oracle startup: cannot start&amp;quot;&lt;br /&gt;
    exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    &amp;#039;start&amp;#039;)&lt;br /&gt;
        # Start the Oracle databases:&lt;br /&gt;
        # The following command assumes that the oracle login&lt;br /&gt;
        # will not prompt the user for any values&lt;br /&gt;
        su - $ORA_OWNER -c &amp;quot;$ORA_HOME/bin/lsnrctl start&amp;quot;&lt;br /&gt;
        su - $ORA_OWNER -c &amp;quot;$ORA_HOME/bin/dbstart $ORA_HOME&amp;quot;&lt;br /&gt;
        ;;&lt;br /&gt;
    &amp;#039;stop&amp;#039;)&lt;br /&gt;
        # Stop the Oracle databases:&lt;br /&gt;
        # The following command assumes that the oracle login&lt;br /&gt;
        # will not prompt the user for any values&lt;br /&gt;
        su - $ORA_OWNER -c &amp;quot;$ORA_HOME/bin/dbshut $ORA_HOME&amp;quot;&lt;br /&gt;
        su - $ORA_OWNER -c &amp;quot;$ORA_HOME/bin/lsnrctl stop&amp;quot;&lt;br /&gt;
        ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
==== OS Version Failed ====&lt;br /&gt;
&lt;br /&gt;
When you run ./runInstaller you may see the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Starting Oracle Universal Installer...&lt;br /&gt;
&lt;br /&gt;
Checking installer requirements...&lt;br /&gt;
&lt;br /&gt;
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2&lt;br /&gt;
                                      Failed &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
&lt;br /&gt;
Exiting Oracle Universal Installer, log for this session can be found at&lt;br /&gt;
  /tmp/OraInstall2009-11-04_10-35-25AM/installActions2009-11-04_10-35-25AM.log&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means you forgot to hack the version of red hat.  See instructions above.&lt;br /&gt;
&lt;br /&gt;
==== Swap Space Requirement ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Checking available swap space requirements ...&lt;br /&gt;
Expected result: 8112MB&lt;br /&gt;
Actual Result: 1983MB&lt;br /&gt;
Check complete. The overall result of this check is: Failed &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
Problem: The system does not have the required swap space.&lt;br /&gt;
Recommendation: Make more swap space available to perform the install.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Static IP Requirement ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Checking Network Configuration requirements ...&lt;br /&gt;
Check complete. The overall result of this check is: Failed &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;br /&gt;
Problem: The install has detected that the primary IP address of the system is DHCP-assigned.&lt;br /&gt;
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  &lt;br /&gt;
  However, the primary network interface on the system should be configured with a static IP address in&lt;br /&gt;
  order for the Oracle Software to function properly.  See the Installation Guide for more details on&lt;br /&gt;
  installing the software on systems configured with DHCP.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
oracle&lt;br /&gt;
&lt;br /&gt;
[[Category:Oracle]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>