Oracle 10gR2 On RHEL5 x86安装技术文档(原版英文)

来源:互联网 发布:幻灯片音乐软件 编辑:程序博客网 时间:2024/04/27 21:21

 

Requirements For Installing Oracle 10gR2 On RHEL/OEL 5 (x86) [ID 419646.1]


 

修改时间 20-OCT-2011     类型 HOWTO     状态 PUBLISHED

 

In this Document
  Goal
  Solution
  References


Applies to:

Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 10.2.0.5 - Release: 10.2 to 10.2
Linux x86
Intel Based Server LINUX

Goal

This document describes the installation of Oracle 10gR2 database on RedHat Enterprise Linux/Oracle Enterprise Linux 5 (x86).

NOTE: RAC customers are strongly advised to also review Note:414163.1

Solution

Installation requirements:

1. Hardware Requirements

a) Physical Memory

At least 1024MB 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 Space

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

To determine the size of the configured swap space, enter the following command:

# grep SwapTotal /proc/meminfo


c) Disk space Requirement

  • 400 MB of disk space in the /tmp directory
  • Between 1.5 GB and 3.5 GB of disk space for the Oracle software, depending on the installation type
  • 1.2 GB of disk space for a preconfigured database that uses file system storage (optional)

To determine the amount of free disk space on the system, enter the following command:

# df -h 

2. Kernel Requirements

a) Version

The system must be running the following kernel version (or a later version)

2.6.18-8

To determine whether the required kernel is installed, enter the following command:

# uname -r

 b) SELinux

Due to an internal bugs of Oracle database (Bug 6140224, Bug 6079461), SELinux has to be disabled on RHEL/OEL 5 to work with Oracle database 10.2. Please refer Note 454196.1 for more information about these bugs.
To check whether SELinux is Enabled or Disabled in a system, please refer to Note 432988.1
To disable SELinux, please refer to  Note 457458.1

3. Installing required packages 

The following packages are required to be installed to have a supported to installation. It is recommended to choose a "default list of RPMs" during installation as per Note 376183.1 'Defining a "default RPMs" installation of the RHEL OS'. Please note following points while installing these packages

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

b) Some of the below packages might be already part of "Default RPMs installation", and some of the packages might be already part of "base" installation of OS.

c) Some of the below packages may require other packages as dependencies. So, make sure that you have installed these packages including the dependency packages required.

 

binutils-2.17.50.0.6-2.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125
gcc-4.1.1-52
gcc-c++-4.1.1-52
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-headers-2.5-12
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52.e15
make-3.81-1.1
sysstat-7.0.0
unixODBC-2.2.11
unixODBC-devel-2.2.11

 

 Note:  As per documentationbug 7680459, the package libXp-1.0.0-8 is also required to invoke OUI successfully.

4.Set the kernel parameters

Add the following the lines in the file /etc/sysctl.conf

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 9000 65500
    The runInstaller (OUI) checks may expect this to be the old guidance of "1024 65000". The new guidance from Oracle development is "9000 65500". Please allow the runInstaller (OUI) to proceed with the new guidance from Oracle development.
net.core.rmem_default = 262144
net.core.rmem_max = 2097152
net.core.wmem_default = 262144
net.core.wmem_max = 1048576


To place these changes into effect, execute the command:

# sysctl -p

 5.Create Oracle user and groups

# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle


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

For example:
# mkdir -p /u01/app/oracle
# chown -R oracle:oinstall /u01/app/oracle


7. Set the session limits for 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


Add the following lines to the /etc/profile.

if [ $USER = "oracle" ]; then
         ulimit -u 16384
         ulimit -n 65536
fi


8. Configure the Oracle user's environment

Configuring the oracle User's Environment, using the appropriate section of "Oracle� Database Quick Installation Guide 10g Release 2 (10.2) for Linux x86". Note that setting $ORACLE_BASE (not $ORACLE_HOME) in the environment will ease a couple of entries in the Oracle Universal Installer.

For example, if oracle user is using bash shell, and has the home directory as /home/oracle.
The following lines to be added to /home/oracle/.bash_profile

export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=orcl
unset ORACLE_HOME

 9. Invoking OUI

Log in as Oracle user and start installation by any one of the following methods. This is required because Oracle 10.2 expects the OS to be RHEL 3 or RHEL/OEL 4.

Method 1:

# ./runInstaller -ignoreSysPrereqs

Method 2:

FollowNote 456634.1

 10. Warning at "Product-Specific Prerequisite Checks" screen

During the installation at the screen "Product-Specific Prerequisite Checks", OUI gives a warning that Oracle database 10g is not certified on the current operating system. If we still proceed to continue, OUI gives a dialog-box with a warning
"Some recommended prerequisite checks have failed. You might get errors during installation. Do you want to proceed?"
This warning can be ignored, if all the above requirements are satisfied.

 

Change History:

Jan 19, 2009: Updated kernel parameter net.ipv4.ip_local_port_range as per correction request given by Oracle development team.

Feb 11, 2009: Updated with SELinux information.

Feb 27, 2009: Removed kernel parameter fs.file-max = 65536 , because the default value 101365 is more than 65536.

Mar 2, 2009: Removed kernel parameters net.ipv4.tcp_wmem and net.ipv4.tcp_rmem as they are not required. (Reference: unpublished Bugs 7647281 and 7647303)

Aug 24, 2010: Updated kernel parameter net.ipv4.ip_local_port_range as per correction request given by Oracle development team.

References

BUG:6711037 - RELEASE NOTE 10G RELEASE 2 (10.2) FOR LINUX X86-64 NEEDS UPDATE FOR RHEL/OEL 5.0
BUG:7680459 - LIBXP PACKAGE IS MISSING FROM LIST OF PACKAGES REQUIRED
NOTE:376183.1 - Defining a "default RPMs" installation of the RHEL OS
NOTE:414163.1 - 10gR2 RAC Install issues on Oracle EL5 or RHEL5 or SLES10 (VIPCA / SRVCTL / OUI Failures)
NOTE:421308.1 - Requirements For Installing Oracle10gR2 On RHEL 5/OEL 5 (x86_64)
NOTE:456634.1 - Prerequisite Checks Fail When Installing 10.2 On Red Hat 5 (RHEL5)
http://download.oracle.com/docs/cd/B19306_01/relnotes.102/b15659/toc.htm#CJABEBJC

原创粉丝点击