oracle11g 最终版本11.2.0.4安装详细过程

--安装背景

oracle 11.02.0.4 安装介质

linux:https://pan.baidu.com/s/13M8vnrYbS_R5GQFGjp2hRw 提取码:1111  

windows:链接:https://pan.baidu.com/s/1uVTG42GJZMC59_7y7zw0aA 
提取码:1111

1,修改内核

1.1 修改sysctl.conf文件

[root@orcltest Downloads]# vim/etc/sysctl.conf

# add by tim.man

kernel.shmmax = 277495689510912

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

fs.file-max = 6815744

# Controls the maximum number of shared memory segments, in pages                                                                                                                      

kernel.shmall = 4294967296

net.ipv4.tcp_max_tw_buckets = 6000

net.ipv4.ip_local_port_range = 9000 65500

net.ipv4.tcp_tw_recycle = 0

net.ipv4.tcp_tw_reuse = 1

net.core.somaxconn = 262144

net.core.netdev_max_backlog = 262144

net.ipv4.tcp_max_orphans = 262144

net.ipv4.tcp_max_syn_backlog = 262144

net.ipv4.tcp_synack_retries = 2

net.ipv4.tcp_syn_retries = 1

net.ipv4.tcp_fin_timeout = 1

net.ipv4.tcp_keepalive_time = 30

net.ipv4.tcp_keepalive_probes = 6

net.ipv4.tcp_keepalive_intvl = 5

net.ipv4.tcp_timestamps = 0

fs.aio-max-nr = 1048576

1.2 使参数生效

[root@orcltest Downloads]# sysctl –p

2,增加用户和组

[root@orcltestDownloads]# groupadd oinstall

[root@orcltestDownloads]# groupadd dba

[root@orcltestDownloads]# groupadd oper

[root@orcltestDownloads]# useradd -g oinstall -G dba,oper oracle

[root@orcltestDownloads]# passwd oracle

3,修改limits.conf限制

[root@orcltestDownloads]# vim /etc/security/limits.conf

oracle soft nproc 2047 

oracle hard nproc 16384                                                                                              

oracle soft nofile 1024

oracle hard nofile 65536

4,修改/etc/pam.d/login

[root@orcltestDownloads]# vim /etc/pam.d/login

session required/lib64/security/pam_limits.so

5,修改bash_profile文件

(1)修改profile:

 [root@orcltest Downloads]# vim /etc/profile                                                          

# add by tim.man

if [ $USER = "oracle" ]; then

if [ $SHELL = "/bin/ksh" ]; then

   ulimit -p 16384

   ulimit -n 65536

else

   ulimit -u 16384 -n 65536

fi

fi

(2)修改bash_profile:

评论 19
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值