RedHat Enterprise Linux 4下安装Oracle 10g

这两天一直在捣鼓oracle 10g ,在Redhat4/5上安了N遍,老是不成功,希望这次可以,阿门。

1.设置核心参数

打开/etc/sysctl.conf文件,在最后加入:

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=262144
ne t.core.rmem_max=262144
net.core.wmem_default=262144
net.core.wmem_max=262144

保存退出

在当前目录下运行:sysctl -p 使修改生效

2.打开/etc/security/limits.conf文件,加入:

*               soft    nproc   2047
*               hard    nproc   16384
*               soft    nofile  1024
*               hard    nofile  65536

PS:“*”不知道用不用加上,暂且加上吧

保存退出

3.打开/etc/pam.d/login文件,加入如下内容,如果里面没有的话

 session    required     /lib/security/pam_limits.so
我的里面已经有一行:session    required     pam_selinux.so open

暂且不加了

4.创建用户、修改环境变量

使用root用户操作:

groupadd oinstall  

groupadd dba

useradd -g oinstall -G dba oracle

passwd oracle    /修改oracle用户密码

使用su - oracle 进入oracle操作界面,

猜你喜欢

转载自xiaolong0211.iteye.com/blog/756670