版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、Oracle 11G R2 RAC安裝手冊一、 基礎(chǔ)知識1. RAC是什么RAC,全稱real application clusters,譯為“實時應(yīng)用集群”,是Oracle新版數(shù)據(jù)庫中采用的一項新技術(shù),是高可用性的一種,也是Oracle數(shù)據(jù)庫支持網(wǎng)格計算環(huán)境的核心技術(shù)。2. RAC的優(yōu)缺點l 優(yōu)點Oracle RAC支持Oracle9i、10g、11g版本,可以支持24 x 7 有效的數(shù)據(jù)庫應(yīng)用系統(tǒng),在低成本服務(wù)器上構(gòu)建高可用性數(shù)據(jù)庫系統(tǒng),并且自由部署應(yīng)用,無需修改代碼。在Oracle RAC環(huán)境下,Oracle集成提供了集群軟件和存儲管理軟件,為用戶降低了應(yīng)用成本。當(dāng)應(yīng)用規(guī)模需要擴充時,用
2、戶可以按需擴展系統(tǒng),以保證系統(tǒng)的性能。(1) 多節(jié)點負(fù)載均衡; (2) 提供高可用:故障容錯和無縫切換功能,將硬件和軟件錯誤造成的影響最小化; (3) 通過并行執(zhí)行技術(shù)提高事務(wù)響應(yīng)時間-通常用于數(shù)據(jù)分析系統(tǒng); (4) 通過橫向擴展提高每秒交易數(shù)和連接數(shù)-通常對于聯(lián)機事務(wù)系統(tǒng); (5) 節(jié)約硬件成本,可以用多個廉價PC服務(wù)器代替昂貴的小型機或大型機,同時節(jié)約相應(yīng)維護成本; (6) 可擴展性好,可以方便添加刪除節(jié)點,擴展硬件資源。l 缺點(1) 相對單機,管理更復(fù)雜,要求更高; (2) 可能會增加軟件成本3. Oracle RAC原理在一個應(yīng)用環(huán)境當(dāng)中,所有的服務(wù)器使用和管理同一個數(shù)據(jù)庫,目的是為
3、了分散每一臺服務(wù)器的工作量,硬件上至少需要兩臺以上的服務(wù)器,而且還需要一個共享存儲設(shè)備。同時所有服務(wù)器上的OS都應(yīng)該是同一類OS,根據(jù)負(fù)載均衡的配置策略,當(dāng)一個客戶端發(fā)送請求到某一臺服務(wù)的listener后,這臺服務(wù)器根據(jù)我們的負(fù)載均衡策略,會把請求發(fā)送給本機的RAC組件處理也可能會發(fā)送給另外一臺服務(wù)器的RAC組件處理,處理完請求后,RAC會通過集群軟件來訪問共享存儲設(shè)備.邏輯結(jié)構(gòu)上看:l 每一個參加集群的節(jié)點有一個獨立的instance,這些instance訪問同一個數(shù)據(jù)庫。l 每一個節(jié)點的linstance都有自己的SGA。l 每一個節(jié)點的linstance都有自己的background
4、process。l 每一個節(jié)點的linstance都有自己的redo logs。l 每一個節(jié)點的instance都有自己的undo表空間。l 所有節(jié)點都共享一份datafiles和controlfiles。三類Resource:l VIP - 虛擬IP地址(Virtual IP) l OCR - Oracle Cluster Registry(集群注冊文件),記錄每個節(jié)點的相關(guān)信息l Voting Disk,仲裁機制用于仲裁多個節(jié)點向共享節(jié)點同時寫的行為,這樣 做是為了避免發(fā)生沖突。二、 RAC環(huán)境設(shè)計1. 服務(wù)器配置操作系統(tǒng)主機名內(nèi)存網(wǎng)卡Redhat Enterprise Linux 5.4
5、rac12Geth0(Public)eth1(Prive)Redhat Enterprise Linux 5.4rac22Geth0(Public)eth1(Prive)2. 用戶組規(guī)劃GroupNameGroupID說明HOSToinstall 501Oracle清單和軟件所有者rac1,rac2asmadmin 504Oracle自動存儲管理組rac1,rac2asmdba506ASM數(shù)據(jù)庫管理員組rac1,rac2asmopen507ASM操作員組rac1,rac2dba502數(shù)據(jù)庫管理員rac1,rac23. 用戶規(guī)劃UserIDUserNameGroup說明HOS
6、T口令501gridoinstalldbaasmadminasmdbaasmoperOracle Cluster用戶rac1rac2grid123502oracleoinstalldbaasmdbaOracle數(shù)據(jù)庫管理員rac1rac2oracle1234. IP規(guī)劃主機名公用IP私有IP虛擬IPrac1172.16.1.21110.10.10.211172.16.1.111rac2172.16.1.21210.10.10.212172.16.1.112ScanIP172.16.1.1005. 存儲規(guī)劃存儲組件Block DeviceASMlib NameSizeOCR/dev/sdbOCR
7、_VOL11G/dev/sdcOCR_VOL21G/dev/sddOCR_VOL31G數(shù)據(jù)文件/dev/sdeDATA_VOL110G文件備份/dev/sdfBACK_VOL15G三、 Oracle RAC搭建1. 配置共享存儲(ASM依賴)l 方法一:vmware workstation 9虛擬共享存儲(1) 在VM安裝目錄VMware Workstation下執(zhí)行命令:#vmware-vdiskmanager.exe -c -s 1GB -a lsilogic -t 2 D:racDiskdb01.vmdk#vmware-vdiskmanager.exe -c -s 1GB -a lsil
8、ogic -t 2 D:racDiskdb02.vmdk#vmware-vdiskmanager.exe -c -s 1GB -a lsilogic -t 2 D:racDiskdb03.vmdk#vmware-vdiskmanager.exe -c -s 10GB -a lsilogic -t 2 D:racDiskdb04.vmdk#vmware-vdiskmanager.exe -c -s 5GB -a lsilogic -t 2 D:racDiskdb05.vmdk(2) 修改rac1和rac2下的.vmx文件,在最后一行添加如下內(nèi)容:diskLib.dataCacheMaxSize=
9、0 diskLib.dataCacheMaxReadAheadSize=0diskLib.dataCacheMinReadAheadSize=0diskLib.dataCachePageSize=4096diskLib.maxUnsyncedWrites = "0"disk.locking = "FALSE"scsi1.sharedBus = "virtual" scsi1.present = "TRUE"scsi1.virtualDev = "lsilogic"scsi1:0.mode = &
10、quot;independent-persistent"scsi1:0.deviceType = "disk"scsi1:0.present = "TRUE"scsi1:0.fileName = "D:racDiskdb01.vmdk"scsi1:1.mode = "independent-persistent"scsi1:1.deviceType = "disk"scsi1:1.present = "TRUE"scsi1:1.fileName = "D:
11、racDiskdb02.vmdk" scsi1:2.mode = "independent-persistent"scsi1:2.deviceType = "disk"scsi1:2.present = "TRUE"scsi1:2.fileName = "D:racDiskdb03.vmdk" scsi1:3.mode = "independent-persistent"scsi1:3.deviceType = "disk"scsi1:3.present = &qu
12、ot;TRUE"scsi1:3.fileName = "D:racDiskdb04.vmdk"scsi1:4.mode = "independent-persistent"scsi1:4.deviceType = "disk"scsi1:4.present = "TRUE"scsi1:4.fileName = "D:racDiskdb05.vmdk"(3) 重新打開虛擬機,并啟動。(4) 磁盤分區(qū),在rac1執(zhí)行#fdisk /dev/sdbDevice contains neithe
13、r a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by
14、w(rite)Command (m for help): pDisk /dev/sdb: 1048 MB, 1048576000 bytes 64 heads, 32 sectors/track, 1000 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4):
15、1First cylinder (1-1000, default 1):Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1000, default 1000): Using default value 1000 Command (m for help): wThe partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.#fdisk /dev/sdc 重復(fù)上面操作#fdisk /d
16、ev/sdd 重復(fù)上面操作#fdisk /dev/sde 重復(fù)上面操作#fdisk /dev/sdf 重復(fù)上面操作l 方法二:Linux mount掛載(待解決)2. 安裝依賴包#yum install -y expect* iscsi* binutils* compat-libstdc+* expat* elfutils-libelf* gcc* glibc* ksh* libgcc*#yum install -y pdksh* libgomp* compat-db* libXp* libaio* cpp* setarch* sysstat* libstdc+* make-3*#yum in
17、stall -y unixODBC#yum install -y unixODBC-devel3. 查看依賴包安裝狀況#rpm -q -qf '%NAME-%VERSION-%RELEASE(%ARCH)n' binutils elfutils-libelf elfutils-libelf expat gcc gcc-c+ glibc glibc-common glibc-devel glibc-headers ksh libaio libaio-devel libgcc libstdc+ libstdc+-devel make pdksh sysstat unixODBC u
18、nixODBC-devel執(zhí)行結(jié)果binutils-2.17.50.0.6-26.el5(x86_64)elfutils-libelf-0.137-3.el5(x86_64)elfutils-libelf-0.137-3.el5(i386)elfutils-libelf-0.137-3.el5(x86_64)elfutils-libelf-0.137-3.el5(i386)expat-1.95.8-11.el5_8(x86_64)expat-1.95.8-11.el5_8(i386)gcc-4.1.2-54.el5(x86_64)gcc-c+-4.1.2-54.el5(x86_64)glibc
19、-2.5-118.el5_10.2(i686)glibc-2.5-118.el5_10.2(x86_64)glibc-common-2.5-118.el5_10.2(x86_64)glibc-devel-2.5-118.el5_10.2(x86_64)glibc-devel-2.5-118.el5_10.2(i386)glibc-headers-2.5-118.el5_10.2(x86_64)ksh-20100621-18.el5(x86_64)libaio-0.3.106-5(x86_64)libaio-0.3.106-5(i386)libaio-devel-0.3.106-5(i386)l
20、ibaio-devel-0.3.106-5(x86_64)libgcc-4.1.2-54.el5(x86_64)libgcc-4.1.2-54.el5(i386)libstdc+-4.1.2-54.el5(x86_64)libstdc+-4.1.2-54.el5(i386)libstdc+-devel-4.1.2-54.el5(x86_64)libstdc+-devel-4.1.2-54.el5(i386)make-3.81-3.el5(x86_64)pdksh-5.2.14-37.el5_8.1(x86_64)sysstat-7.0.2-12.el5(x86_64)unixODBC-2.2.
21、11-10.el5(i386)unixODBC-2.2.11-10.el5(x86_64)unixODBC-devel-2.2.11-10.el5(x86_64)unixODBC-devel-2.2.11-10.el5(i386)4. 網(wǎng)絡(luò)配置(1) 修改rac1和rac2的network#vi /etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=noHOSTNAME=rac1 #此處為主機名GATEWAY=172.16.1.254#vi /etc/sysconfig/networkNETWORKING=yesNETWORKING_IPV6=
22、noHOSTNAME=rac2GATEWAY=172.16.1.254(2) 修改rac1和rac2的hosts#vi /etc/hosts#eth0-Public IP#172.16.1.211 rac1172.16.1.212 rac2#eth1PRIVATE IP#10.10.10.211 rac1-priv10.10.10.212 rac2-priv#VIP#172.16.1.111 rac1-vip172.16.1.112 rac2-vip#SCAN#172.16.1.100 rac-cluster-scan(3) 重啟rac1和rac2網(wǎng)絡(luò)服務(wù)#service network re
23、start(4) 配置虛擬IP#ifconfig eth0:0 172.16.1.111 netmask 255.255.0.0 up#ifconfig eth0:0 172.16.1.112 netmask 255.255.0.0 up*注:虛擬IP在重啟網(wǎng)絡(luò)服務(wù)會被卸載,需要重新設(shè)置。5. 配置NTPD服務(wù)NTPD服務(wù)為Grid的檢查項,提供時間同步服務(wù)。(1) 修改NTPD參數(shù)文件(rac1,rac2)#vi /etc/sysconfig/ntpdSYNC_HWCLOCK=yesOPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"(
24、2) 修改rac1的ntpd.conf文件,刪除原有內(nèi)容錄入以下內(nèi)容#cp /etc/ntp.conf /etc/ntp.conf.bak#vi /etc/ntp.confrestrict 0.0.0.0 mask 0.0.0.0 nomodifyserver127.127.1.0fudge127.127.1.0 stratum 10restrict 127.127.1.0driftfile /var/lib/ntp/driftbroadcastdelay 0.008authenticate nokeys /etc/ntp/keys(3) 清空rac1的ntpservers原有內(nèi)容#cp /e
25、tc/ntp/ntpservers /etc/ntp/ntpservers.bak#vi /etc/ntp/ntpservers(4) 編輯rac1的step-tickers,添加一行#cp /etc/ntp/step-tickers /etc/ntp/step-tickers.bak#vi /etc/ntp/step-tickers127.127.1.0(5) 修改rac2的ntpd.conf文件,刪除原有內(nèi)容錄入以下內(nèi)容#cp /etc/ntp.conf /etc/ntp.conf.bak#vi /etc/ntp.confrestrict 0.0.0.0 mask 0.0.0.0 nomo
26、difyserver127.127.1.0server172.16.1.211fudge127.127.1.0 stratum 10driftfile /var/lib/ntp/driftbroadcastdelay 0.008authenticate nokeys /etc/ntp/keys(6) 清空rac2的ntpservers原有內(nèi)容#cp /etc/ntp/ntpservers /etc/ntp/ntpservers.bak#vi /etc/ntp/ntpservers(7) 編輯rac2的step-tickers,添加一行#cp /etc/ntp/step-tickers /etc
27、/ntp/step-tickers.bak#vi /etc/ntp/step-tickers172.16.1.211#rac1的ip地址(8) rac1節(jié)點重啟NTPD服務(wù)#service ntpd restart(9) rac2節(jié)點停止NTPD服務(wù),rac1重啟NTPD服務(wù)后5、6分鐘再執(zhí)行#service ntpd stop#ntpdate rac1#service ntpd start(10) NTPD啟用自動加載(rac1,rac2)#chkconfig ntpd on6. 關(guān)閉服務(wù)關(guān)閉rac1和rac2無用的sendmail和cups服務(wù),加快開機速度。#chkconfig send
28、mail off#chkconfig cups off7. 用戶、用戶組(1) 創(chuàng)建用戶和用戶組#groupadd -g 501 oinstall#groupadd -g 502 dba#groupadd -g 504 asmadmin#groupadd -g 506 asmdba#groupadd -g 507 asmoper#useradd -u 501 -g oinstall -G dba,asmadmin,asmdba,asmoper grid#useradd -u 502 -g oinstall -G dba,asmdba oracle#id oracle#id grid(2) 修改
29、用戶密碼#passwd oracle#passwd grid8. 文件夾及權(quán)限#mkdir -p /u01/app/grid/#mkdir -p /u01/app/11.2.0/grid/product/db_1#mkdir -p /u01/app/oraInventory#chown -R grid:oinstall /u01/app#mkdir -p /u01/app/oracle/product/11.2.0/db_1#chown -R oracle:oinstall /u01/app/oracle#chmod -R 775 /u019. 修改系統(tǒng)參數(shù)(1) 修改rac1和rac2的li
30、mits.conf#vi /etc/security/limits.conf#ORACLE SETTINGgrid soft nproc 2047grid hard nproc 16384grid soft nofile 1024grid hard nofile 65536oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536(2) 修改rac1和rac2的/etc/pam.d/login#vi /etc/pam.d/login#ORACLE SETTINGsess
31、ion required pam_limits.so(3) 修改rac1和rac2的/etc/sysctl.conf#vi /etc/sysctl.conf#ORACLE SETTINGfs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default =
32、262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586(4) 執(zhí)行命令(rac1、rac2)#sysctl -p(5) 修改rac1和rac2的profile,在末尾添加#vi /etc/profileif $USER = "oracle" | $USER = "grid" ; thenif $SHELL = "/bin/ksh" ; thenulimit -p 16384ulimit -n 65536else
33、ulimit -u 16384 -n 65536fiumask 022 fi(6) 執(zhí)行命令(rac1、rac2)#source /etc/profile(7) 修改rac1和rac2的/etc/csh.login#vi /etc/csh.loginif ( $USER = "oracle" | $USER = "grid" ) thenlimit maxproc 16384limit descriptors 65536endifEOFCSH(8) 修改grid用戶的環(huán)境變量#su - grid$cd /home/grid/$vi .bash_profi
34、leTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_SID=+ASM1; export ORACLE_SIDORACLE_BASE=/u01/app/grid; export ORACLE_BASEORACLE_HOME=/u01/app/11.2.0/grid/product/db_1; export ORACLE_HOMENLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS" export NLS_DATE_FORMATTHREADS_FLAG=native; export THREADS
35、_FLAGPATH=$ORACLE_HOME/bin:$PATH; export PATHTHREADS_FLAG=native; export THREADS_FLAGPATH=$ORACLE_HOME/bin:$PATH; export PATHif $USER = "oracle" | $USER = "grid" ; thenif $SHELL = "/bin/ksh" ; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fi umask 022fi#
36、su - grid$cd /home/grid/$vi .bash_profileTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_SID=+ASM2; export ORACLE_SIDORACLE_BASE=/u01/app/grid; export ORACLE_BASEORACLE_HOME=/u01/app/11.2.0/grid/product/db_1; export ORACLE_HOMENLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS" export NLS_DATE_FO
37、RMATTHREADS_FLAG=native; export THREADS_FLAGPATH=$ORACLE_HOME/bin:$PATH; export PATHTHREADS_FLAG=native; export THREADS_FLAGPATH=$ORACLE_HOME/bin:$PATH; export PATHif $USER = "oracle" | $USER = "grid" ; thenif $SHELL = "/bin/ksh" ; thenulimit -p 16384ulimit -n 65536else
38、ulimit -u 16384 -n 65536fi umask 022fi(9) 執(zhí)行命令(rac1、rac2)$source .bash_profile(10) 修改oracle用戶的環(huán)境變量#su - oracle$cd /home/oracle/$vi .bash_profile# Oracle Settings oracleTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.2.0
39、/db_1; export ORACLE_HOMEORACLE_SID=orcl1; export ORACLE_SIDORACLE_TERM=xterm; export ORACLE_TERMPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rd
40、bms/jlib; export CLASSPATHNLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS" export NLS_DATE_FORMATNLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANGif $USER = "oracle" | $USER = "grid" ; thenif $SHELL = "/bin/ksh" ; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384
41、-n 65536fiumask 022fi#su - grid$cd /home/grid/$vi .bash_profile# Oracle Settings oracleTMP=/tmp; export TMPTMPDIR=$TMP; export TMPDIRORACLE_BASE=/u01/app/oracle; export ORACLE_BASEORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOMEORACLE_SID=orcl2; export ORACLE_SIDORACLE_TERM=xterm; ex
42、port ORACLE_TERMPATH=/usr/sbin:$PATH; export PATHPATH=$ORACLE_HOME/bin:$PATH; export PATHLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATHCLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATHNLS_DATE_FORMAT="yyyy-mm-dd HH24:MI:SS" expor
43、t NLS_DATE_FORMATNLS_LANG=AMERICAN_AMERICA.ZHS16GBK;export NLS_LANGif $USER = "oracle" | $USER = "grid" ; thenif $SHELL = "/bin/ksh" ; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fiumask 022fi(11) 執(zhí)行命令(rac1、rac2)$source .bash_profile10. 配置用戶等效性(1) 使用Or
44、acle用戶,在所有節(jié)點執(zhí)行#su - oracle$ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/oracle/.ssh/id_rsa): Created directory '/home/oracle/.ssh'.Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved
45、 in /home/oracle/.ssh/id_rsa.Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.The key fingerprint is:be:8b:34:fd:c9:34:a7:2f:d2:f7:d9:30:1f:2e:48:d6 oraclerac1$ssh-keygen -t dsaGenerating public/private dsa key pair.Enter file in which to save the key (/home/oracle/.ssh/id_dsa): Enter
46、passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/oracle/.ssh/id_dsa.Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.The key fingerprint is:4f:bc:4b:9a:a6:cd:1c:15:e7:67:92:94:a2:cd:50:14 oraclerac1(2) 使用Oracle用戶,在節(jié)點rac1執(zhí)行$c
47、at /home/oracle/.ssh/*.pub >> /home/oracle/.ssh/authorized_keys$ssh rac2 cat /home/oracle/.ssh/*.pub >> /home/oracle/.ssh/authorized_keys $scp /home/oracle/.ssh/authorized_keys rac2:/home/oracle/.ssh/authorized_keys(3) 驗證Oracle用戶等效性,在所有節(jié)點執(zhí)行$ssh rac2 date$ssh rac1 date$ssh rac2-vip date$s
48、sh rac1-vip date$ssh rac2-priv date$ssh rac1-priv dates(4) 使用grid用戶,在所有節(jié)點執(zhí)行#su - grid$ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/home/grid/.ssh/id_rsa): Created directory '/home/grid/.ssh'.Enter passphrase (empty for no passphrase): Enter sa
49、me passphrase again: Your identification has been saved in /home/grid/.ssh/id_rsa.Your public key has been saved in /home/grid/.ssh/id_rsa.pub.The key fingerprint is:39:1c:f5:9b:76:e1:de:20:40:e0:e8:20:77:fa:cd:97 gridrac1$ssh-keygen -t dsaGenerating public/private dsa key pair.Enter file in which t
50、o save the key (/home/grid/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/grid/.ssh/id_dsa.Your public key has been saved in /home/grid/.ssh/id_dsa.pub.The key fingerprint is:08:a4:1b:87:89:fb:cd:93:3f:5d:f8:7b:f6:67
51、:dd:4c gridrac1(5) 使用grid用戶,在節(jié)點rac1執(zhí)行$ cat /home/grid/.ssh/*.pub >> /home/grid/.ssh/authorized_keys$ssh rac2 cat /home/grid/.ssh/*.pub >> /home/grid/.ssh/authorized_keys$scp /home/grid/.ssh/authorized_keys rac2:/home/grid/.ssh/authorized_keys(6) 驗證grid用戶等效性,在所有節(jié)點執(zhí)行$ssh rac2 date$ssh rac1
52、 date$ssh rac2-vip date$ssh rac1-vip date$ssh rac2-priv date$ssh rac1-priv dates(7) 重啟rac1、rac2#reboot11. 安裝ASM(1) 檢查系統(tǒng)及內(nèi)核版本#uname aLinux rac2 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux#lsb_release aLSBVersion: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:grap
53、hics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarchDistributor ID: RedHatEnterpriseServerDescription: Red Hat Enterprise Linux Server release 5.4 (Tikanga)Release: 5.4Codename: Tikanga(2) 下載與系統(tǒng)及內(nèi)核版本對應(yīng)的ASM下載地址:當(dāng)前版本:oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64oracleasm-2.6.18-164.el5debug-2.0.5-1.el5.
54、x86_64oracleasm-2.6.18-164.el5-debuginfo-2.0.5-1.el5.x86_64oracleasm-2.6.18-164.el5xen-2.0.5-1.el5.x86_64oracleasmlib-2.0.4-1.el5.x86_64oracleasm-support-2.1.8-1.el5.x86_64(3) 安裝asm包,按順序安裝#rpm -ivh -nodeps oracleasmlib-2.0.4-1.el5.x86_64.rpm#rpm -ivh -nodeps oracleasm-support-2.1.8-1.el5.x86_64.rpm#
55、rpm -ivh -nodeps oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm#rpm -ivh -nodeps oracleasm-2.6.18-164.el5-debuginfo-2.0.5-1.el5.x86_64.rpm#rpm -ivh -nodeps oracleasm-2.6.18-164.el5debug-2.0.5-1.el5.x86_64.rpm#rpm -ivh -nodeps oracleasm-2.6.18-164.el5xen-2.0.5-1.el5.x86_64.rpm(4) 初始化asmlib,在所有節(jié)點執(zhí)行#/usr/sbin/oracleasm configure -iConfiguring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will hav
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025-2030年中國旅居康養(yǎng)行業(yè)全國市場開拓戰(zhàn)略制定與實施研究報告
- 2025-2030年中國小家電行業(yè)商業(yè)模式創(chuàng)新戰(zhàn)略制定與實施研究報告
- 2025-2030年中國壓鑄行業(yè)營銷創(chuàng)新戰(zhàn)略制定與實施研究報告
- 2025-2030年中國汽車經(jīng)銷行業(yè)并購重組擴張戰(zhàn)略制定與實施研究報告
- 網(wǎng)絡(luò)工程師工作總結(jié)5篇
- 建設(shè)項目環(huán)境設(shè)施竣工驗收指南
- 面向智能網(wǎng)聯(lián)汽車的成熟駕駛模型白皮書 202311
- 家政培訓(xùn)師知識點課件
- 2023-2029年中國鐵路后行業(yè)發(fā)展監(jiān)測及市場發(fā)展?jié)摿︻A(yù)測報告
- 冷鏈物流園及配套基礎(chǔ)設(shè)施建設(shè)項目資金申請報告
- 河北省石家莊市2023-2024學(xué)年高二上學(xué)期期末考試 語文 Word版含答案
- 觸電與應(yīng)急知識培訓(xùn)總結(jié)
- 代理記賬機構(gòu)自查報告范文
- 項目貸款保證函書
- 新版標(biāo)準(zhǔn)日本語(初級)上下冊單詞默寫表
- 面向5G網(wǎng)絡(luò)建設(shè)的站點供電技術(shù)應(yīng)用與發(fā)展
- 普通語文課程標(biāo)準(zhǔn)(2023年核心素養(yǎng)版)
- 洗滌劑常用原料
- 曼陀羅中毒課件
- (新版)焊工(初級)理論知識考試200題及答案
- 滿堂腳手架計算書
評論
0/150
提交評論