資源描述:
《oracle 11g rac安裝配置》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、ORACLE11GRAC安裝配置(自整理)測試配置緩環(huán)境:RedHatEnterpriseLinux5.8一、關(guān)閉防火墻[root@rac01~]#serviceiptablesstop[root@rac01~]#chkconfigiptablesoff[root@rac01~]#chkconfigiptables–listiptables0:off1:off2:off3:off4:off5:off6:off[root@rac01~]#vi/etc/selinux/config#Thisfilecontrol
2、sthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-NoSELinuxpolicyisloaded.SELINUX=disabled#SELINUXTYPE=cantakeoneofthesetwovalues:#tar
3、geted-Targetedprocessesareprotected,#mls-MultiLevelSecurityprotection.SELINUXTYPE=targeted二、修改hosts文件(所有節(jié)點(diǎn))[root@rac01~]#vi/etc/hosts#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctionalitywillfail.127.0.0.1localhost.localdomainlocalho
4、st::1localhost6.localdomain6localhost6172.18.3.211rac01.svc.comrac01172.18.3.212rac02.svc.comrac0210.10.10.211rac01-priv.svc.comrac01-priv10.10.10.212rac02-priv.svc.comrac02-priv172.18.3.213rac01-vip.svc.comrac01-vip172.18.3.214rac02-vip.svc.comrac02-vip172
5、.18.3.215rac-scan.svc.comrac-scan172.18.3.216rac-scan.svc.comrac-scan172.18.3.217rac-scan.svc.comrac-scan三、添加組和用戶創(chuàng)建組:[root@rac01~]#groupadd-g1000oinstall[root@rac01~]#groupadd-g1001asmadmin[root@rac01~]#groupadd-g1002dba[root@rac01~]#groupadd-g1003asmdba[ro
6、ot@rac01~]#groupadd-g1004asmoper創(chuàng)建grid用戶:[root@rac01~]#useradd-u1000-goinstall-Gasmadmin,asmdba,asmoper,dba-d/home/grid-mgrid為grid用戶設(shè)密碼:[root@rac01~]#passwdgrid創(chuàng)建oracle用戶:如果oracle用戶不存在,則:[root@rac01~]#useradd-u1001-goinstall-Gdba,asmdba-d/home/oracle-moracl
7、e如果oracle用戶已經(jīng)存在,則:[root@rac01~]#usermod-goinstall-Gdba,asmdba–u1001oracle為oracle用戶設(shè)密碼:[root@rac01~]#passwdoracle檢測nobody用戶[root@rac01~]#idnobody如果不存在,則:[root@rac01~]#useraddnobody四、配SSH互信為ssh和scp創(chuàng)建連接ls-l/usr/local/bin/sshls-l/usr/local/bin/scp不存在則創(chuàng)建[root@ra
8、c01~]#/bin/ln-s/usr/bin/ssh/usr/local/bin/ssh[root@rac01~]#/bin/ln-s/usr/bin/scp/usr/local/bin/scp為grid用戶配置SSH:在每個節(jié)點(diǎn)上:[root@rac01~]#su–grid[grid@rac01~]#mkdir~/.ssh[grid@rac01~]#cd.ssh[grid@rac01~]#ssh