欢迎来到天天文库
浏览记录
ID:52740958
大小:24.00 KB
页数:22页
时间:2020-03-30
《创建oracle10g双节点集群.docx》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、主机配置注意事项(每个节点):每个节点服务器必须是双网卡,支持tcp/ip协议,安装集群软件服务器要支持udp防火墙关闭serviceiptablesstopSELinux禁用vi/etc/selinux/configSELINUX=disableip地址使用静态配置:static网关要指定#IntelCorporation82566MMGigabitNetworkConnectionDEVICE=eth0BOOTPROTO=staticIPADDR=10.1.1.135NETMASK=255.255.255.0GATEWAY=10.1.3.1HWADDR=00:1E:37:
2、D6:FA:44ONBOOT=yes重启network:servicenetworkrestarthostname不要出现在回环地址!如果启动过单机asm服务,请先停止:$ORACLE_HOME/bin/localconfigdelete卸载独占模式的oracle软件(先用OUI卸载,再手工清理垃圾文件/etc/*.ora$ORACLE_HOME)如果是4以上的版本,降低版本到4/etc/redhat-release---------------------------------------------------------------------------------
3、-------------------------配置etc/hosts(所有节点)#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctionalitywillfail.127.0.0.1localhost.localdomainlocalhost::1localhost6.localdomain6localhost6#publicNetwork-(eth0)10.1.1.135xie.uplooking1.com10.1.1.132xie.uplooking.com#publicvirt
4、ualIP(eth0:#)10.1.1.136xie.uplooking1.com-vip10.1.1.133xie.uplooking.com-vip#privateInterconnect-(eth0:0)10.1.2.135xie.uplooking1.com-priv10.1.2.132xie.uplooking.com-priv配置ifcfg-eth0:0(所有节点)[root@xienetwork-scripts]#viifcfg-eth0:0#RealtekSemiconductorCo.,Ltd.RTL-8139/8139C/8139C+DEVICE=eth0
5、:0BOOTPROTO=staticONBOOT=yesIPADDR=10.1.2.132NETMASK=255.255.255.0重启network:servicenetworkrestart----------------------------------------------------------------------------------------配置hangcheck-timer:用于监视Linux内核是否挂起vi/etc/modprobe.confoptionshangcheck-timerhangcheck_tick=30hangcheck_marg
6、in=180自动加载hangcheck-timervi/etc/rc.localmodprobehangcheck-timer检查hangcheck-timer模块是否已经加载:lsmod
7、grephangcheck_timer-------------------------------------------------------------------------------------------------------------------------------创建oracle用户:跑脚本:1./install.sh#/bin/bash../adduser.s
8、h../sysctl.sh../limits.sh../mkdir.sh../chprofile.sh2.adduser.sh#/bin/bashADDGROUPS="oinstalldba"ADDUSERS="oracle"forgroupin$ADDGROUPS;doif[-z"$(awk-F:'{print$1}'/etc/group
9、grep$group)"];thengroupadd$groupecho"Addnewgroup$group"elseecho"Group$groupalready
此文档下载收益归作者所有