Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Requirements for Installing Oracle 11gR1 RDBMS on RHEL 5 on To

AMD64/EM64T [ID 438766.1] Bottom

Modified:17-May-2012 Type:HOWTO Comments


Status:PUBLISHED Priority:2 (0)

In this Document

Goal
Fix
References

Applies to:

Oracle Server - Enterprise Edition - Version 11.1.0.6 to 11.1.0.6 [Release 11.1]


Linux x86-64
Checked for relevance on 17-MAY-2012
.
Oracle Server Enterprise Edition - Version: 11.1.0.6.0 to 11.1.0.7.0

Goal

This document describes the steps for installing 11gR1 (11.1.0.x) 64-bit on
RHEL 5 (x86_64) Platform.

Since it is the expressed goal to keep Oracle Enterprise Linux functionally


IDENTICAL to RHEL, this NOTE is also completely applicable to OEL 5 (any
update level).

Fix

1. Minimum Hardware Requirements:

- 1.0 GB (1024 MB) of physical RAM


Check the physical RAM size using the following command:

# grep MemTotal /proc/meminfo

- The following table describes the relationship between installed RAM and the
configured swap space requirement:

Available RAM Swap Space Required

Between 1024 MB and 2048 MB 1.5 times the size of RAM


Between 2049 MB and 8192 MB Equal to the size of RAM
More than 8192 MB 0.75 times the size of RAM

Check the size of the configured swap space using the following command:

# grep SwapTotal /proc/meminfo

Disk Space

- 400 MB of disk space in the /tmp directory.


- between 3.5 GB and 5 GB of disk space for the Oracle software, depending on
the installation type.
- 1.6 GB of disk space for a preconfigured database that uses file system
storage (optional)

2. Install the required OS Packages

* Red Hat Enterprise Linux AS 5 (any update level). When a newer "update"
level is used, the RPM release numbers (such as 2.6.18-53) may be slightly
higher. This is fine so long as you are still using RHEL AS/ES 5 RPMs.
o Kernel-2.6.18-53.EL

* As is specified in section 4.3 of the Oracle Database Quick Installation Guide


11g Release 1 (11.1) for Linux x86-64 Part Number B32285-01, Oracle
recommends that you install the Linux operating system with the default
software packages (RPMs); do not customize the RPMs during installation. For
additional information on "default-RPMs", see Note 376183.1, "Defining a
"default RPMs" installation of the RHEL OS"

* The version numbers for the packages given below are the minimum versions
required. If you have packages with higher versions than the versions
mentioned below, you can install them.

- compat-libstdc++-33-3.2.3-61.x86_64.rpm
- compat-libstdc++-33-3.2.3-61.i386.rpm
- elfutils-libelf-devel-0.125-3.el5.x86_64.rpm (elfutils-libelf-
devel-static-0.125-3.el5.x86_64.rpm will be required as a pre-
requisite)
- libgomp-4.1.1-52.el5.x86_64.rpm
- libgcc-4.1.1-52.el5.x86_64.rpm
- libstdc++-devel-4.1.1-52.el5.x86_64.rpm
- gcc-c++-4.1.1-52.el5.x86_64.rpm
- glibc-headers-2.5-12.x86_64.rpm
- glibc-devel-2.5-12.x86_64.rpm
- glibc-devel-2.5-12.i386.rpm
- libaio-devel-0.3.106-3.2.x86_64.rpm
- sysstat-7.0.0-3.el5.x86_64.rpm
- kernel-headers-2.6.18-8.el5.x86_64.rpm

* Please note the following :


- RPM's
elfutils-libelf-devel-0.125-3.el5.x86_64.rpm
elfutils-libelf-devel-static-0.125-3.el5.x86_64.rpm
are depend upon each other. So they must be installed together in one "rpm -
ivh" command as follows:
% rpm -ivh elfutils-libelf-devel-0.125-3.el5.x86_64.rpm elfutils-
libelf-devel-static-0.125-3.el5.x86_64.rpm

Note: i386 packages might require the --force option during installation if the
64-bit version of the same package is already installed.
For example, "rpm -ivh --force glibc-devel-2.3.4-2.9.i386.rpm" may be
required.

To use ODBC, you must also install the following additional 32-bit ODBC RPMs:

- unixODBC-2.2.11-7.1.i386.rpm
- unixODBC-devel-2.2.11-7.1.i386.rpm

Other required RPMs (as per Install Guide, release Notes)


(these get installed during a "Default RPM" installation of the RHEL AS/ES 5 OS.
Additional RPMs may be needed if a "less-than-default-RPMs" installation of
RHEL AS/ES 5 is performed. For additional information on "default-RPMs",
please see the Metalink NOTE cited above.)

- binutils-2.17.50.0.6-2.el5.x86_64.rpm
- elfutils-libelf-0.125-3.el5.x86_64.rpm
- glibc-2.5-12.x86_64.rpm
- glibc-2.5-12.i686.rpm
- glibc-common-2.5-12.x86_64.rpm
- libaio-0.3.106-3.2.x86_64.rpm
- libaio-0.3.106-3.2.i386.rpm
- libgcc-4.1.1-52.el5.x86_64.rpm
- libgcc-4.1.1-52.el5.i386.rpm
- libstdc++-4.1.1-52.el5.x86_64.rpm
- libstdc++-4.1.1-52.el5.i386.rpm
- make-3.81-1.1.x86_64.rpm

3. Set the Kernel Parameters:

Edit /etc/sysctl.conf file and add the following entries


If the current value for any parameter is higher than the value listed, then do
not change the value of that parameter. Range values (such as
net.ipv4.ip_local_port_range) must match exactly.

fs.file-max = 6815744
kernel.shmall = physical RAM size / pagesize For most systems, this
will be the value 2097152. See Note 301830.1 for more information.
kernel.shmmax = 1/2 of physical RAM. This would be the value
2147483648 for a system with 4Gb of physical RAM.
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
@per Bug 7507772
The runInstaller (OUI) checks may expect this to be the old guida
nce of “1024 65000”. The new guidance from Oracle development is “9000
65500”. Please allow the runInstaller (OUI) to proceed with the new gu
idance from Oracle development.
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048576

- For the above kernel settings to take effect execute following command
# sysctl -p

4. Verify and make sure that host name has been set by using the hostname
command as follows:

# hostname

The output of this command should be similar to the following:


myhost.mycomputer.com

# hostname -i

The output of this command should be IP address of this host

5. Configure Oracle Software owner and group(s) and create the required
directories for Oracle database

# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
# mkdir -p /u01/app/oracle
# chown -R oracle:oinstall /u01/app
6. Configure Oracle software owner limits

- Add the following lines to the /etc/security/limits.conf file:

oracle soft nproc 2047


oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

- Add or edit the following line in the /etc/pam.d/login file


session required pam_limits.so

- Add the following lines to /etc/profile

if [ $USER = "oracle" ]; then


if [ $SHELL = "/bin/ksh" ]; then
ulimit -u 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

7. Create, change ownership, and change permission of the $ORACLE_BASE/../


directory, using the appropriate section of the 11gR1 Install Guide for x86_64
Linux. Please be careful not to overlook the fact that the default oraInventory
location for first-time installs has changed to $ORACLE_BASE/../oraInventory in
11gR1. This means that the account used to install the Oracle software must
have write permissions from $ORACLE_BASE/../ (aka /mount_point/app/) and
downwards. For additional information, refer to Note 452780.1, "11gR1 OUI
Error: 'OUI-10035 OR OUI-10033' "
(This issue has already been taken care by giving proper permissions to the
directory /u01/app (See step 5) where /u01/app/oracle should be set as the
$ORACLE_BASE).

8. Please set the Linux feature "SELinux" to "Permissive" mode. This issue is
described more fully in Metalink Note 454196.1, "./sqlplus: error on libnnz11.so:
cannot restore segment prot after
reloc".

9. Start the Oracle Software installation


- Log in as Oracle Software owner
- Set the environment variable ORACLE_BASE
- If any of the following environment variables are set, then remove/unset
them.

ORACLE_HOME
ORACLE_SID
TNS_ADMIN
Any other Oracle Home references in PATH variable
LD_LIBRARY_PATH
Java References (like JAVA_HOME..etc)

- set 'umask 0022' and ulimit stack size to 32768

% umask 0022
% ulimit -s 32768

- start the installer from the “database” directory of your 11g installation
staging area

% cd database
% ./runInstaller

ADDITIONAL NOTE
------------------------

Following rpm command can be used to distinguish between a 32-bit or 64-bit


package.
#rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\
n" | grep <package_name>
For example, "rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}
(%{ARCH})\n" | grep glibc-devel"

You might also like