Chinaunix首页 | 论坛 | 博客
  • 博客访问: 310520
  • 博文数量: 214
  • 博客积分: 4258
  • 博客等级: 上校
  • 技术积分: 2021
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-02 09:16
个人简介

http://blog.csdn.net/ly21st http://ly21st.blog.chinaunix.net

文章分类

全部博文(214)

文章存档

2018年(16)

2015年(1)

2014年(2)

2012年(22)

2011年(173)

分类: Oracle

2011-11-10 13:17:03

 CentOS_5下安装Oracle_11g.txt   #cd /
# groupadd  oinstall
# groupadd  dba
# mkdir -p /u01          //不可写  /u01/oracle
# useradd -g oinstall -G dba  -d /u01/oracle  oracle
# passwd oracle
#cd /
# chown -R oracle:oinstall   u01

#id nobody    //检测nobody用户是否存在,缺省是存在的
vi /etc/sysctl.conf 添加以下内容
kernel.shmall = 2097152
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 = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
保存后执行# /sbin/sysctl -p

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
        fi
fi
#su - oracle
# vi .bash_profile

ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=wilson
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_BASE  ORACLE_HOME  ORACLE_SID  PATH
#exit
# su - oracle
# env | grep ORA   //退出再登陆使环境变量生效

设置静态ip
以oracle身份进入图形基面安装
此时可能提示缺少库libxp.so,安装上即可
 
 
Enter the full path of the inventory  directioy 
/u01/orainventory
Specify Operating System  group  name:
oinstall
 
 
 
安装完毕,创建数据库
$ netca   //11g版本新特性
$ dbca

 
阅读(284) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~