Requirements for Installing Oracle 11gR2 32-bit on SLES 10 (x86) [ID 763386.1]
修改时间 21-FEB-2011 类型 BULLETIN 状态 PUBLISHED 
In this Document
Purpose
Scope and Application
Requirements for Installing Oracle 11gR2 32-bit on SLES 10 (x86)
References

Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later [Release: 11.2 and later ]

 

Purpose
This document describes the installation of Oracle 11gR2 database on SUSE-10 on 32 bit (x86) Platform.


It is NOT the purpose of this NOTE to repeat every "how-to" step that is presented in the 11gR2 Installation Guide manual. For example it does not cover how to set environment variables. It is adequately covered in Chapter 2 "Oracle Database Preinstallation Requirements" of the 11gR2 Installation Guide manual.
Scope and Application
This document is meant for those planning to install Oracle Server 11.2.0.1.0 (or above) on SUSE Linux 10 SP2 on the 32-bit (x86) platform.
Requirements for Installing Oracle 11gR2 32-bit on SLES 10 (x86)
1. Hardware Requirements

a) Minimum 1 GB of RAM.

At least 1 GB of physical RAM is required. To determine the physical RAM size, enter the following command:
# grep MemTotal /proc/meminfo

b) Swap Space

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

RAM SWAP
Between 1 GB and 2 GB 1.5 times the size of RAM
Between 2 GB and 16 GB Equal to the size of RAM
More than 16 GB 16 GB


c) Disk space Requirement
  • At least 1GB of free space in /tmp directory.
  • Between 3.8 GB and 5 GB of disk space for the Oracle software, depending on the installation type.
d) Display Setting Requirement
  • The minimum display requirement for Oracle Database 11g Release 2 is a resolution of 1024 x 768 or higher for the new installer, if you are installing on a host server.
2. Kernel Requirements

The system must be running the following kernel version (or higher ):
2.6.16.21 or higher

To determine whether the required kernel is installed, enter the following command:
# uname -r

3. Software Requirement

a) As is specified in section 1.3.2 of the Oracle Database Installation Guide for 11gR2 on Linux (part number E10840-01), Oracle recommends that you install the Linux operating system with the default software packages (RPMs). Do not customize the RPMs during installation. This installation includes most required packages, and helps to limit manual checks of package dependencies. Please see:
Note 386391.1 - Defining a "default RPMs" installation of the SLES OS

b) The version numbers for these packages given below are the minimum version required. This list is based upon SLES 10 SP2. When a different "service pack (SP)" level is used, the RPM release numbers (such as 2.6.16.21-0.8) may be slightly higher (such as 2.6.16.21-0.73 or 2.6.16.21-0.143). This is fine as long as you are still using SLES 10 RPMs.

c) Some of the below packages may require other packages as dependencies. So, ensure that you have installed these packages including the dependency packages required.
Some of these packages will be already installed during default installation.
1. binutils-2.16.91.0.5
2. compat-libstdc++-5.0.7-22.2
a.) In SLES 10 SP3 (and greater), please use libstdc++33-3.3.3-7.8.1 instead. Novell states that “the libstdc++33 package replaces the compat-libstdc++ package”. Reference Novell Document 7004995, created 12-09-2009, quoted as of 02-19-2010
3. gcc-c++-4.1.2
4. glibc-2.5-24
5. ksh-93r-12.9
6. libaio-0.3.104
7. libgcc-4.1.2
8. libstdc++-4.1.2
9. make-3.80


The remaining Install Guide requirements will need to be installed.
1. gcc-4.1.2
a) libmudflap >= 4.1.2_20070115-0.21 is required by gcc as prerequisite.
2. gcc-c++-4.1.2
3. glibc-devel-2.4
4. libaio-devel-0.3.104
5. libelf-0.8.5
6. libstdc++-devel-4.1.2
7. sysstat-8.0.4



d) Additional Required OS Components (per the runInstaller OUI)
Please do not rush, skip, or minimize this critical step. This list is based upon a "default-RPMs" installation of SLES 10. Additional RPMs (beyond anything known to Oracle) may be needed if a "less-than-default-RPMs" installation of SLES 10 is performed. For more detail, please see Note 386391.1, "Defining a "default RPMs" installation of the SLES OS".
cvuqdisk-1.0.2-1.rpm
@
This Oracle (internal) RPM is available from the "../clusterware/Disk1/rpm" directory of the 11gR2 Clusterware software.

e) If you intend to use ODBC, then you should install the most recent ODBC Driver Manager for Linux. You can download and install the Driver Manager from the following link: http://www.unixodbc.org
unixODBC-2.2.11
unixODBC-devel-2.2.11

You do not require ODBC Driver Manager to install Oracle Database.

f) All of the RPMs in section 3 are on the SuSE Linux Enterprise Server 10 x86 (32-bit) distribution media.

4. Environment

Modify your kernel settings. Add the following lines in the file /etc/sysctl.conf
fs.file-max = 512 x processes (for example 6815744 for 13312 processes)
kernel.shmall = physical RAM size / pagesize For most systems, this will be the value 2097152. See Note 301830.1
kernel.shmmax = 1/2 of physical RAM, but not greater than 4GB.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
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
fs.aio-max-nr = 1048576

To place these changes into effect, execute the command:
# sysctl -p

Note: The minimum value required for shmmax is 0.5 GB. However, Oracle recommends that you set the value of shmmax to 2.0 GB for optimum performance of the system.

on SUSE Linux Enterprise Server systems, enter the following command to ensure that the system reads the /etc/sysctl.conf file when it restarts:
# /sbin/chkconfig boot.sysctl on

5. Oracle user and groups
Creating the oracle user on SUSE does not create the home directoy /home/oracle. You may need to use the -m option while creating the oracle user.
# useradd -m -g oinstall -G dba oracle

On SUSE systems only, you must enter the GID of the oinstall group as the value for the parameter /proc/sys/vm/hugetlb_shm_group. Doing this grants members of oinstall a group permission to create shared memory segments.


6. Create the required directories for Oracle database and change the ownership

7. Set the session limits for the Oracle user
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 the following line in the /etc/pam.d/login file:
session required pam_limits.so

8. Configure Oracle Installation Owner Shell Limits
As root, add the following lines to /etc/profile to set shell limits for the user oracle, and for the BASH, Korn, and C shells:
This assumes that the oracle user is using bash shell which is given by default. Change this accordingly if the oracle user has a different shell.
umask 022
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -u 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536

9. Configure Name Resolutions
a) Verify that the /etc/hosts file is used for name resolution. You can do this by checking the hosts file entry in the nsswitch.conf file as follows:
# cat /etc/nsswitch.conf | grep hosts

The output of this command should contain an entry for files.

b) Verify that the host name has been set by using the hostname command as follows:
# hostname
myhost.example.com

c) Verify that the domain name has not been set dynamically.

d) Verify that the hosts file contains the fully qualified host name by using the following command:
# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.100.16 myhost.us.example.com myhost

10. Configure the Oracle user's environment

a) The oracle account used to install Oracle 11.2.0.1, should not have the ORACLE_HOME, PATH, LD_LIBRARY_PATH , TNS_ADMIN set to include Oracle binaries in .profile, .login file or /etc/profile.d. Unset if any of these have already been set.

b) Setting $ORACLE_BASE (not $ORACLE_HOME) is recommended, since it eases a few prompts in the OUI runInstaller tool.

c) Following the succesful install, it is recommended to set $ORACLE_HOME and to set $PATH to include $ORACLE_HOME/bin at the beginning of the $PATH string.

d) By default firewall (iptables) gets set on SUSE installation. You will need to disable this in order to have remote access.
%/etc/init.d/SuSEfirewall2_init stop

11. Invoke Oracle Universal installer to install Oracle 11gR2

Log in as Oracle user and start the installation from 11.2.0.1 stage location.
./runInstaller

If you are using SLES 10 SP3 (or greater), then once all the other requirements have been met (and the only missing one is the compat-libstdc++ package) then to complete the installation, the Ignore Requirements box needs to be checked and the install/next button selected. This will allow the installation to continue. Reference Novell Document 7004995, created 12-09-2009, quoted as of 02-19-2010

If you are not using RAC or ODBC and have not isntallled the packages cvuqdisk, unixODBC and unixODBC-devel and OUI warns you to install these, ignore and proceed.
References
NOTE:301830.1 - Upon startup of Linux database get ORA-27102: out of memory Linux-X86_64 Error: 28: No space left on device
NOTE:386391.1 - Defining a "default RPMs" installation of the SLES OS
NOTE:567506.1 - Maximum SHMMAX values for Linux x86 and x86-64