在rhel5.3 x86上安裝oracle 11.2.0.1 db software的過程

msdnchina發表於2011-10-10
在rhel5.3 x86上安裝oracle 11.2.0.1 db software的過程

參考:
Requirements for Installing Oracle 11gR2 RDBMS on RHEL (and OEL) 5 on 32-bit x86 [ID 880936.1]


I. Hardware:
主要是記憶體和硬碟的可用空間大小。這個不用說了。
我的虛擬機器環境是868m記憶體的,也可以安裝上,只是有個提示說記憶體小於1g,ignore此提示就行

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:

2. Red Hat Enterprise Linux Server 5.2 (or greater), which is Kernel 2.6.18-92 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 Server 5.2. When a higher "update" level is used, the RPM release numbers (such as 4.1.2-42) may be slightly higher (such as 4.1.2-57 or 4.1.3-10). Since "update 2" and greater of RHEL 5 are certified, this is fine so long as you are still using 32-bit Linux (x86) RHEL Server 5 RPMs
5.2及其以後的版本才認證透過。

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.17.50.0.6-2.el5
2.) compat-libstdc++-33-3.2.3-61
3.) elfutils-libelf-0.125-3.el5
4.) glibc-2.5-24
5.) glibc-common-2.5-12
6.) ksh-20060214-1.7
7.) libaio-0.3.106
8.) libgcc-4.1.2-42.el5
9.) libstdc++-4.1.2-42
10.) make-3.81-1.1

執行如下的命令檢查即可:
[root@leitest ~]# rpm -q binutils
[root@leitest ~]# rpm -q compat-libstdc++-33
[root@leitest ~]# rpm -q elfutils-libelf
[root@leitest ~]# rpm -q glibc
[root@leitest ~]# rpm -q glibc-common
[root@leitest ~]# rpm -q ksh
[root@leitest ~]# rpm -q libaio
[root@leitest ~]# rpm -q libgcc
[root@leitest ~]# rpm -q libstdc++-
[root@leitest ~]# rpm -q make



c.) The remaining Install Guide requirements will have to be installed:

1.) elfutils-libelf-devel-0.125-3.el5.i386.rpm
2.) kernel-headers-2.6.18-92.el5.i386.rpm
3.) glibc-headers-2.5-24.i386.rpm
4.) glibc-devel-2.5-24.i386.rpm
5.) libstdc++-devel-4.1.2-42.el5.i386.rpm
6.) libgomp-4.1.2-42.el5.i386.rpm
7.) gcc-4.1.2-42.el5.i386.rpm
8.) gcc-c++-4.1.2-42.el5.i386.rpm
9.) libaio-devel-0.3.106-3.2.i386.rpm
10.) sysstat-7.0.2-1.el5.i386.rpm
11.) unixODBC-2.2.11-7.1.i386.rpm
12.) unixODBC-devel-2.2.11-7.1.i386.rpm
執行如下的命令檢查即可:
[root@leitest ~]# rpm -q elfutils-libelf-devel
[root@leitest ~]# rpm -q elfutils-libelf-devel-static
[root@leitest ~]# rpm -q kernel-headers
[root@leitest ~]# rpm -q glibc-headers
[root@leitest ~]# rpm -q glibc-devel
[root@leitest ~]# rpm -q libstdc++-devel
[root@leitest ~]# rpm -q libgomp
[root@leitest ~]# rpm -q gcc-
[root@leitest ~]# rpm -q gcc-c++-
[root@leitest ~]# rpm -q libaio-devel --注意:此包預設不帶,需要自己rpm -ivh上
[root@leitest ~]# rpm -q sysstat --注意:此包預設不帶,需要自己rpm -ivh上
[root@leitest ~]# rpm -q unixODBC --注意:此包預設不帶,需要自己rpm -ivh上
[root@leitest ~]# rpm -q unixODBC-devel--注意:此包預設不帶,需要自己rpm -ivh上


4. Additional Required OS Components (per the runInstaller OUI) --省略,不必看


5. Additional Required OS Components (per this NOTE) --省略,不必看


6. Oracle Global Customer Support has noticed a recent trend ,bu 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"

不是所有包就裝上就能安裝oracle

III. Environment:

1.修改/etc/sysctl.conf 檔案,新增如下的內容:
kernel.shmmax = 4294967295

kernel.shmall = 268435456

kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
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


#注意:老的值是net.ipv4.ip_local_port_range = 1024 65000,請根據oui的提示修改此值。

2.sysctl –p生效。

3.Set Shell Limits for the oracle User

a) 修改/etc/security/limits.conf,新增如下內容:

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

b) 修改/etc/pam.d/login,新增如下的內容:
session required pam_limits.so

c) 修改/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


4.Ensure that the commands "gcc --version" and "g++ --version" each return "4.1.x".

5. The hostname command should return the fully qualified hostname

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


7.設定oracle使用者的.bash_profile,如下所示:
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
export ORACLE_SID=lei
export PATH=$ORACLE_HOME/bin:$PATH


8.關閉selinux。

9.以oracle使用者執行./runInstaller


[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/161195/viewspace-1055552/,如需轉載,請註明出處,否則將追究法律責任。

相關文章