<?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_11gR2_RHEL6_Install</id>
	<title>Oracle/Database/Oracle 11gR2 RHEL6 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_11gR2_RHEL6_Install"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Oracle/Database/Oracle_11gR2_RHEL6_Install&amp;action=history"/>
	<updated>2026-05-08T16:35:42Z</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_11gR2_RHEL6_Install&amp;diff=1990&amp;oldid=prev</id>
		<title>Kenneth: Created page with &quot;== Oracle 11gR2 RHEL 6.0 Install ==  These instructions use Oracle Database 11g Release 2 on RHEL 6.0   == Oracle ==  Oracle Download - http://www.oracle.com/technetwork/datab...&quot;</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Oracle/Database/Oracle_11gR2_RHEL6_Install&amp;diff=1990&amp;oldid=prev"/>
		<updated>2015-04-15T16:42:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Oracle 11gR2 RHEL 6.0 Install ==  These instructions use Oracle Database 11g Release 2 on RHEL 6.0   == Oracle ==  Oracle Download - http://www.oracle.com/technetwork/datab...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Oracle 11gR2 RHEL 6.0 Install ==&lt;br /&gt;
&lt;br /&gt;
These instructions use Oracle Database 11g Release 2 on RHEL 6.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Oracle ==&lt;br /&gt;
&lt;br /&gt;
Oracle Download - http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* 1 GB of RAM&lt;br /&gt;
* Swap space equal to ram (min size 2GB - max size 16GB)&lt;br /&gt;
* 2-5GB of free disk space (depending on version)&lt;br /&gt;
* Statically assigned IP address&lt;br /&gt;
&lt;br /&gt;
== Yum ==&lt;br /&gt;
&lt;br /&gt;
/etc/yum.repos.d/oeey.repo:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt; /etc/yum.repos.d/oeey.repo &amp;lt;&amp;lt; &amp;quot;EOF&amp;quot;&lt;br /&gt;
&lt;br /&gt;
[keylabs]&lt;br /&gt;
name=oeey Repo for $releasever $basearch&lt;br /&gt;
baseurl=http://yum.oeey.com/rhel/6.0/x86/Server/&lt;br /&gt;
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release&lt;br /&gt;
# baseurl=file:///opt/yum/&lt;br /&gt;
# gpgcheck=1&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
For VNC:&lt;br /&gt;
 yum install tigervnc-server xterm twm xorg-x11-utils&lt;br /&gt;
&lt;br /&gt;
Install dependencies:&lt;br /&gt;
 yum install make binutils gcc libaio libaio-devel libstdc++ elfutils-libelf-devel gcc-c++ ksh \&lt;br /&gt;
   compat-libstdc++-33 libgcc libstdc++-devel libaio-devel sysstat unixODBC unixODBC-devel&lt;br /&gt;
&lt;br /&gt;
== Hosts ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;s&amp;gt;NOTE: May not be needed, as Network manager appears to already do this... (oh... only if using Network Manager and dhcp)&amp;lt;/s&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example: 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;
216.119.194.130		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 = 6815744&lt;br /&gt;
fs.aio-max-nr = 1048576&lt;br /&gt;
net.ipv4.ip_local_port_range = 9000 65500&lt;br /&gt;
# memory settings&lt;br /&gt;
net.core.rmem_default = 262144&lt;br /&gt;
net.core.rmem_max = 4194304&lt;br /&gt;
net.core.wmem_default = 262144&lt;br /&gt;
net.core.wmem_max = 1048586&lt;br /&gt;
&lt;br /&gt;
EOF&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&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/11.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;
=== 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;
&amp;lt;pre&amp;gt;&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;
# generated from &amp;quot;vncpasswd ; cat /home/oracle/.vnc/passwd | xxd -p -&amp;quot;&lt;br /&gt;
mkdir -p /home/oracle/.vnc&lt;br /&gt;
echo &amp;quot;de2e2c59eda77881&amp;quot; | xxd -p -r - /home/oracle/.vnc/passwd&lt;br /&gt;
chmod 600 /home/oracle/.vnc/passwd&lt;br /&gt;
chown -R oracle:oinstall /home/oracle/.vnc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&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;
&amp;lt;pre&amp;gt;&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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note: 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;
OS Version:&lt;br /&gt;
 # cat /etc/redhat-release&lt;br /&gt;
 Red Hat Enterprise Linux Server release 6.0 (Santiago)&lt;br /&gt;
&lt;br /&gt;
Dependencies commonly missed:&lt;br /&gt;
 yum install libaio-devel unixODBC-devel ksh&lt;br /&gt;
&lt;br /&gt;
=== Extract Oracle ===&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 mkdir installer&lt;br /&gt;
 cd installer&lt;br /&gt;
 # for x64: unzip ../linux.x64_11gR2_database_1of2.zip ; unzip ../linux.x64_11gR2_database_1of2.zip&lt;br /&gt;
 unzip ../linux_11gR2_database_1of2.zip ; unzip ../linux_11gR2_database_2of2.zip&lt;br /&gt;
 cd database&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ./runInstaller&lt;br /&gt;
&lt;br /&gt;
System check:&lt;br /&gt;
 * Temp space greater than 80 MB.&lt;br /&gt;
 * Swap space greater than 150 MB.&lt;br /&gt;
 * Colors greater than 256&lt;br /&gt;
&lt;br /&gt;
=== GUI Portion ===&lt;br /&gt;
&lt;br /&gt;
VMware Note: It appears that the installer needs a minimum of 1024x768 resolution for installation.  The GUI installer has positioning issues with the bottom task bar even at this resolution.  This only happens with with VMware console.  VNC does not have this issue, and can be installed at 800x600.&lt;br /&gt;
&lt;br /&gt;
Installation Steps:&lt;br /&gt;
# Configure Security Updates:&lt;br /&gt;
#* ignore and click Next, Next (default)&lt;br /&gt;
# Installation Option:&lt;br /&gt;
#* Create and configure a database (default)&lt;br /&gt;
# System Class&lt;br /&gt;
#* Desktop Class (default)&lt;br /&gt;
# Typical Installation&lt;br /&gt;
#* Database edition: Enterprise (default)&lt;br /&gt;
#* Enter Administrative password: test12&lt;br /&gt;
# Create Inventory&lt;br /&gt;
# Prerequisite Checks&lt;br /&gt;
&lt;br /&gt;
Note: shows pdksh error which has to be ignored. [https://www.oratoolkit.ch/knowledge/howto/installation/eeSrv-11g-R2-on-RHEL-6.0-x86_64.php?session_id=rg6j7mrbae3mh2jl6aev6nsh55]&lt;br /&gt;
&lt;br /&gt;
Typical Installation: (defaults without oracle user modifications)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Oracle base: /home/oracle/app/oracle&lt;br /&gt;
Software location: /home/oracle/app/oracle/product/11.2.0/dbhome_1&lt;br /&gt;
Database file location: /home/oracle/app/oracle/oradata&lt;br /&gt;
Database edition: Enterprise Edition (3.95 GB)&lt;br /&gt;
Character Set: Default (WE8MSWIN1252)&lt;br /&gt;
OSDBA Group: oracle&lt;br /&gt;
Global database name: orcl.oeey.com&lt;br /&gt;
Administrative password: test12&lt;br /&gt;
Confirm Password: test12&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create Inventory:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Inventory Directory: /home/oracle/app/oraInventory&lt;br /&gt;
oraInventory Group Name: oracle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a prerequisite condition to test whether the package &amp;quot;pdksh-5.2.14&amp;quot; is available on the system.&lt;br /&gt;
 [X] Ignore All&lt;br /&gt;
&lt;br /&gt;
=== root step ===&lt;br /&gt;
&lt;br /&gt;
Near the end of the install it will ask you to run the following root:&lt;br /&gt;
&lt;br /&gt;
If using defaults:&lt;br /&gt;
 /home/oracle/app/oraInventory/orainstRoot.sh&lt;br /&gt;
 /home/oracle/app/oracle/product/11.2.0/dbhome_1/root.sh&lt;br /&gt;
&lt;br /&gt;
If using oracle mod:&lt;br /&gt;
 /opt/oraInventory/orainstRoot.sh&lt;br /&gt;
 /opt/oracle/product/11.2.0/db_1/root.sh&lt;br /&gt;
&lt;br /&gt;
== Enterprise Manager ==&lt;br /&gt;
&lt;br /&gt;
Enterprise Manager Database Control URL - (orcl):&lt;br /&gt;
* https://localhost:1158/em&lt;br /&gt;
* https://[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/11.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;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat &amp;gt; /etc/init.d/oracle &amp;lt;&amp;lt;EOF&lt;br /&gt;
...&lt;br /&gt;
EOF&lt;br /&gt;
chmod u+x /etc/init.d/oracle&lt;br /&gt;
chkconfig oracle on&lt;br /&gt;
sed -i &amp;quot;s#/N$#/Y#&amp;quot; /etc/oratab&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Check Oracle Status ==&lt;br /&gt;
&lt;br /&gt;
As root or oracle user:&lt;br /&gt;
 $ORACLE_HOME/bin/lsnrctl status&lt;br /&gt;
&lt;br /&gt;
== Change Hostname ==&lt;br /&gt;
&lt;br /&gt;
If you change the system hostname, this will break oracle.&lt;br /&gt;
&lt;br /&gt;
To correctly change your system hostname:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Set hostname (using &amp;#039;hostname&amp;#039;) &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;ul&amp;gt;&amp;lt;li&amp;gt; &amp;lt;pre&amp;gt;hostname NEWNAME&amp;lt;/pre&amp;gt; &amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Set hostname on reboot in /etc/sysconfig/network: &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;ul&amp;gt;&amp;lt;li&amp;gt; &amp;lt;pre&amp;gt;HOSTNAME=NEWNAME&amp;lt;/pre&amp;gt; &amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Set hostname lookup in /etc/hosts: &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;ul&amp;gt;&amp;lt;li&amp;gt; &amp;lt;pre&amp;gt;10.10.10.100  NEWNAME&amp;lt;/pre&amp;gt; &amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Change Oracle listner.ora: &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;ul&amp;gt;&amp;lt;li&amp;gt; &amp;lt;pre&amp;gt;&lt;br /&gt;
$ vi $ORACLE_HOME/network/admin/listener.ora&lt;br /&gt;
&lt;br /&gt;
# listener.ora Network Configuration File: /opt/oracle/product/11.2.0/db_1/network&lt;br /&gt;
/admin/listener.ora&lt;br /&gt;
# Generated by Oracle configuration tools.&lt;br /&gt;
&lt;br /&gt;
LISTENER =&lt;br /&gt;
  (DESCRIPTION_LIST =&lt;br /&gt;
    (DESCRIPTION =&lt;br /&gt;
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))&lt;br /&gt;
      (ADDRESS = (PROTOCOL = TCP)(HOST = NEWNAME)(PORT = 1521))&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Change Oracle tnsnames.ora: &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;ul&amp;gt;&amp;lt;li&amp;gt; &amp;lt;pre&amp;gt;&lt;br /&gt;
$ vi $ORACLE_HOME/network/admin/tnsnames.ora&lt;br /&gt;
&lt;br /&gt;
# tnsnames.ora Network Configuration File: /opt/oracle/product/11.2.0/db_1/network&lt;br /&gt;
/admin/tnsnames.ora&lt;br /&gt;
# Generated by Oracle configuration tools.&lt;br /&gt;
&lt;br /&gt;
ORCL =&lt;br /&gt;
  (DESCRIPTION =&lt;br /&gt;
    (ADDRESS = (PROTOCOL = TCP)(HOST = NEWNAME)(PORT = 1521))&lt;br /&gt;
    (CONNECT_DATA =&lt;br /&gt;
      (SERVER = DEDICATED)&lt;br /&gt;
      (SERVICE_NAME = orcl)&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
&amp;lt;/pre&amp;gt; &amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Restart oracle &amp;lt;/li&amp;gt;&lt;br /&gt;
  &amp;lt;ul&amp;gt;&amp;lt;li&amp;gt; &amp;lt;pre&amp;gt;service oracle stop ; service oracle start&amp;lt;/pre&amp;gt; &amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Oracle Power Script ==&lt;br /&gt;
&lt;br /&gt;
See [[Oracle Power Install Script (Oracle 11g - RHEL 5)]]&lt;br /&gt;
&lt;br /&gt;
Note: will need to be modified for RHEL 6 slightly&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
RHEL 6 and Oracle 11g:&lt;br /&gt;
* Installing Oracle 11g Release 1 Standard Edition on Red Hat Enterprise Linux 6.0 (x86_64) within 60 minutes - https://www.oratoolkit.ch/knowledge/howto/installation/seSrv-11g-R1-on-RHEL-6.0-x86_64.php?cookies=1&lt;br /&gt;
* Installing Oracle 11g Release 2 Enterprise Edition on Red Hat Enterprise Linux 6.0 (x86_64) within 60 minutes - https://www.oratoolkit.ch/knowledge/howto/installation/eeSrv-11g-R2-on-RHEL-6.0-x86_64.php&lt;br /&gt;
* (uN)Tech blogs: RHEL6 64-bit and Oracle 11g R2 - http://telinit0.blogspot.com/2010/11/rhel6-64-bit-and-oracle-11g-r2.html&lt;br /&gt;
* oraToolKit - How-to - https://www.oratoolkit.ch/knowledge/otn.php&lt;br /&gt;
** Installation guides of all versions of Oracle and Linux&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Not RHEL 6, but interesting:&lt;br /&gt;
* ORACLE-BASE - Oracle Database 11g Release 2 (11.2) Installation On Enterprise Linux 5.0 - http://www.oracle-base.com/articles/11g/OracleDB11gR2InstallationOnEnterpriseLinux5.php&lt;br /&gt;
* ORACLE-BASE - Linux and Oracle - http://www.oracle-base.com/articles/linux/ArticlesLinux.php&lt;br /&gt;
* Upgrading to Oracle Database 11g « IN ORACLE MILIEU … - http://avdeo.com/2007/09/07/upgrading-to-oracle-database-11g/&lt;br /&gt;
* ORACLE-BASE - Oracle Database 11g Release 1 (11.1) Installation On Enterprise Linux 4.5 and 5.0 - http://www.oracle-base.com/articles/11g/OracleDB11gR1InstallationOnEnterpriseLinux4and5.php&lt;br /&gt;
* Oracle 11g step-by-step Installation Guide with Screenshots - http://www.thegeekstuff.com/2008/10/oracle-11g-step-by-step-installation-guide-with-screenshots/&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
&lt;br /&gt;
=== Remote Connection ===&lt;br /&gt;
&lt;br /&gt;
 $ sqlplus sysman/test12@216.119.194.200&lt;br /&gt;
 &lt;br /&gt;
 ERROR:&lt;br /&gt;
 ORA-12541: TNS:no listener&lt;br /&gt;
&lt;br /&gt;
By default, Oracle only listens on the localhost address.&lt;br /&gt;
&lt;br /&gt;
Modify $ORACLE_HOME//network/admin/&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# listener.ora Network Configuration File: /opt/oracle/product/11.1/db_1/network/admin/listener.ora&lt;br /&gt;
# Generated by Oracle configuration tools.&lt;br /&gt;
&lt;br /&gt;
LISTENER =&lt;br /&gt;
  (DESCRIPTION_LIST =&lt;br /&gt;
    (DESCRIPTION =&lt;br /&gt;
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))&lt;br /&gt;
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))&lt;br /&gt;
    )&lt;br /&gt;
  )&lt;br /&gt;
&lt;br /&gt;
ADR_BASE_LISTENER = /opt/oracle&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Replace &amp;#039;localhost&amp;#039; with the FQDN of the host.&lt;br /&gt;
&lt;br /&gt;
Restart oracle:&lt;br /&gt;
 service oracle stop&lt;br /&gt;
 service oracle start&lt;br /&gt;
&lt;br /&gt;
=== listener not given the SERVICE_NAME ===&lt;br /&gt;
&lt;br /&gt;
 ERROR:&lt;br /&gt;
 ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA&lt;br /&gt;
&lt;br /&gt;
== Kickstart ==&lt;br /&gt;
&lt;br /&gt;
=== Default system ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Kickstart file automatically generated by anaconda.&lt;br /&gt;
&lt;br /&gt;
#version=RHEL6&lt;br /&gt;
install&lt;br /&gt;
url --url=http://216.119.202.5/dvd/rhel/6.0/x86&lt;br /&gt;
lang en_US.UTF-8&lt;br /&gt;
keyboard us&lt;br /&gt;
network --device eth0 --bootproto dhcp&lt;br /&gt;
rootpw  --iscrypted $6$wsjkZEKVUht.DOqu$figLkkbukpBOIe9GZ90O8HsIy/jM2mtY2RSCbfEG6Ar5zgGEAhN7Q6AZbQfcaR04SLpSNZwjc53vY5zjjJ5PT/&lt;br /&gt;
firewall --service=ssh&lt;br /&gt;
authconfig --enableshadow --passalgo=sha512 --enablefingerprint&lt;br /&gt;
selinux --enforcing&lt;br /&gt;
timezone --utc America/New_York&lt;br /&gt;
bootloader --location=mbr --driveorder=sda --append=&amp;quot;crashkernel=auto rhgb quiet&amp;quot;&lt;br /&gt;
# The following is the partition information you requested&lt;br /&gt;
# Note that any partitions you deleted are not expressed&lt;br /&gt;
# here so unless you clear all partitions first, this is&lt;br /&gt;
# not guaranteed to work&lt;br /&gt;
#clearpart --linux --drives=sda&lt;br /&gt;
&lt;br /&gt;
#part /boot --fstype=ext4 --size=500&lt;br /&gt;
#part pv.BxsFXn-JAUP-HTFR-FKxL-sZsZ-R4m9-P9C91u --grow --size=1&lt;br /&gt;
&lt;br /&gt;
#volgroup vg_ws194121 --pesize=4096 pv.BxsFXn-JAUP-HTFR-FKxL-sZsZ-R4m9-P9C91u&lt;br /&gt;
#logvol / --fstype=ext4 --name=lv_root --vgname=vg_ws194121 --grow --size=1024 --maxsize=51200&lt;br /&gt;
#logvol swap --name=lv_swap --vgname=vg_ws194121 --grow --size=2032 --maxsize=4064&lt;br /&gt;
repo --name=&amp;quot;Red Hat Enterprise Linux&amp;quot;  --baseurl=http://216.119.202.5/dvd/rhel/6.0/x86/ --cost=100&lt;br /&gt;
&lt;br /&gt;
%packages&lt;br /&gt;
@base&lt;br /&gt;
@console-internet&lt;br /&gt;
@core&lt;br /&gt;
@debugging&lt;br /&gt;
@directory-client&lt;br /&gt;
@hardware-monitoring&lt;br /&gt;
@java-platform&lt;br /&gt;
@large-systems&lt;br /&gt;
@network-file-system-client&lt;br /&gt;
@performance&lt;br /&gt;
@perl-runtime&lt;br /&gt;
@server-platform&lt;br /&gt;
@server-policy&lt;br /&gt;
pax&lt;br /&gt;
python-dmidecode&lt;br /&gt;
oddjob&lt;br /&gt;
sgpio&lt;br /&gt;
certmonger&lt;br /&gt;
pam_krb5&lt;br /&gt;
krb5-workstation&lt;br /&gt;
nscd&lt;br /&gt;
pam_ldap&lt;br /&gt;
nss-pam-ldapd&lt;br /&gt;
perl-DBD-SQLite&lt;br /&gt;
%end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Full system ===&lt;br /&gt;
&lt;br /&gt;
anaconda-ks.cfg:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Kickstart file automatically generated by anaconda.&lt;br /&gt;
&lt;br /&gt;
#version=RHEL6&lt;br /&gt;
install&lt;br /&gt;
url --url=http://216.119.202.5/dvd/rhel/6.0/x86/&lt;br /&gt;
lang en_US.UTF-8&lt;br /&gt;
keyboard us&lt;br /&gt;
network --device eth0 --bootproto dhcp&lt;br /&gt;
rootpw  --iscrypted $6$D.cfKhh9D2yQmRYI$WGb5LU172IuAfnDONblTORFNiSBqxKxqj4QbGbJ6eqjY7eLPCTLSClwWcwZlDvM9nxf8eVXPHivb3lJgjuCKq1&lt;br /&gt;
firewall --service=ssh&lt;br /&gt;
authconfig --enableshadow --passalgo=sha512 --enablefingerprint&lt;br /&gt;
selinux --enforcing&lt;br /&gt;
timezone --utc America/New_York&lt;br /&gt;
bootloader --location=mbr --driveorder=sda --append=&amp;quot;crashkernel=auto rhgb quiet&amp;quot;&lt;br /&gt;
# The following is the partition information you requested&lt;br /&gt;
# Note that any partitions you deleted are not expressed&lt;br /&gt;
# here so unless you clear all partitions first, this is&lt;br /&gt;
# not guaranteed to work&lt;br /&gt;
#clearpart --linux --drives=sda&lt;br /&gt;
&lt;br /&gt;
#part /boot --fstype=ext4 --size=500&lt;br /&gt;
#part pv.0eC2O2-zBd7-3gib-35ff-Mv56-yl76-1YmxEH --grow --size=1&lt;br /&gt;
&lt;br /&gt;
#volgroup vg_ws194122 --pesize=4096 pv.0eC2O2-zBd7-3gib-35ff-Mv56-yl76-1YmxEH&lt;br /&gt;
#logvol / --fstype=ext4 --name=lv_root --vgname=vg_ws194122 --grow --size=1024 --maxsize=51200&lt;br /&gt;
#logvol swap --name=lv_swap --vgname=vg_ws194122 --grow --size=2032 --maxsize=4064&lt;br /&gt;
repo --name=&amp;quot;Red Hat Enterprise Linux&amp;quot;  --baseurl=http://216.119.202.5/dvd/rhel/6.0/x86/ --cost=100&lt;br /&gt;
&lt;br /&gt;
%packages&lt;br /&gt;
@additional-devel&lt;br /&gt;
@backup-client&lt;br /&gt;
@backup-server&lt;br /&gt;
@base&lt;br /&gt;
@cifs-file-server&lt;br /&gt;
@compat-libraries&lt;br /&gt;
@console-internet&lt;br /&gt;
@core&lt;br /&gt;
@debugging&lt;br /&gt;
@basic-desktop&lt;br /&gt;
@desktop-debugging&lt;br /&gt;
@desktop-platform&lt;br /&gt;
@desktop-platform-devel&lt;br /&gt;
@development&lt;br /&gt;
@dial-up&lt;br /&gt;
@directory-client&lt;br /&gt;
@directory-server&lt;br /&gt;
@mail-server&lt;br /&gt;
@eclipse&lt;br /&gt;
@emacs&lt;br /&gt;
@storage-client-fcoe&lt;br /&gt;
@ftp-server&lt;br /&gt;
@fonts&lt;br /&gt;
@general-desktop&lt;br /&gt;
@graphical-admin-tools&lt;br /&gt;
@graphics&lt;br /&gt;
@hardware-monitoring&lt;br /&gt;
@input-methods&lt;br /&gt;
@internet-browser&lt;br /&gt;
@java-platform&lt;br /&gt;
@kde-desktop&lt;br /&gt;
@large-systems&lt;br /&gt;
@legacy-unix&lt;br /&gt;
@legacy-x&lt;br /&gt;
@mainframe-access&lt;br /&gt;
@system-management-messaging-client&lt;br /&gt;
@mysql-client&lt;br /&gt;
@mysql&lt;br /&gt;
@nfs-file-server&lt;br /&gt;
@network-server&lt;br /&gt;
@storage-server&lt;br /&gt;
@network-file-system-client&lt;br /&gt;
@network-tools&lt;br /&gt;
@php&lt;br /&gt;
@performance&lt;br /&gt;
@perl-runtime&lt;br /&gt;
@postgresql-client&lt;br /&gt;
@postgresql&lt;br /&gt;
@print-server&lt;br /&gt;
@print-client&lt;br /&gt;
@remote-desktop-clients&lt;br /&gt;
@scientific&lt;br /&gt;
@security-tools&lt;br /&gt;
@server-platform&lt;br /&gt;
@server-platform-devel&lt;br /&gt;
@server-policy&lt;br /&gt;
@smart-card&lt;br /&gt;
@storage-client-multipath&lt;br /&gt;
@system-management&lt;br /&gt;
@system-admin-tools&lt;br /&gt;
@tex&lt;br /&gt;
@technical-writing&lt;br /&gt;
@web-server&lt;br /&gt;
@web-servlet&lt;br /&gt;
@system-management-wbem&lt;br /&gt;
@x11&lt;br /&gt;
@storage-client-iscsi&lt;br /&gt;
libXinerama-devel&lt;br /&gt;
xorg-x11-proto-devel&lt;br /&gt;
startup-notification-devel&lt;br /&gt;
libgnomeui-devel&lt;br /&gt;
libbonobo-devel&lt;br /&gt;
junit&lt;br /&gt;
libXau-devel&lt;br /&gt;
libgcrypt-devel&lt;br /&gt;
popt-devel&lt;br /&gt;
libdrm-devel&lt;br /&gt;
libXrandr-devel&lt;br /&gt;
libxslt-devel&lt;br /&gt;
libglade2-devel&lt;br /&gt;
gnutls-devel&lt;br /&gt;
mtools&lt;br /&gt;
pax&lt;br /&gt;
python-dmidecode&lt;br /&gt;
oddjob&lt;br /&gt;
sgpio&lt;br /&gt;
genisoimage&lt;br /&gt;
wodim&lt;br /&gt;
abrt-gui&lt;br /&gt;
qt-mysql&lt;br /&gt;
desktop-file-utils&lt;br /&gt;
ant&lt;br /&gt;
rpmdevtools&lt;br /&gt;
jpackage-utils&lt;br /&gt;
rpmlint&lt;br /&gt;
certmonger&lt;br /&gt;
pam_krb5&lt;br /&gt;
krb5-workstation&lt;br /&gt;
nscd&lt;br /&gt;
pam_ldap&lt;br /&gt;
nss-pam-ldapd&lt;br /&gt;
samba&lt;br /&gt;
netpbm-progs&lt;br /&gt;
ImageMagick&lt;br /&gt;
tcp_wrappers&lt;br /&gt;
xterm&lt;br /&gt;
xorg-x11-xdm&lt;br /&gt;
libXmu&lt;br /&gt;
perl-DBD-MySQL&lt;br /&gt;
dnsmasq&lt;br /&gt;
perl-DBD-SQLite&lt;br /&gt;
rdesktop&lt;br /&gt;
tigervnc&lt;br /&gt;
atlas&lt;br /&gt;
numpy&lt;br /&gt;
hmaccalc&lt;br /&gt;
crypto-utils&lt;br /&gt;
certmonger&lt;br /&gt;
tog-pegasus&lt;br /&gt;
%end&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>