在RHEL5.5x64上安裝Oracle10gR2的簡單步驟

msdnchina發表於2011-10-21

Requirements For Installing Oracle10gR2 On RHEL 5/OEL 5 (x86_64) [ID 421308.1]

1. Hardware Requirements

i) Physical Memory
# grep MemTotal /proc/meminfo
ii) Swap Space

# grep SwapTotal /proc/meminfo


2. Kernel Requirements
# uname -r
The system must be running the following kernel version (or a later version)

2.6.18-8

SELinux
disable

3. Installing required packages

rpm -qa | grep binutils-2.17.50.0.6-2 (x86_64)
rpm -qa | grep compat-db-4.2.52-5.1 (x86_64)
rpm -qa | grep compat-libstdc++-296-2.96-138 (i386)
rpm -qa | grep compat-libstdc++-33-3.2.3-61(x86_64)
rpm -qa | grep compat-libstdc++-33-3.2.3-61 (i386)
rpm -qa | grep control-center-2.16.0-14 (x86_64)
rpm -qa | grep gcc-4.1.1-52 (x86_64)
rpm -qa | grep gcc-c++-4.1.1-52 (x86_64)
rpm -qa | grep glibc-2.5-12 (x86_64)
rpm -qa | grep glibc-2.5-12 (i686)
rpm -qa | grep glibc-common-2.5-12 (x86_64)
rpm -qa | grep glibc-devel-2.5-12 (x86_64)
rpm -qa | grep glibc-devel-2.5-12 (i386) 需要安裝
rpm -qa | grep glibc-headers-2.5-12 (x86_64)
rpm -qa | grep ksh-20060214-1.4 (x86_64)
rpm -qa | grep libaio-0.3.106-3.2 (x86_64)
rpm -qa | grep libgcc-4.1.1-52 (i386)
rpm -qa | grep libgcc-4.1.1-52 (x86_64)
rpm -qa | grep libgnome-2.16.0-6 (x86_64)
rpm -qa | grep libgnomeui-2.16.0-5 (x86_64)
rpm -qa | grep libgomp-4.1.1-52 (x86_64)
rpm -qa | grep libstdc++-4.1.1-52 (x86_64)
rpm -qa | grep libstdc++-devel-4.1.1-52 (x86_64)
rpm -qa | grep libXp-1.0.0-8 (i386)
rpm -qa | grep libXtst-1.0.1-3.1(i386)
rpm -qa | grep make-3.81-1.1 (x86_64)
rpm -qa | grep sysstat-7.0.0-3 (x86_64)


4.Set the kernel parameters

/etc/sysctl.conf檔案中增加

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
fs.file-max = 65536
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 2097152
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

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 database and change the ownership
# 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


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
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1


9. The gcc-4.1.1 and gcc-c++-4.1.1 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 "4.1.x".


修改 vi /etc/redhat-release ,原為5.5
改為
[root@gg1 Server]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 4 (Tikanga)


10. Invoking OUI

[@more@]

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

相關文章