在64位RHEL5.5上安装Oracle10gR2的简易步骤

 在64位RHEL5.5上安装Oracle10gR2的简易步骤

 

1)安装所需rpm:

# cd /media/RHEL_5.5 x86_64 DVD/Server
rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
rpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.rpm 
rpm -ivh gcc-c++-4.1.2-48.el5.x86_64.rpm 
rpm -ivh libstdc++-devel-4.1.2-48.el5.x86_64.rpm 
rpm -ivh glibc-headers-2.5-49.x86_64.rpm 
rpm -ivh glibc-devel-2.5-49.x86_64.rpm 
rpm -ivh glibc-devel-2.5-49.i386.rpm 
rpm -ivh libgomp-4.4.0-6.el5.x86_64.rpm 
rpm -ivh gcc-4.1.2-48.el5.x86_64.rpm 
rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm 
rpm -ivh sysstat-7.0.2-3.el5.x86_64.rpm 
rpm -ivh util-linux-2.13-0.52.el5_4.1.x86_64.rpm 
rpm -ivh kernel-headers-2.6.18-194.el5.x86_64.rpm

 

验证软件包安装:

# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" | grep glibc-devel 



2)创建安装组和用户:

# groupadd -g 1000 oinstall
# groupadd -g 1001 dba
# groupadd -g 1002 oper
# useradd -u 1000 -g oinstall -G dba,oper oracle
# passwd oracle

 

 

3)创建安装目录并设置相应权限:

# mkdir -p /u01/app/oracle
# chown -R oracle:oinstall /u01
# chmod -R 775 /u01

 

 

4)调整内核参数:

# vim /etc/sysctl.conf
kernel.sem = 250 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.shmall = 2097152
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 2097152
net.core.wmem_default = 262144
net.core.wmem_max = 262144


使调整生效:

sysctl -p


 

5)调整shell运行参数:

# /etc/security/limits.conf
oracle              soft    nproc   2047
oracle              hard    nproc   16384
oracle              soft    nofile  1024
oracle              hard    nofile  65536


载入验证模块:

# vim /etc/pam.d/login
session    required     pam_limits.so

 

调整oracle用户最大可打开的进程数(u)和文件数(n)(针对bash):

http://www.ibm.com/developerworks/cn/linux/l-cn-ulimit/

# vim /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

 


6)设置ORACLE_BASE环境变量

$ ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

 


7)开始安装:

$ ./runInstaller 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值