设置完成后 使用/sbin/sysctl -p使配置生效
[root@localhost ~]# vi /etc/sysctl.conf
[root@localhost ~]# /sbin/sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 2147483648
kernel.shmmni = 4096
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
kernel.shmall = 2097152
还需添加
# vi /etc/security/limits.conf
Oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
# vi /etc/profile
if[$USER = "oracle"];then
if[$SHELL="/bin/ksh"];then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
if
Fi
检查
# vi /etc/hosts
是否有下行内容 如果没有添加上
127.0.0.1 localhost.localdomain localhost
6.执行安装
使用unzip 解压安装包
执行如下命令 弹出图形安装界面
如果文字显示不正确
# export LANG=en_US.UTF-8 设置字符集
[root@localhost opt]# xhost local:oracle non-network local connections being added to access control list
non-network local connections being added to access control list
xhost: bad hostname "non-network"
xhost: bad hostname "local"
xhost: bad hostname "connections"
xhost: bad hostname "being"
xhost: bad hostname "added"
xhost: bad hostname "to"
xhost: bad hostname "access"
xhost: bad hostname "control"
xhost: bad hostname "list"
[root@localhost opt]# chown -R oracle:oinstall database
[root@localhost opt]# su oracle
[oracle@localhost opt]$ cd /opt/database
[oracle@localhost database]$ ls
doc install response runInstaller stage welcome.html
[oracle@localhost database]$ ./runInstaller
7.将
#vi /etc/RedHat-relese
中的内容还原为
Red Hat Enterprise Linux Server release 5 (Tikanga)
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
