经过试验成功完成
硬件i386 / 256m/vmware gsx server 3.2.1/硬盘10G /boot 400 /swap 500 /opt 3g
根 / 余下所有
1.检查rpm包
binutils-2.15.92.0.2-10.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
xscreensaver-4.18-5.rhel4.2
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
xscreensaver-4.18-5.rhel4.2
2.建立用户和组
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba oracle
# passwd oracle
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba oracle
# passwd oracle
3.建立相关目录并授权
# mkdir -p /opt/app/oracle (the Oracle base directory)
# mkdir -p /opt/oradata (an optional Oracle datafile directory)
# chown -R oracle:oinstall /opt/app/oracle /opt/oradata
# chmod -R 777 /opt
# mkdir -p /opt/app/oracle (the Oracle base directory)
# mkdir -p /opt/oradata (an optional Oracle datafile directory)
# chown -R oracle:oinstall /opt/app/oracle /opt/oradata
# chmod -R 777 /opt
4.配置内核参数
修改核心参数并检查修改参数
# vi /etc/sysctl.conf
说明:在该文件末尾加入如下内容:
1G 2G 4G
kernel.shmmax = 536870912 1073741824 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
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
修改核心参数并检查修改参数
# vi /etc/sysctl.conf
说明:在该文件末尾加入如下内容:
1G 2G 4G
kernel.shmmax = 536870912 1073741824 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
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
5.启用新参数
# /sbin/sysctl -p
# /sbin/sysctl -p
6.设置oracle用户的shell限制
vi /etc/security/limits.conf
oracle hard nofile 65536
oracle soft nofile 65536
oracle hard nproc 16384
oracle soft nproc 16384
oracle soft nofile 65536
oracle hard nproc 16384
oracle soft nproc 16384
7.编辑oracle参数文件.bash_profile
vi /home/oracle/.bash_profile
文件末尾加入以下内容
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0
export ORACLE_SID=oracle10g
export ORACLE_TERM=xterm
export NLS_LANG=american_america.ZHS16GBK;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export PATH=$PATH:$ORACLE_HOME/bin;
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export LANG=en_US
export LD_ASSUME_KERNEL=2.4.19
#export DISPLAY=:o.o
8.
上传并解压缩文件
上传:可用ftp命令或ftp工具
解压缩:
# unzip 10201_database_linux32.zip -d /tmp/oracle
改变属主和权限:
# chown oracle /tmp/oracle
# chmod -R 755 /tmp/oracle
上传:可用ftp命令或ftp工具
解压缩:
# unzip 10201_database_linux32.zip -d /tmp/oracle
改变属主和权限:
# chown oracle /tmp/oracle
# chmod -R 755 /tmp/oracle
9.重新启动机器:
# init 6
10.本地用oracle用户登录并安装软件
# su - oracle
# cd /tmp/oracle
# cd /database
# cd /database
# ./runInstaller
本文转自 pgmia 51CTO博客,原文链接:http://blog.51cto.com/heyiyi/67296