linux下安装oracle 11g

1.安装rpm包
elfutils-libelf-devel-0.137
elfutils-libelf-devel-static-0.137
gcc-4.1.2
gcc-c++-4.1.2
glibc-devel-2.5
glibc-headers-2.5
kernel-headers-2.6.18
libaio-devel-0.3.106
libao-devel-0.8.6
libgomp-4.4.0
libstdc++-devel
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-devel-2.2.11
2.添加组和用户
[root@OCM ~]# groupadd oinstall
[root@OCM ~]# groupadd dba
[root@OCM ~]# mkdir -p /u01/app/oracle
[root@OCM oracle]# useradd -g oinstall -G dba oracle
[root@OCM /]# chown -R oracle:oinstall u01
3.配置内核参数
 1)编辑/etc/sysctl.conf文件
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
2)编辑 /etc/security/limits.conf文件,添加以下内容

oracle              soft    nofile  1024

oracle              hard    nofile  65536

4.配置oracle环境变量
以oracle用户登录,编辑/home/oracle/.bash_profile文件
 export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH
5.开始安装
 以oracle用户登录,运行./runInstaller




























来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26937943/viewspace-1406080/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26937943/viewspace-1406080/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值