LINUX环境下ORACLE10G安装(RAC)由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“linux搭建rac操作手册”。
摘要:当前网上关于安装lis服务器资料甚多,但是其中存在一些问题。该文笔者根据安装服务器经验探讨了linux环境下ora? cle10g安装,以供参考。
关键词:lis服务器;linux;rac;心得体会
中图分类号:tp393文献标识码:a文章编号:1009-3044(2012)02-0262-03
oracle10g installation under linux(rac)
(sichuan academy of medical sicences & sichuan provincial people’s hospotal institute of dermatology std, chengdu 610031, china)
前段时间单位安装lis服务器,在网上翻阅很多资料,发现网上的内容多多少少都有一点问题,于是在安装服务器后,综合自己安装的经验写下一篇关于linux环境下安装oracle10g的心得,供大家参考。
检验系统环境
grep memtotal /proc/meminfo
df?k/tmp
#要求:大于512m内存,大于1g交换空间,大于400m的临时文件空间
#/etc?hosts文件中有所有主机的名字(公共和私有)
#必须有以下软件包:
#gcc-3.2.3-2
#openmotif21-2.1.30-8
#stdarch-1.3-1
#必须有hangcheck-timer内核模块
/sbin/lsmod|grep?i hang
vi/etc/rc.local
/sbin/insmod hangcheck_timer hangcheck_tich=30 hangcheck_margin-180
准备用户和组
groupadd?g 600 oinstall
groupadd?g 601 dba
useradd?u 600?d /home/oracle?g“oninstall”?g“dba”?m?s /bin/bash oracle
#确认出nobody用户的存在 cd /home/oracle
vi.bash_profile
umask 022
oracle_base=/oracle/oracle;
export oracle_base tmp=/oracle/tmp;
export tmp tmpdir=$tmp;
export tmpdir
#以上文件编辑了user.sh和.bash_profile
内核参数
vi /etc/security/limits.conf
*soft nproc 2047
*hard nproc 16384
*soft nofile 1024
*hard nofile 65536
编辑etc/sysctl.conf
vi /etc/hosts.equiv
/etc/host
vi /etc/sysctl.conf
在/etc/pam.d/login文件中添加一行:
seion required/lib/security/pam_limits.so
#注意如果64位系统,则应为:
seion required/lib64/security/pam_limits.so
#否则,会出现系统无法在主控制登录的问题。
准备裸设备
#其余裸设备
#增加一个启动脚本,更爱裸设备的权限。
#创建裸设备的映射文件,如果是利用asm管理存储,可能不用映射文件。
mkdir?p $oracle_base/oradata/dbname
chmod?r 775
cd{}
安装cluster ready service
#安装过程中会要求./orainstroot.sh
#利用以下命令确认是否所有借点都安装上了cluster ready service
#如果提示没vip,则可以运行vipca
olsnodes-n
安装数据库
#安装完后备份root.sh
#安装补丁
cpio备份与恢复
cpio?o?file={}
cpio?divu?i{}
复制系统后,需要修改以下文件:
/etc/oratab
oracle用户初始化脚本.bash_profile或.cshrc
在安装过程中遇到了一个错误,error:ora-12545:因目标主机或对象不存在,连接失败。通过网上查阅发现,这是安装ora? cle10g时的通病。不过oracle没有认为这个是bug,只是认为是problem。
对于12545错误的处理:
sql>conn sys@testrac1 as sysdba输入口令:****已连接。