Oracle 11gR2 on RHEL4 x86安装技术文档(原版英文)

 
Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 4 x86 [ID 880211.1]

 修改时间 01-DEC-2011类型 BULLETIN 状态 PUBLISHED 

In this Document
Purpose
Scope and Application
Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 4 x86
References


Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.0 and later [Release: 11.2 and later ]
Linux x86
***Checked for relevance on 01-12-2011***

Purpose

This note explains the requirements that need to be met for a successful installation of RDBMS release 11.2.0.x (a 1 DVD set) on RedHat 4 update7 (or greater), 32-bit (x86).

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 this NOTE does not include how to create the Linux OS account named "oracle", nor does it cover how to set environment variables. Both are adequate covered in Chapter 2 "Oracle Database Preinstallation Requirements" of the 11gR2 Installation Guide manual.

You can download the 11.2.0.1 from following URL. But you require a valid OTN account for download. http://www.oracle.com/technology/software/products/database/oracle11g/112010_linuxsoft.html

Scope and Application

This procedure is meant for those planning/trying to install Oracle Server 11.2.0.1.0 (or above) on Red Hat Enterprise Linux AS/ES 4 update 7 (or greater) on the 32-bit (x86) platform. Since it is the expressed goal to keep Oracle Enterprise Linux functionally IDENTICAL to RHEL, this NOTE is also completely applicable to 32-bit (x86) OEL 4 update 7 (or greater)

Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 4 x86

Requirements for Installing 32-bit Oracle 11gR2 RDBMS on RHEL AS/ES 4 update 7 (or greater) 32-bit (x86)

I. Hardware:
===========
1. Minimum Hardware Requirements
a.) At least 1.0 Gb (1024 MB) of physical RAM
b.) Swap disk space proportional to the system's physical memory as follows:

RAM Swap Space
1024 Mb to 2048 Mb 1.5 x RAM
2049 Mb to 16 Gb 1 x RAM
greater than 16 Gb 16 Gb

c.) 1024 Mb of disk space (and less than 2Tb of disk space) in the /tmp directory.
d.) approximately 4 Gb of local disk space for the database software.
e.) approximately 1.7 Gb of disk space for a preconfigured database that uses file system storage (optional)


II. Software:
============
1. As is specified in section 1.3.2 of the Oracle Database Installation Guide for 11gR2 on Linux (part number E10840-02), Oracle recommends that you install the Linux operating system with the default software packages (RPMs) and do not customize the RPMs during installation. For additional information on "default-RPMs", please see Note 376183.1, "Defining a "default RPMs" installation of the RHEL OS"

2. Red Hat Enterprise Linux AS/ES 4 update 7 (or greater), which is Kernel 2.6.9-78 or newer.

3. Required OS Components (per Release Notes, and Install Guide)
a.) The exact version number details of this list are based upon 32-bit (x86) RHEL AS 4 update 7. When a newer "update" level is used, the RPM release numbers (such as 2.6.9-78) may be slightly higher (such as 2.6.9-87 or 2.6.9-96). Since RHEL AS/ES 4 "update" levels of "update 7" and beyond are certified, this is fine so long as you are still using 32-bit Linux (x86) RHEL AS/ES 4 RPMs.
b.) Some of the Install Guide requirements will already be present from the "default-RPMs" foundation of Linux that you started with:
1.) binutils-2.15.92.0.2-25
2.) compat-libstdc++-33-3.2.3-47.3
3.) elfutils-libelf-0.97.1-5
4.) glibc-2.3.4-2.41
5.) glibc-common-2.3.4-2.41
6.) libaio-0.3.105-2
7.) libgcc-3.4.6-10
8.) libstdc++-3.4.6-10
9.) make-3.80-7.EL4
10.) pdksh-5.2.14-30.6
11.) unixODBC-2.2.11-1.RHEL4.1

c.) The remaining Install Guide requirements will have to be installed:
1.) elfutils-libelf-devel-0.97.1-5.i386.rpm
2.) glibc-headers-2.3.4-2.41.i386.rpm
a.) glibc-kernheaders-2.4-9.1.103.EL.i386.rpm will be required as a prerequisite
3.) glibc-devel-2.3.4-2.41.i386.rpm
4.) gcc-3.4.6-10.i386.rpm
5.) libstdc++-devel-3.4.6-10.i386.rpm
6.) gcc-c++-3.4.6-10.i386.rpm
7.) libaio-devel-0.3.105-2.i386.rpm
8.) sysstat-5.0.5-19.el4.i386.rpm
9.) unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm


4. Additional Required OS Components (per the runInstaller OUI)
a.) intentionally blank

5. Additional Required OS Components (per this NOTE)
a.) Please do not rush, skip, or minimize this critical step. This list is based upon a "default-RPMs" installation of 32-bit (x86) RHEL AS/ES 4. Additional RPMs (beyond anything known to Oracle) may be needed if a "less-than-default-RPMs" installation of 32-bit (x86) RHEL AS/ES 4 is performed. For more information, please refer toNote 376183.1, "Defining a "default RPMs" installation of the RHEL OS"
b.) Several RPMs will be required as prerequisites to those listed in section II.3.c:
1.) glibc-kernheaders-2.4-9.1.103.EL.i386.rpm will be required as a prerequisite
2.) intentionally blank

6. Oracle Global Customer Support has noticed a recent trend with install problems that originates from installing too many RPMs. For example:
a.) installing your own JDK version (prior to beginning the Oracle Software “runInstaller”) is not needed on Linux, and is not recommended on Linux. A pre-existing JDK often interferes with the correct JDK that the Linux Oracle Software “runInstaller” will place and use.
b.) installing more than the required version of the gcc / g++ RPMs often leads to accidentally using (aka enabling or activating) the incorrect one. If you have multiple RDBMS versions installed on the same Linux machine, then you will likely have to manage multiple versions of gcc /g++ . For more information, please see Note 444084.1, "Multiple gcc / g++ Versions in Linux"

7. All of the RPMs in section II. are on the Red Hat Enterprise Linux AS/ES 4 32-bit (x86) distribution media.

III. Environment:
================
1. Modify your kernel settings in /etc/sysctl.conf (RedHat) as follows. If the current value for any parameter is higher than the value listed in this table, do not change the value of that parameter. Range values (such as net.ipv4.ip_local_port_range) must match exactly.
kernel.shmall = physical RAM size / pagesize For most systems, this will be the value 2097152. SeeNote 301830.1 for more information.
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
fs.file-max = 512 x processes (for example 6815744 for 13312 processes)
fs.aio-max-nr = 1048576
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 = 1048576

2. To activate these new settings into the running kernel space, run the “sysctl –p” command

3. Set Shell Limits for the oracle User. Assuming that the "oracle" Unix user will perform the installation, do the following:

a.) Add the following settings to /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

b.) Add or edit the following line in the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so

c.) Add the following lines to /etc/profile:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

4. The gcc-3.4.6 and gcc-c++-3.4.6 RPM items above will ensure that the correct gcc / g++ versions are installed. It is also required that you ensure that these correct gcc / g++ versions are active, and in-use. Ensure that the commands "gcc --version" and "g++ --version" each return "3.4.x".

5. The hostname command should return the fully qualified hostname as shown
below:
% hostname
hostname.domainname

6. If any Java packages are installed on the system, unset the Java environment variables, for example JAVA_HOME.

7. The oracle account used to install Oracle 11.2.0.1, should not have the Oracle install related variables set by default. For example setting ORACLE_HOME, PATH, LD_LIBRARY_PATH to include Oracle binaries in .profile, .login file and /etc/profile.d should be completely avoided.
a.) Setting $ORACLE_BASE (not $ORACLE_HOME) is recommended, since it eases a few prompts in the OUI runInstaller tool.
b.) following the succesful install, it is recommended to set $ORACLE_HOME, and to set $PATH to include the Oracle binaries ($ORACLE_HOME/bin) as the first location.

8. Log in as Oracle user and start the installation as follows:
./runInstaller

a.) it is best practice not to use any form of "su" to start the runInstaller, in order to avoid potential display-related problems.
b.) When performing the 11.2.0.1 installation, make sure to use the "runInstaller" version that comes with 11.2.0.1 software.
c.) When performing any subsequent 11.2.0.x patchset, make sure to use the "runInstaller" version that comes with the patchset.


ADDITIONAL NOTES
----------------
1. Supported distributions of the 32-bit (x86) Linux OS can run on on AMD64/EM64T and Intel Processor Chips that adhere to the x86_64 architecture
a.) Oracle 32-bit running on AMD64/EM64T with 32-bit OS is supported, and is covered by this NOTE.
b.) Oracle 32-bit running on AMD64/EM64T with 64-bit OS is not certified and is not supported.

2. Asynchronous I/O on ext2 and ext3 file systems is supported if your scsi/fc driver supports that functionality.

3. No extra patch is required for the DIRECTIO support for x86.

4. No LD_ASSUME_KERNEL value should be used with the 11gR2 product.

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:376183.1 - Defining a "default RPMs" installation of the RHEL OS
NOTE:444084.1 - Multiple gcc / g++ Versions in Linux
NOTE:567506.1 - Maximum SHMMAX values for Linux x86 and x86-64
NOTE:605251.1 - Where To Locate The Oracle RDBMS Installation Guides, Upgrade Guides and Release Notes
NOTE:781246.1 - Booting Kernel 2.6.9-78.EL Hangs
NOTE:169706.1 - Oracle Database on Unix AIX,HP-UX,Linux,Mac OS X,Solaris,Tru64 Unix Operating Systems Installation and Configuration Requirements Quick Reference (8.0.5 to 11.2)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是在RHEL 7.8上安装Oracle 11g的基本步骤: 1. 安装必要的软件包 在RHEL 7.8上安装Oracle 11g需要安装一些必要的软件包,包括gcc、glibc、libstdc++、make、binutils、compat-libstdc++等。可以使用以下命令安装这些软件包: ``` sudo yum install gcc glibc libstdc++ make binutils compat-libstdc++ ``` 2. 创建Oracle用户和组 在安装Oracle 11g之前,需要创建一个名为oracle的用户和一个名为oinstall的组。可以使用以下命令创建这些用户和组: ``` sudo groupadd oinstall sudo groupadd dba sudo useradd -g oinstall -G dba oracle ``` 3. 配置内核参数和资源限制 在安装Oracle 11g之前,需要将一些内核参数和资源限制配置为Oracle建议的值。可以编辑/etc/sysctl.conf文件并添加以下行: ``` fs.file-max = 6815744 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4398046511104 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 ``` 然后重新加载sysctl.conf文件中的参数: ``` sudo sysctl -p ``` 还需要编辑/etc/security/limits.conf文件并添加以下行: ``` oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 ``` 4. 配置环境变量 在安装Oracle 11g之前,需要将一些环境变量设置为Oracle建议的值。可以编辑/etc/profile文件并添加以下行: ``` export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export ORACLE_SID=orcl export PATH=$PATH:$ORACLE_HOME/bin ``` 然后重新加载profile文件中的变量: ``` source /etc/profile ``` 5. 下载并解压Oracle 11g 可以从Oracle官方网站下载Oracle 11g的安装文件(例如linux.x64_11gR2_database_1of2.zip和linux.x64_11gR2_database_2of2.zip),然后使用unzip命令解压文件: ``` unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR2_database_2of2.zip ``` 6. 运行安装程序 在解压后的目录中,可以找到一个名为runInstaller的脚本,可以使用root用户执行此脚本来启动安装程序: ``` sudo ./runInstaller ``` 按照安装程序的指示进行安装,包括选择安装类型、指定Oracle安装路径、创建数据库、设置管理员密码等。 7. 完成安装 安装程序完成后,可以使用oracle用户登录到新安装Oracle数据库中,并且可以使用sqlplus等工具测试数据库是否正常运行。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值