记录一下REDHAT AS4上安装Oracle 10201的过程。
首先使用root登陆,检查系统硬件配置:
[root@haoc2008 data]# grep MemTotal /proc/meminfo
MemTotal: 8166284 kB
[root@haoc2008 data]# grep SwapTotal /proc/meminfo
SwapTotal: 17205572 kB
[root@haoc2008 data]# free
total used free shared buffers cached
Mem: 8166284 1838540 6327744 0 56636 1583592
-/ buffers/cache: 198312 7967972
Swap: 17205572 0 17205572
[root@haoc2008 data]# df -k /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 20161172 77848 19059184 1% /tmp
[root@haoc2008 data]# df -k /data
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda9 173206016 877204 163530416 1% /data
[root@haoc2008 data]# grep "model name" /proc/cpuinfo
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
model name : Intel(R) Xeon(R) CPU E5335 @ 2.00GHz
下面检查操作系统信息:
[root@haoc2008 data]# cat /proc/version
Linux version 2.6.9-5.ELsmp (bhcompile@thor.perf.redhat.com) (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:29:47 EST 2005
[root@haoc2008 data]# uname -r
2.6.9-5.ELsmp
使用rpm –qa查询检查系统中是否存在以下的包:
binutils-2.15.92.0.2-13.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c -3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc -3.4.3-9.EL4
libstdc -devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xorg-x11-deprecated-libs-6.8.2-1.EL.13.37.i386.rpm
xscreensaver-4.18-5.rhel4.2
缺少的包使用rpm –ivh进行安装。
[root@haoc2008 data]# groupadd oinstall
[root@haoc2008 data]# groupadd dba
[root@haoc2008 data]# useradd -g oinstall -G dba oracle
[root@haoc2008 data]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@haoc2008 data]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
编辑/etc/sysctl.conf文件添加下面内容:
kernel.shmall = 2097152
kernel.shmmax = 8589934592
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
IXDBA.NET技术社区
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
编辑/etc/security/limits.conf文件,添加下面内容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
编辑/etc/pam.d/login文件添加下面的内容:
session required pam_limits.so
编辑oracle用户的.bash_profile