說明enterprise linux6.4x86安裝oracle11gr2詳細_第1頁
說明enterprise linux6.4x86安裝oracle11gr2詳細_第2頁
說明enterprise linux6.4x86安裝oracle11gr2詳細_第3頁
說明enterprise linux6.4x86安裝oracle11gr2詳細_第4頁
說明enterprise linux6.4x86安裝oracle11gr2詳細_第5頁
已閱讀5頁,還剩68頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領

文檔簡介

安裝文11gR211gR2RAC[ASM]for文檔信Oracle11gR2RAC[ASM]forOEL6.4文檔修訂記—環(huán)境準 操作系 解決虛擬機安裝RAC的幾個問 修改/etc/hosts文件(所有節(jié)點 Grid用 Oracle用 Grid用戶 Oracle用戶 配置 創(chuàng)建ASM磁 安裝cvuqdisk包并驗證(兩個節(jié)點 二安裝 安裝Grid 檢查CRS狀 檢查Oracle集群表 檢查CRS狀 為數(shù)據(jù)和快速恢復區(qū)創(chuàng)建ASM磁盤組: 三安裝Oracle軟件(不建庫 四創(chuàng)建數(shù)據(jù) 境準32VMwareWorkstationOracleEnterpriseLinuxRelease6Update4forx86(32Bit)。 ASMASMlibIP安 OraclegridCRS+CRS/rac-操作系OracleEnterpriseLinuxRelease6Update4forx8632Bit)。(rac1節(jié)點為例)[root@rac1~]#lsb_release-LSBVersion: DistributorID: OracleLinuxServerrelease6.4 [root@rac1~]#cat/etc/redhat-RedHatEnterpriseLinuxServerrelease6.4(Santiago)[root@rac1~]#uname-aLinuxrac12.6.39-400.17.1.el6uek.i686#1SMPFriFeb2218:17:46PST2013i686i686[root@rac1~]#grepMemTotal/proc/meminfo [root@rac1~]#grepSwapTotal 解決虛擬機安裝RAC的幾個共在一號虛擬機創(chuàng)建新的磁盤,打開虛擬機設置CRSSCSI使用記事本編輯<VMID>.wmxdisk.locking= acheMaxSize= acheMaxReadAheadSize="0"diskLib.DacheMinReadAheadSize="0" achePageSize="4096"diskLib.maxUnsyncedWrites="0"tools.syncTime="TRUE"SCSI使用記事本編輯<VMID>.wmxdisk.locking= acheMaxSize= acheMaxReadAheadSize="0"diskLib.DacheMinReadAheadSize="0" achePageSize="4096"diskLib.maxUnsyncedWrites="0"tools.syncTime="TRUE"安裝過程中總死機重使用記事本編輯<VMID>.wmx修改/etc/hosts文件(所有節(jié)點[root@rac1~]#vi/etc/hosts[root@rac1~]#cat localhostlocalhost.locallocalhost4localhost4.local localhostlocalhost.locallocalhost6localhost6.local 192.168. 192.168. [root@rac2~]#vi/etc/hosts[root@rac2~]#cat localhostlocalhost.locallocalhost4localhost4.local localhostlocalhost.locallocalhost6localhost6.local udbs01- 192.168. 192.168. udbs01-添加組和用戶(所有節(jié)點[root@rac1~]#groupadd-g500oinstall[root@rac1~]#groupadd-g501dba[root@rac1~]#groupadd-g502oper[root@rac1~]#groupadd-g503asmadmin[root@rac1~]#groupadd-g504asmoper[root@rac1~]#groupadd-g505asmdba[root@rac1~]#useradd-goinstall-Gdba,asmdba,oper[root@rac1~]#useradd-goinstall-Gasmadmin,asmdba,asmoper,oper,dbagrid[root@rac1~]#idoracleuid=500(oracle)gid=500(oinstall)groups=500(oinstall),501(dba),502(oper),505(asmdba)[root@rac1~]#idgriduid=501(grid)gid=500(oinstall)groups=500(oinstall),501(dba),502(oper),[root@rac1~]#passwdoracle[root@rac1~]#passwdgrid[root@rac2~]#groupadd-g500oinstall[root@rac2~]#groupadd-g501dba[root@rac2~]#groupadd-g502oper[root@rac2~]#groupadd-g503asmadmin[root@rac2~]#groupadd-g504asmoper[root@rac2~]#groupadd-g505asmdba[root@rac2~]#useradd-goinstall-Gdba,asmdba,oper[root@rac2~]#useradd-goinstall-Gasmadmin,asmdba,asmoper,oper,dba[root@rac2~]#iduid=500(oracle)gid=500(oinstall)groups=500(oinstall),501(dba),502(oper),505(asmdba)[root@rac2~]#idgriduid=501(grid)gid=500(oinstall)groups=500(oinstall),501(dba),502(oper),[root@rac2~]#passwdoracle[root@rac2~]#passwdgrid (所有節(jié)點[root@rac1~]#mkdir[root@rac1~]#chown-Rgrid:oinstall/u01/app/[root@rac1~]#od-R775/u01/app/[root@rac1~]#mkdir-p/u01/app/oraInventory[root@rac1~]#chown-Rgrid:oinstall/u01/app/oraInventory/[root@rac1~]#od-R775/u01/app/oraInventory/[root@rac1~]#mkdir-p/u01/app/grid[root@rac1~]#mkdir-p[root@rac1~]#chown-Rgrid:oinstall/u01/app/grid/[root@rac1~]#chown-Roracle:oinstall/u01/app/oracle/[root@rac1~]#od-R775/u01/app/grid/[root@rac1~]#od-R775[root@rac2~]#mkdir[root@rac2~]#chown-Rgrid:oinstall/u01/app/[root@rac2~]#od-R775/u01/app/[root@rac2~]#mkdir-p/u01/app/oraInventory[root@rac2~]#chown-Rgrid:oinstall/u01/app/oraInventory/[root@rac2~]#od-R775/u01/app/oraInventory/[root@rac2~]#mkdir-p/u01/app/grid[root@rac2~]#mkdir-p[root@rac2~]#chown-Rgrid:oinstall/u01/app/grid/[root@rac2~]#chown-Roracle:oinstall/u01/app/oracle/[root@rac2~]#od-R775/u01/app/grid/[root@rac2~]#od-R775修改系統(tǒng)參數(shù)(所有節(jié)點[root@rac1~]#vi#ORACLE nproc 16384 nofile 65536[root@rac2app]#vi/etc/security/limits.conf#ORACLESETTING nproc 16384 nofile 65536[root@rac1~]#vi/etc/pam.d/loginauth[user_unknown=ignoresuccess=okignore=ignoredefault=bad]pam_securetty.so system-auth #pam_selinux.socloseshouldbethefirstsessionpam_selinux.so #pam_selinux.soopenshouldonlybefollowedbysessionstobeexecutedintheuserpam_selinux.sopam_keyinit.so#ORACLE [root@rac2app]#vi/etc/pam.d/loginauth[user_unknown=ignoresuccess=okignore=ignoredefault=bad]system-system-#pam_selinux.socloseshouldbethefirstsessionpam_selinux.so#pam_selinux.soopenshouldonlybefollowedbysessionstobeexecutedintheuserpam_selinux.sopam_keyinit.so#ORACLE [root@rac1 vi#KernelsysctlconfigurationfileforOracleLinux#Forbinaryvalues,0isdisabled,1is Seesysctl(8)#sysctl.conf(5)formore#ControlsIPpacketforwardingnet.ipv4.ip_forward=0#Controlssourceroute#ControlstheuseofTCPsynsnet.ipv4.tcp_syns=1#D.bridge.bridge-nf-call-ip6tables=0net.bridge.bridge-nf-call-iptables=net.bridge.bridge-nf-call-arptables=#Controlsthedefaultmaxmimumsizeofamesagequeuekernel.msgmnb=65536#Controlstheumsizeofamessage,inbyteskernel.msgmax=65536#Controlstheumsharedsegmentsize,inbyteskernel.shmmax=#Controlstheumnumberofsharedmemorysegments,inpageskernel.shmall=#ORACLEfs.aio-max-nr= fs.file-max= kernel.shmall= kernel.shmmax= kernel.shmmni=4096kernel.sem=25032000100net.ipv4.ip_local_port_range=9000net.core.rmem_default=262144net.core.rmem_max= net.core.wmem_default=262144net.core.wmem_max= [root@rac2~]#vi#KernelsysctlconfigurationfileforOracleLinux#Forbinaryvalues,0isdisabled,1is Seesysctl(8)#sysctl.conf(5)formore#ControlsIPpacketforwardingnet.ipv4.ip_forward=0#Controlssourcerouteverificationnet.ipv4.conf.default.rp_filter=1#Donotacceptsourceroutingnet.ipv4.conf.default.accept_source_route=0#ControlstheSystemRequestdebuggingfunctionalityofthekernelkernel.sysrq=0#ControlstheuseofTCPsynsnet.ipv4.tcp_syns=1#D.bridge.bridge-nf-call-ip6tables=0net.bridge.bridge-nf-call-iptables=net.bridge.bridge-nf-call-arptables=#Controlsthedefaultmaxmimumsizeofamesagequeuekernel.msgmnb=65536#Controlstheumsizeofamessage,inbyteskernel.msgmax=65536#Controlstheumsharedsegmentsize,inbyteskernel.shmmax=#Controlstheumnumberofsharedmemorysegments,inpageskernel.shmall=#ORACLEfs.aio-max-nr= fs.file-max= #kernel.shmall= #kernel.shmmax= kernel.shmmni=4096kernel.sem=25032000100net.ipv4.ip_local_port_range=9000net.core.rmem_default=net.core.rmem_maxnet.core.rmem_maxnet.core.wmem_default=262144net.core.wmem_max= 禁用和SELNUX(所有節(jié)點[root@rac1~]#serviceiptablesChainINPUT( protopt 2icmp-3 4 stateNEW5 reject-with protopt reject-withicmp-ChainOUTPUT( protopt [root@rac1~]#serviceiptables iptables[確定[root@rac1~]#chkconfigiptables[root@rac1~]#chkconfigiptables-- 0:關閉1:關閉2:3:4:5:關閉6:[root@rac1~]#vi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues: enforcing-SELinuxsecurityisen permissive-SELinuxprintswarningsinsteadofenforcing. disabled-NoSELinux isloaded.#SELINUXTYPE=cantakeoneofthesetwo targeted-Targetedprocessesareprotected, mls-MultiLevelSecurityprotection.[root@rac2~]#serviceiptablesChainINPUT( protopt 2icmp-3 4 stateNEW5 reject-with protopt reject-withicmp-ChainOUTPUT( protopt [root@rac2~]#serviceiptables iptables[確定[root@rac2~]#chkconfigiptables[root@rac2 chkconfigiptables-- 0:關閉1:關閉2:3:4:5:關閉6:[root@rac2~]#vi/etc/selinux/config[root@rac2~]#vi#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues: enforcing-SELinuxsecurityisen permissive-SELinuxprintswarningsinsteadof disabled-NoSELinuxis#SELINUXTYPE=cantakeoneofthesetwo targeted-Targetedprocessesareprotected, mls-MultiLevelSecurityprotection.配置時間同步(所有節(jié)點在11gR2中,RACCTSS當安裝程序發(fā)現(xiàn)NTP以活動模式自動進行安裝并通過所有節(jié)點的時間。如果發(fā)現(xiàn)配置了NTP,則以觀察者模式啟動集群時間同步服務,OracleClusterwareOracle(ctssd)OracleRAC無法NTP服務的組織提供服務。目前建議配置NTP。本文檔采用議(NTP)及其配置。NTPntpd該服務,并刪除ntp.conf文件。要在Linux上完成這些步驟,以root用戶在兩個OracleRAC節(jié)[root@rac1~]#/sbin/servicentpd關閉 [失敗[root@rac1~]#chkconfigntpd[root@rac1~]#mv/etc/ntp.conf/etc/ntp.conf.original[root@rac1~]#chkconfigntpd--list 0:關閉1:關閉2:關閉3:關閉4:關閉5:關閉6:關閉[root@rac1~]#rm/var/run/ntpd.pidrm:無法刪除"/var/run/ntpd.pid":[root@rac2~]#/sbin/servicentpd關閉 [失敗[root@rac2~]#chkconfigntpd[root@rac2~]#mv/etc/ntp.conf/etc/ntp.conf.original[root@rac2~]#chkconfigntpd--list 0:關閉1:關閉2:關閉3:關閉4:關閉5:關閉6:關閉[root@rac2~]#rm/var/run/ntpd.pidrm:無法刪除"/var/run/ntpd.pid":在安裝后,要確認ctssd處于活動狀態(tài),用grid[grid@rac1~]$crsctlcheckCRS-4701:TheClusterTimeSynchronizationServiceisinActiveCRS-4702:Offset(inmsec):[grid@rac2 crsctlcheckCRS-4701:TheClusterTimeSynchronizationServiceisinActivemode.CRS-4702:Offset(inmsec):0檢查安裝包(所有節(jié)點[root@rac1~]#rpm-qbinutilscompat-libcap1compat-libstdc++gccgcc-c++glibcglibc-develkshlibaiolibaio-devellibgcclibstdc++libstdc++-develmakesysstatunixODBCunixODBC-develpackagecompat-libstdc++isnotinstalled [root@rac2~]#rpm-qbinutilscompat-libcap1compat-libstdc++gccgcc-c++glibcglibc-develkshlibaiolibaio-devellibgcclibstdc++libstdc++-develmakesysstatunixODBCunixODBC-develpackagecompat-libstdc++isnotinstalled 配置用戶環(huán)境變量(所有節(jié)點Grid用戶[root@rac1~]#su-grid[grid@rac1~]$vibash_profile##Getthealiasesandfunctionsif[-f~/.bashrc];then.#UserspecificenvironmentandstartupprogramsexportexportORACLE_SID=+ASM1#exportORACLE_SID=+ASM2exportORACLE_BASE=/u01/app/gridexportexportTEMP=/tmpexportTMP=/tmpexportTMPDIR=/tmpexportif[$USER="oracle"]||[$USER="grid"];thenif[$S="/bin/ksh"];thenulimit-pulimit-nulimit-u16384-n65536umask~[root@rac2~]#su-grid[grid@rac2~]$vi.bash_profile#.bash_profile#Getthealiasesandfunctionsif[-f~/.bashrc];then.#Userspecificenvironmentandstartupprogramsexport#exportORACLE_SID=+ASM1exportORACLE_SID=+ASM2exportexportexportTEMP=/tmpexportTMP=/tmpexportTMPDIR=/tmpexportif[$USER="oracle"]||[$USER="grid"];thenif[$S="/bin/ksh"];thenulimit-pulimit-nulimit-u16384-n65536umask~Oracle用[root@rac1~]#su-oracle[oracle@rac1~]$vi.bash_profile##Getthealiasesandfunctionsif[-f~/.bashrc];then.#UserspecificenvironmentandstartupprogramsexportORACLE_SID=yc1;exportORACLE_SID#ORACLE_SID=yc2;exportORACLE_SIDORACLE_BASE=/u01/app/oracle;exportORACLE_BASEORACLE_HOME=$ORACLE_BASE/11.2.0/db_1;exportORACLE_HOMEORACLE_UNQNAME=rac;exportORACLE_UNQNAMEORACLE_TERM=xterm;exportPATH=/usr/sbin:$PATH;exportPATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;exportLD_LIBRARY_PATHexportCLASSPATHNLS_LANG=AMERICAN_AMERICA.ZHS16GBK;exportNLS_LANGORA_NLS11=$ORACLE_HOME/nls/data;exportORA_NLS11THREADS_FLAG=native;exportTHREADS_FLAGTMP=/tmp;exportTMPTMPDIR=$TMP;exportif[$USER="oracle"]||[$USER="grid"];thenif[$S="/bin/ksh"];thenulimit-pulimit-n

ulimit-u16384-numask[root@rac2~]#su-oracle[oracle@rac2~]$vi.bash_profile##Getthealiasesandfunctionsif[-f~/.bashrc];then.#Userspecificenvironmentandstartupprogramsexport#ORACLE_SID=yc1;exportORACLE_SIDORACLE_SID=yc2;exportORACLE_SIDORACLE_BASE=/u01/app/oracle;exportORACLE_BASEORACLE_HOME=$ORACLE_BASE/11.2.0/db_1;exportORACLE_HOMEORACLE_UNQNAME=rac;exportORACLE_UNQNAMEORACLE_TERM=xterm;exportPATH=/usr/sbin:$PATH;exportPATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib;exportLD_LIBRARY_PATHexportCLASSPATHNLS_LANG=AMERICAN_AMERICA.ZHS16GBK;exportNLS_LANGORA_NLS11=$ORACLE_HOME/nls/data;exportORA_NLS11THREADS_FLAG=native;exportTHREADS_FLAGTMP=/tmp;exportTMPTMPDIR=$TMP;exportif[$USER="oracle"]||[$USER="grid"];thenif[$S="/bin/ksh"];thenulimit-pulimit-n

ulimit-u16384-numask配置用戶等Grid戶:[grid@rac1~]$mkdir~/.ssh[grid@rac2~]$mkdir[grid@rac1~]$ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/grid/.ssh/id_rsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/grid/.ssh/id_rsa.Yourpublickeyhasbeensavedin/home/grid/.ssh/id_rsa.pub.Thekeyfingerprintis:db:23:5b:31:40:4e:da:55:51:fe:e8:a0:10:18:2f:bbgrid@rac1Thekey'srandomartimageis:+--[RSA .o X + o o .S .++ Eo + [grid@rac2~]$ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/grid/.ssh/id_rsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/grid/.ssh/id_rsa.Yourpublickeyhasbeensavedin/home/grid/.ssh/id_rsa.pub.Thekeyfingerprintis:e1:d4:08:24:8e:a6:ee:66:5c:c9:79:02:4e:f8:8a:f1grid@rac2Thekey'srandomartimageis:+--[RSA o.. |.o + o |+.o |o..* |o=. [grid@rac1~]$ssh-keygen-tdsaGeneratingpublic/privatedsakeypair.Enterfileinwhichtosavethekey(/home/grid/.ssh/id_dsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/grid/.ssh/id_dsa.Yourpublickeyhasbeensavedin/home/grid/.ssh/id_dsa.pub.Thekeyfingerprintis:6c:2e:38:f7:94:3c:96:a3:5d:47:4a:7a:ff:2d:6d:73grid@rac1Thekey'srandomartimageis:+--[DSA S. .+= oo@+ . oB= . [grid@rac2~]$ssh-keygen-tdsaGeneratingpublic/privatedsakeypair.Enterfileinwhichtosavethekey(/home/grid/.ssh/id_dsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/grid/.ssh/id_dsa.Yourpublickeyhasbeensavedin/home/grid/.ssh/id_dsa.pub.Thekeyfingerprintis:f6:3d:90:e9:20:8b:ae:a0:29:88:a8:84:9d:c4:89:3dgrid@rac2Thekey'srandomartimageis:+--[DSA |+ |. .S |.oo.++ |*.o.o||Bo |*|++[grid@rac1~]$ cat~/.ssh/id_rsa.pub>>./.ssh/authorized_keys[grid@rac1~]$ cat~/.ssh/id_dsa.pub>>./.ssh/authorized_keys[grid@rac1~]$sshrac2cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keysTheauthenticityofhost'rac2(10)'can'tbeestablished.RSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac2,10'(RSA)tothelistofknownhosts.grid@rac2'spassword:[grid@rac1[grid@rac1~]$sshrac2cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keysgrid@rac2'spassword:[grid@rac1~]$scp~/.ssh/authorized_keysrac2:~/.ssh/authorized_keysgrid@rac2'spassword: 100% [grid@rac1~]$sshrac1-privTheauthenticityofhost'rac1-priv(01)'can'tbeestablished.RSAkeyfingerprintise1:aa:fa:80:4c:e4:89:48:37:20:10:56:54:cc:a3:14.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac1-priv,01'(RSAtothelistofknownhosts.2013年09月03日星期二13:16:51CST[grid@rac1~]$sshrac1-priv2013090313:16:53[grid@rac1~]$sshrac2-privTheauthenticityofhost'rac2-priv(11)'can'tbeestablished.RSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac2-priv,11'(RSA)tothelistofknownhosts.2013年09月03日星期二13:17:56CST[grid@rac1~]$sshrac2-priv2013090313:17:58[grid@rac1~]$sshrac2-priv2013090313:17:59[grid@rac1~]$sshrac2-priv2013090313:18:00[grid@rac1~]$sshrac2-priv2013090313:18:01[grid@rac1~]$sshrac22013090313:18:09[grid@rac2~]$sshrac2Theauthenticityofhost'rac2(10)'can'tbeestablished.RSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac2,10RSA)tothelistofknownhosts.2013年09月03日星期二13:18:20CST[grid@rac2~]$sshrac22013090313:18:21[grid@rac2~]$sshrac1Theauthenticityofhost'rac1(00)'can'tbeestablished.RSAkeyfingerprintise1:aa:fa:80:4c:e4:89:48:37:20:10:56:54:cc:a3:14.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac1,00'RSA)tothelistofknownhosts.2013年09月03日星期二13:17:28CST[grid@rac2~]$sshrac12013090313:17:30[grid@rac2~]$sshrac12013090313:17:30[grid@rac2~]$sshrac12013090313:17:31[grid@rac2~]$sshrac1-privTheauthenticityofhost'rac1-priv(01)'can'tbeestablished.RSAkeyfingerprintise1:aa:fa:80:4c:e4:89:48:37:20:10:56:54:cc:a3:14.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac1-priv,01'(RSA)tothelistofknownhosts.2013年09月03日星期二13:17:39CST[grid@rac2~]$sshrac1-priv2013090313:17:40[grid@rac2~]$sshrac1-priv2013090313:17:41[grid@rac2~]$sshrac1-priv2013090313:17:42[grid@rac2~]$sshrac2-privTheauthenticityofhost'rac2-priv(11)'can'tbeRSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac2-priv,11'(RSA)tothelistofknownhosts.2013年09月03日星期二13:18:44CST[grid@rac2~]$sshrac2-priv2013090313:18:46[grid@rac2~]$sshrac2-priv2013090313:18:46[grid@rac2~]$sshrac2-priv2013090313:18:47Oracle戶:[oracle@rac1~]$mkdir~/.ssh[oracle@rac2~]$mkdir[oracle@rac1~]$ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/oracle/.ssh/id_rsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/oracle/.ssh/id_rsa.Yourpublickeyhasbeensavedin/home/oracle/.ssh/id_rsa.pub.Thekeyfingerprintis:c7:2b:b9:eb:b4:ba:a4:9d:87:57:57:b6:f9:41:56:94oracle@rac1Thekey'srandomartimageis:+--[RSA oo S ooo o. . [oracle@rac2~]$ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/oracle/.ssh/id_rsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedinYourpublickeyhasbeensavedin/home/oracle/.ssh/id_rsa.pub.Thekeyfingerprintis:df:ed:bc:2f:50:53:10:f8:89:2a:34:74:8c:55:fd:b2oracle@rac2Thekey'srandomartimageis:+--[RSA |+...ooo|oo..|. o+| .*|.S...+| .. [oracle@rac1~]$ssh-keygen-tdsaGeneratingpublic/privatedsakeypair.Enterfileinwhichtosavethekey(/home/oracle/.ssh/id_dsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/oracle/.ssh/id_dsa.Yourpublickeyhasbeensavedin/home/oracle/.ssh/id_dsa.pub.Thekeyfingerprintis:b7:80:2d:cb:57:42:3f:21:85:e1:4c:3c:4f:6a:ee:c1oracle@rac1Thekey'srandomartimageis:+--[DSA o+S .oE= [oracle@rac2~]$ssh-keygen-tdsaGeneratingpublic/privatedsakeypair.Enterfileinwhichtosavethekey(/home/oracle/.ssh/id_dsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedinYourpublickeyhasbeensavedin/home/oracle/.ssh/id_dsa.pub.Thekeyfingerprintis:a1:c2:07:33:51:a6:ae:72:02:18:43:d5:56:14:d9:e7oracle@rac2Thekey'srandomartimageis:+--[DSA | *.. . |.oo+.. +o . |o | [oracle@rac1~]$cat~/.ssh/id_rsa.pub>>./.ssh/authorized_keys[oracle@rac1~]$cat~/.ssh/id_dsa.pub>>./.ssh/authorized_keys[oracle@rac1~]$sshrac2cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keysTheauthenticityofhost'rac2(10)'can'tbeestablished.RSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?Hostkeyverification[oracle@rac1~]$sshrac2cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keysoracle@rac2'spassword:[oracle@rac1~]$[oracle@rac1[oracle@rac1~]$scp~/.ssh/authorized_keysrac2:~/.ssh/authorized_keysoracle@rac2'spassword: 100% [oracle@rac1~]$[oracle@rac1~]$sshrac1dateTheauthenticityofhost'rac1(00)'can'tbeestablished.RSAkeyfingerprintise1:aa:fa:80:4c:e4:89:48:37:20:10:56:54:cc:a3:14.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac1,00'RSA)tothelistofknownhosts.2013年09月03日星期二13:24:04CST[oracle@rac1~]$sshrac12013090313:24:06[oracle@rac1~]$sshrac12013090313:24:06[oracle@rac1~]$sshrac22013090313:25:07[oracle@rac1~]$sshrac22013090313:25:08[oracle@rac1~]$sshrac2-privTheauthenticityofhost'rac2-priv(11)'can'tbeestablished.RSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac2-priv,11'(RSA)tothelistofknownhosts.2013年09月03日星期二13:25:19CST[oracle@rac1~]$sshrac2-priv2013090313:25:20[oracle@rac1~]$sshrac2-priv2013090313:25:21[oracle@rac1~]$sshrac1-privTheauthenticityofhost'rac1-priv(01)'can'tbeestablished.RSAkeyfingerprintise1:aa:fa:80:4c:e4:89:48:37:20:10:56:54:cc:a3:14.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac1-priv,01'(RSAtothelistofknownhosts.2013年09月03日星期二13:24:29CST[oracle@rac1~]$sshrac1-priv2013090313:24:30[oracle@rac1~]$sshrac1-priv2013090313:24:31[oracle@rac2~]$sshrac1Theauthenticityofhost'rac1(00)'can'tbeestablished.RSAkeyfingerprintise1:aa:fa:80:4c:e4:89:48:37:20:10:56:54:cc:a3:14.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac1,00'RSA)tothelistofknownhosts.2013年09月03日星期二13:24:48CST[oracle@rac2~]$sshrac12013090313:24:49[oracle@rac2~]$sshrac12013090313:24:50[oracle@rac2~]$sshrac2Theauthenticityofhost'rac2(10)'can'tbeestablished.RSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac2,10RSA)tothelistofknownhosts.2013年09月03日星期二13:25:52CST[oracle@rac2~]$sshrac22013090313:25:52[oracle@rac2~]$sshrac22013090313:25:53[oracle@rac2~]$sshrac2-privTheauthenticityofhost'rac2-priv(11)'can'tbeestablished.RSAkeyfingerprintisbb:62:b1:5a:02:9b:08:fb:bd:a9:d5:55:36:14:c4:34.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac2-priv,11'(RSA)tothelistofknownhosts.2013年09月03日星期二13:26:01CST[oracle@rac2~]$sshrac2-priv2013090313:26:02[oracle@rac2~]$sshrac2-priv2013090313:26:03[oracle@rac2~]$sshrac1-privTheauthenticityofhost'rac1-priv(01)'can'tbeestablished.RSAkeyfingerprintise1:aa:fa:80:4c:e4:89:48:37:20:10:56:54:cc:a3:14.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'rac1-priv,01'(RSAtothelistofknownhosts.2013年09月03日星期二13:25:13CST[oracle@rac2~]$sshrac1-priv2013090313:25:15[oracle@rac2~]$sshrac1-priv2013090313:25:15安裝ASM支持包(兩個節(jié)點[root@rac1Packages]#rpm-ivhoracleasm-support-2.1.8-warning:oracleasm-support-2.1.8-1.el6.i686.rpm:HeaderV3RSA/SHA256Signature,keyIDec551f03:NOKEY ########################################### ###########################################[root@rac1~]#[root@rac1~]#rpm-ivhoracleasmlib-2.0.4-warning:oracleasmlib-2.0.4-1.el6.i686.rpm:HeaderV3RSA/SHA256Signature,keyIDec551f03: ########################################### ###########################################[root@rac2Packages]#rpm-ivhoracleasm-support-2.1.8-warning:oracleasm-support-2.1.8-1.el6.i686.rpm:HeaderV3RSA/SHA256Signature,keyIDec551f03:NOKEY ########################################### ###########################################[root@rac2~]#rpm-ivhoracleasmlib-2.0.4-warning:oracleasmlib-2.0.4-1.el6.i686.rpm:HeaderV3RSA/SHA256Signature,keyIDec551f03: ########################################### ###########################################配置ASM(兩個節(jié)點)[root@rac1~]# ConfiguringtheOracleASMlibrarydriver.Thiswillconfiguretheon-bootpropertiesoftheOracleASMlibrary Thefollowingquestionswilldeterminewhetherthedriverisloadedonbootandwhatpermissionsitwillhave. Thecurrentvalueswillbeshowninbrackets('[]'). Hitting<ENTER>withouttyananswerwillkeepthatcurrentvalue. Ctrl-Cwillabort.Defaultusertoownthedriverinterface[]:gridDefaultgrouptoownthedriverinterface[]:asmadminStartOracleASMlibrarydriveronboot(y/n)[n]:yScanforOracleASMdisksonboot(y/n)[y]:yWritingOracleASMlibrarydriverconfiguration:doneInitializingtheOracleASMLib ScanningthesystemforOracleASMLibdisks: [root@rac1~]#[root@rac2~]# ConfiguringtheOracleASMlibrarydriver.Thiswillconfiguretheon-bootpropertiesoftheOracleASMlibrary Thefollowingquestionswilldeterminewhetherthedriverisloadedonbootandwhatpermissionsitwillhave. Thecurrentvalueswillbeshowninbrackets('[]'). Hitting<ENTER>withouttyananswerwillkeepthatcurrentvalue. Ctrl-Cwillabort.Defaultusertoownthedriverinterface[]:Defaultgrouptoownthedriverinterface[]:StartOracleASMlibrarydriveronboot(y/n)[n]:ScanforOracleASMdisksonboot(y/n)[y]:WritingOracleASMlibrarydriverconfiguration:InitializingtheOracleASMLib ]ScanningthesystemforOracleASMLib ][root@rac2創(chuàng)建ASM磁[root@rac1~]#/etc/init.d/oracleasmcreatediskCRS1/dev/sdb1Markingdisk"CRS1"asanASMdisk:[ [root@rac1~]#/etc/init.d/oracleasmcreatediskCRS2/dev/sdc1Markingdisk"CRS2"asanASMdisk:[ [root@rac1~]#/etc/init.d/oracleasmcreatediskCRS3/dev/sde1Markingdisk"CRS3"asanASMdisk:[ [root@rac1~]#/etc/init.d/oracleasmcreatediskDATA1/dev/sdf1Markingdisk"DATA1"asanASMdisk:[ [root@rac1~]#/etc/init.d/oracleasmcreatediskDATA2/dev/sdg1Markingdisk"DATA2"asanASMdisk:[ [root@rac1~]#oracleasmlistdisks[root@rac2~]#/etc/init.d/oracleasmScanningthesystemforOracleASMLibdisks:[ [root@rac2~]#oracleasmlistdisks安裝cvuqdisk包并驗證(兩個節(jié)點OracleRACcvuqdiskcvuqdisk,集群驗證實用程序就無法發(fā)現(xiàn)共享磁盤,當運行(OracleGridInfrastructure安裝結束時自動運行)集群驗證實用程序時,您會收到這樣的錯誤消息:“Packagecvuqdisknotinstalled”。使用適用于您的硬件體系結構(例如,x86_64或i386)的cvuqdiskRPM。CVUQDISK_GRPcvuqdisk的所有者所在的組(oinstallexportCVUOraclegridOracle(rac1)grid用SSH./runcluvfy.shstage-posthwos-nrac1,rac2-驗證安裝前的檢查./runcluvfy.shstage-precrsinst-nrac1,rac2-[grid@rac1grid]$./runcluvfy.shstage-precrsinst-nrac1,rac2-verbosePerformingpre-checksforclusterservicessetupCheckingnodeCheck:NodereachabilityfromnodeDestination Result:NodereachabilitycheckpassedfromnodeCheckinguserCheck:UserequivalenceforuserNode Result:Userequivalencecheckpassedforuser"grid"Checkingnodeconnectivity...CheckinghostsconfigNode VerificationofthehostsconfigfileInterfaceinformationfornode IPAddress Def.Gateway 04 02 00:0C:29:C0:A3:88Interf

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論