ITPub博客

首页 > 数据库 > Oracle > linux下安装oracle 11g

linux下安装oracle 11g

原创 Oracle 作者:sky850623 时间:2015-01-18 19:33:44 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/26937943/viewspace-1406080/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: Tomcat安装与配置
请登录后发表评论 登录
全部评论

注册时间:2013-05-30

  • 博文量
    154
  • 访问量
    515356