安装参考文档:
Oracle® Database
Quick Installation Guide
11g Release 2 (11.2) for Linux x86-64
E24326-01
August 2011
0.Checking the Hardware Requirements
# grep MemTotal /proc/meminfo
# uname -m
# grep SwapTotal /proc/meminfo
# free
# df -h /dev/shm/
# df -h /tmp
# df -h
# cat /proc/version
# uname -r
1.Checking packages
The following or later version of packages for Asianux 3, Oracle Linux 5, and Red
Hat Enterprise Linux 5 must be installed:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
# rpm -q package_name
2.Creating user and group
# grep dba /etc/group
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# id oracle
# /usr/sbin/usermod -g oinstall -G dba oracle
# /usr/sbin/useradd -g oinstall -G dba oracle
# passwd oracle
3.Kernel parameters
/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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
# /sbin/sysctl -p
/sbin/sysctl -a
4.Check Resource Limits for the Oracle Software Installation Users
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
5.Creating Required Directories
# mkdir -p /mount_point/app/
# chown -R oracle:oinstall /mount_point/app/
# chmod -R 775 /mount_point/app/
6.Configuring the oracle User’s Environment
umask 022
xhost
xhost +
$ su - oracle
$ echo $SHELL
$ ORACLE_BASE=/u01/app/oracle
$ ORACLE_SID=sales
$ export ORACLE_BASE ORACLE_SID
$ unset ORACLE_HOME
$ unset TNS_ADMIN
Oracle® Database
Quick Installation Guide
11g Release 2 (11.2) for Linux x86-64
E24326-01
August 2011
0.Checking the Hardware Requirements
# grep MemTotal /proc/meminfo
# uname -m
# grep SwapTotal /proc/meminfo
# free
# df -h /dev/shm/
# df -h /tmp
# df -h
# cat /proc/version
# uname -r
1.Checking packages
The following or later version of packages for Asianux 3, Oracle Linux 5, and Red
Hat Enterprise Linux 5 must be installed:
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
# rpm -q package_name
2.Creating user and group
# grep dba /etc/group
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# id oracle
# /usr/sbin/usermod -g oinstall -G dba oracle
# /usr/sbin/useradd -g oinstall -G dba oracle
# passwd oracle
3.Kernel parameters
/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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
# /sbin/sysctl -p
/sbin/sysctl -a
4.Check Resource Limits for the Oracle Software Installation Users
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
5.Creating Required Directories
# mkdir -p /mount_point/app/
# chown -R oracle:oinstall /mount_point/app/
# chmod -R 775 /mount_point/app/
6.Configuring the oracle User’s Environment
umask 022
xhost
xhost +
$ su - oracle
$ echo $SHELL
$ ORACLE_BASE=/u01/app/oracle
$ ORACLE_SID=sales
$ export ORACLE_BASE ORACLE_SID
$ unset ORACLE_HOME
$ unset TNS_ADMIN