資源描述:
《oracle 11g rac安裝配置》由會員上傳分享,免費在線閱讀,更多相關內容在行業(yè)資料-天天文庫。
1、Word文檔下載可編輯ORACLE11GRAC安裝配置(自整理)測試配置緩環(huán)境:RedHatEnterpriseLinux5.8一、關閉防火墻[root@rac01~]#serviceiptablesstop[root@rac01~]#chkconfigiptablesoff[root@rac01~]#chkconfigiptables–listiptables0:off1:off2:off3:off4:off5:off6:off[root@rac01~]#vi/etc/selinux/config#ThisfilecontrolsthestateofS
2、ELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinuxsecuritypolicyisenforced.#permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-NoSELinuxpolicyisloaded.SELINUX=disabled#SELINUXTYPE=cantakeoneofthesetwovalues:#targeted-Targetedprocessesareprotected
3、,#mls-MultiLevelSecurityprotection.SELINUXTYPE=targeted二、修改hosts文件(所有節(jié)點)[root@rac01~]#vi/etc/hosts#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctionalitywillfail.127.0.0.1localhost.localdomainlocalhost::1localhost6.localdomain6localhost6172.18.3.211rac01.sv
4、c.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.18.3.215rac-scan.svc.comrac-scan172.18.3.216rac-scan.svc.comrac-scan172.18.3.217
5、rac-scan.svc.comrac-scan專業(yè)技術資料Word文檔下載可編輯三、添加組和用戶創(chuàng)建組:[root@rac01~]#groupadd-g1000oinstall[root@rac01~]#groupadd-g1001asmadmin[root@rac01~]#groupadd-g1002dba[root@rac01~]#groupadd-g1003asmdba[root@rac01~]#groupadd-g1004asmoper創(chuàng)建grid用戶:[root@rac01~]#useradd-u1000-goinstall-Gasmadmi
6、n,asmdba,asmoper,dba-d/home/grid-mgrid為grid用戶設密碼:[root@rac01~]#passwdgrid創(chuàng)建oracle用戶:如果oracle用戶不存在,則:[root@rac01~]#useradd-u1001-goinstall-Gdba,asmdba-d/home/oracle-moracle如果oracle用戶已經存在,則:[root@rac01~]#usermod-goinstall-Gdba,asmdba–u1001oracle為oracle用戶設密碼:[root@rac01~]#passwdorac
7、le檢測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@rac01~]#/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é)點上:[root@rac01~]#s
8、u–grid[grid@rac01~]#mkdir~/.ssh[grid@rac