版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
1、更多企業(yè)學院:./Shop/中小企業(yè)管理全能版183套講座+89700份資料./Shop/40.shtml總經(jīng)理、高層管理49套講座+16388份資料./Shop/38.shtml中層管理學院46套講座+6020份資料 ./Shop/39.shtml國學智慧、易經(jīng)46套講座./Shop/41.shtml人力資源學院56套講座+27123份資料./Shop/44.shtml各階段員工培訓學院77套講座+ 324份資料./Shop/49.shtml員工管理企業(yè)學院67套講座+ 8720份資料./Shop/42.shtml工廠生產(chǎn)管理學院52套講座+ 13920份資料./Shop/43.s
2、html財務管理學院53套講座+ 17945份資料 ./Shop/45.shtml銷售經(jīng)理學院56套講座+ 14350份資料./Shop/46.shtml銷售人員培訓學院72套講座+ 4879份資料./Shop/47.shtmlLinux虛擬機下配置ORACLE(ASM) RAC用友軟件股份有限公司王輝wanghui001.2008-11-15第一部分:硬件要求和概述1.1主機操作系統(tǒng)環(huán)境概況主機名操作系統(tǒng)處理器內(nèi)存磁盤網(wǎng)卡pacuWindows XP Professional Service Pack 2(32 位)Intel Pentium 4 550, 3.4MHz, HT2
3、GB DDR2 SDRAM, 533 MHz250 GB, Ultra ATA/133, 7200 RPMIntel Pro/1000 MT1.2客戶操作系統(tǒng)環(huán)境概況主機名操作系統(tǒng)處理器內(nèi)存rac1Oracle Enterprise Linux 4(32 位)1700 MBrac2Oracle Enterprise Linux 4(32 位)1700 MB1.3虛擬磁盤布局概況主機操作系統(tǒng)上的虛擬磁盤客戶操作系統(tǒng)上的虛擬磁盤虛擬設備節(jié)點大小 (MB)描述d:vmraclocaldisk.vmdk/dev/sda1/dev/sda2/dev/sda3SCSI 0:020“/”掛載點交換空間 Or
4、acle 二進制文件 d:vmracsharedstorageocfs2disk.vmdk/dev/sdbSCSI 1:0512OCFS2 磁盤d:vmracsharedstorageasmdisk1.vmdk/dev/sdcSCSI 1:13072ASM 磁盤組 1d:vmracsharedstorageasmdisk2.vmdk/dev/sddSCSI 1:23072ASM 磁盤組 1d:vmracsharedstorageasmdisk3.vmdk/dev/sdeSCSI 1:32048ASM 閃回恢復區(qū)(要配置共享存儲,客戶 OS 不能與共享存儲共享同一個 SCSI 總線。指定客戶 O
5、S 使用 SCSI0,共享磁盤使用 SCSI1。)1.4 RAC 數(shù)據(jù)庫環(huán)境概況主機名ASM 實例名RAC 實例名 數(shù)據(jù)庫名數(shù)據(jù)庫文件存儲OCR 與表決磁盤 (Voting Disk)rac1+ASM1devdb1devdbASMOCFS2rac2+ASM2devdb2devdbASMOCFS2您將在每個節(jié)點上安裝 Oracle 主目錄供冗余使用。每個節(jié)點上的 ASM 和 Oracle RAC 實例共享同一個 Oracle 主目錄。第二部分:配置虛擬機2.1創(chuàng)建虛擬機網(wǎng)絡連接選擇橋接方式并且分配10G空間2.2創(chuàng)建共享磁盤創(chuàng)建四個虛擬 SCSI 硬盤:ocfs2disk.vmdk (512MB
6、)、asmdisk1.vmdk (3GB)、asmdisk2.vmdk (3GB) 和 asmdisk3.vmdk (2GB)。選擇 Allocate all disk space now。如果您希望節(jié)省空間,則不必分配所有磁盤空間。出于性能方面的考慮,您需要為每個虛擬共享磁盤預先分配所有磁盤空間。特別是在 Oracle 數(shù)據(jù)庫創(chuàng)建期間或者當數(shù)據(jù)庫的 DML 活動較頻繁時,如果共享磁盤的大小增長快速,虛擬機可能會間歇掛起一段較短的時間甚至崩潰,(這種情況很少見)。其他三個虛擬共享磁盤同理。2.3虛擬網(wǎng)卡共享磁盤和網(wǎng)卡都配置好以后如下:2.4修改虛擬機配置文件還需要設置其他參數(shù)以啟用兩個虛擬 R
7、AC 節(jié)點之間的磁盤共享。打開配置文件 rac1Red Hat Enterprise Linux 4.vmx,并添加下面列出的粗體參數(shù)。 config.version = "8"virtualHW.version = "4"scsi0.present = "TRUE"scsi0.virtualDev = "lsilogic"memsize = "700"scsi0:0.present = "TRUE"scsi0:0.fileName = "localdisk.vmd
8、k"ide1:0.present = "TRUE"ide1:0.fileName = "auto detect"ide1:0.deviceType = "cdrom-raw"floppy0.fileName = "A:"Ethernet0.present = "TRUE"displayName = "rac1"guestOS = "rhel4"priority.grabbed = "normal"priority.ungrab
9、bed = "normal"disk.locking = "FALSE"diskLib.dataCacheMaxSize = "0"scsi1.sharedBus = "virtual"scsi1.present = "TRUE"scsi1:0.present = "TRUE"scsi1:0.fileName = "D:vmracsharedstorageocfs2disk.vmdk"scsi1:0.mode = "independent-per
10、sistent"scsi1:0.deviceType = "disk"scsi1:1.present = "TRUE"scsi1:1.fileName = "D:vmracsharedstorageasmdisk1.vmdk"scsi1:1.mode = "independent-persistent"scsi1:1.deviceType = "disk"scsi1:2.present = "TRUE"scsi1:2.fileName = "D:vmrac
11、sharedstorageasmdisk2.vmdk"scsi1:2.mode = "independent-persistent"scsi1:2.deviceType = "disk"scsi1:3.present = "TRUE"scsi1:3.fileName = "D:vmracsharedstorageasmdisk3.vmdk"scsi1:3.mode = "independent-persistent"scsi1:3.deviceType = "disk&quo
12、t;scsi1.virtualDev = "lsilogic"ide1:0.autodetect = "TRUE"floppy0.present = "FALSE"Ethernet1.present = "TRUE"Ethernet1.connectionType = "hostonly"2.5安裝Linux在.網(wǎng)站上下載centos4.6-binDVD介質(zhì)配置IP地址2.6安裝VMWare Tool登錄系統(tǒng),桌面上有個一個光盤,是剛剛用來裝操作系統(tǒng)的光盤,將其彈出執(zhí)行vmw
13、are-config-tool.pl包選擇分辨率同步虛擬機和宿主機的時間Vi /boot/grub/grub.conf添加參數(shù)clock=pit nosmp noapic nolapic重新啟動2.7創(chuàng)建Oracle組和用戶groupadd oinstallgroupadd dbamkdir -p /u01/oracle /ocfsuseradd -d /u01/oracle -g oinstall -G dba oraclechown oracle:dba /u01/oracle /ocfspasswd oracle編輯profile文件su oraclevi .bash_profileex
14、port PS1="/bin/hostname -s-> "export EDITOR=viexport ORACLE_SID=devdb1export ORACLE_BASE=/u01/oracleexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs_1export LD_LIBRARY_PATH=$ORACLE_HOME/libexport PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/b
15、in:$PATH2.8配置參數(shù)創(chuàng)建文件系統(tǒng)目錄rac1-> mkdir -p $ORACLE_BASE/adminrac1-> mkdir -p $ORACLE_HOMErac1-> mkdir -p $ORA_CRS_HOMErac1-> mkdir -p /u01/oracle/oradata/devdb添加oracle用戶的shell限制使用root用戶執(zhí)行/etc/security/limits.conf oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard
16、 nofile 65536/etc/pam.d/login session required /lib/security/pam_limits.so/etc/profile if $USER = "oracle" ; thenif $SHELL = "/bin/ksh" ; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fifi安裝 Enterprise Linux 軟件程序包。安裝 Oracle 軟件需要以下附加程序包。如果您已經(jīng)安裝了 64 位版本的 Enterprise
17、Linux,則安裝程序應該已安裝了這些程序包。 · libaio-0.3.105-2.i386.rpm · openmotif21-2.1.30-11.RHEL4.6.i386.rpm 執(zhí)行當前目錄下所有rpm文件rpm -Uvh *.rpm配置內(nèi)核參數(shù)。使用文本編輯器將下面列出的行添加到 /etc/sysctl.conf。要使更改立即生效,請執(zhí)行 /sbin/sysctl p。 # more /etc/sysctl.confkernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel
18、.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 1048576net.core.rmem_max = 1048576net.core.wmem_default = 262144net.core.wmem_max = 262144編輯hosts文件vi /etc/hosts配置 hangcheck timer 內(nèi)核模塊。hangcheck timer 內(nèi)核模塊可監(jiān)控系統(tǒng)的運行情況,并重新啟動出現(xiàn)故障的 RAC 節(jié)點。它使用兩個參數(shù)
19、,即 hangcheck_tick(定義系統(tǒng)檢查頻率)和 hangcheck_margin(定義在重置 RAC 節(jié)點前的最大掛起延時)來確定節(jié)點是否出現(xiàn)故障。 在 /etc/modprobe.conf 中添加以下行,以設置 hangcheck 內(nèi)核模塊參數(shù)。 /etc/modprobe.confoptions hangcheck-timer hangcheck_tick=30 hangcheck_margin=180要立即加載模塊,執(zhí)行“modprobe -v hangcheck-timer”。 2.9創(chuàng)建磁盤分區(qū)在每一個共享磁盤上都創(chuàng)建一個分區(qū),創(chuàng)建分區(qū)的命令:fdisk /dev/sda創(chuàng)
20、建完成后,如下圖2.10為ASM 磁盤映射原始設備僅當您打算使用標準 Linux I/O 創(chuàng)建 ASM 磁盤時,才需要原始設備映射。創(chuàng)建 ASM 磁盤的另一個方法是使用 Oracle 提供的 ASM 庫驅(qū)動程序。稍后,您將使用 ASM 庫驅(qū)動程序配置 ASM 磁盤。 執(zhí)行以下任務,將原始設備映射到先前創(chuàng)建的共享分區(qū)。每次引導集群節(jié)點時,原始設備都必須與塊設備綁定。 將以下行添加到 /etc/sysconfig/rawdevices 中。/dev/raw/raw1 /dev/sdc1/dev/raw/raw2 /dev/sdd1/dev/raw/raw3 /dev/sde1要使映射立即生效,以
21、root 用戶身份執(zhí)行以下命令# /sbin/service rawdevices restartAssigning devices: /dev/raw/raw1 -> /dev/sdc1/dev/raw/raw1: bound to major 8, minor 33 /dev/raw/raw2 -> /dev/sdd1/dev/raw/raw2: bound to major 8, minor 49 /dev/raw/raw3 -> /dev/sde1/dev/raw/raw3: bound to major 8, minor 65Done更改所屬和權(quán)限cd /dev/r
22、awchown oracle:dba /dev/raw/raw*chmod 600 /dev/raw/raw*以 oracle 用戶身份執(zhí)行rac1-> ln -sf /dev/raw/raw1 /u01/oradata/devdb/asmdisk1rac1-> ln -sf /dev/raw/raw2 /u01/oradata/devdb/asmdisk2rac1-> ln -sf /dev/raw/raw3 /u01/oradata/devdb/asmdisk3修改 /etc/udev/permissions.d/50-udev.permissions。原始設備在引導時會
23、重新映射。默認情況下,在引導時原始設備的擁有者將更改為 root 用戶。如果擁有者不是 oracle 用戶,則 ASM 在訪問共享分區(qū)時會出現(xiàn)問題。在 /etc/udev/permissions.d/50-udev.permissions 中為原始行“raw/*:root:disk:0660”添加注釋,然后添加一個新行“raw/*:oracle:dba:0660”。# raw devicesram*:root:disk:0660#raw/*:root:disk:0660raw/*:oracle:dba:06602.11復制虛擬機將RAC1拷貝到RAC2目錄下,更改IP地址更改MAC地址重新啟動
24、網(wǎng)絡服務Service network restart以oracle用戶登錄,更改profile文件,用devdb2 替換 ORACLE_SID 的值2.12建立SSH互信在RAC1和RAC2上執(zhí)行相同的操作rac1-> mkdir /.sshrac1-> chmod 700 /.sshrac1-> ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa):Enter passphra
25、se (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/oracle/.ssh/id_rsa.Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.The key fingerprint is:87:54:4f:92:ba:ed:7b:51:5d:1d:59:5b:f9:44:da:b6 oraclerac1-> ssh-keygen -t ds
26、aGenerating public/private dsa key pair.Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/oracle/.ssh/id_dsa.Your public key has been saved in /export/home/or
27、acle/.ssh/id_dsa.pub.The key fingerprint is:31:76:96:e6:fc:b7:25:04:fd:70:42:04:1f:fc:9a:26 oracle只在 RAC1 上執(zhí)行 rac1-> cat /.ssh/id_rsa.pub >> /.ssh/authorized_keysrac1-> cat /.ssh/id_dsa.pub >> /.ssh/authorized_keysrac1-> ssh rac2 cat /.ssh/id_rsa.pub >> /.ssh/authorized_ke
28、ysThe authenticity of host 'rac2 (32)' can't be established.RSA key fingerprint is 63:d3:52:d4:4d:e2:cb:ac:8d:4a:66:9f:f1:ab:28:1f.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'rac2,32' (RSA) to the list of known hosts
29、.oraclerac2's password:rac1-> ssh rac2 cat /.ssh/id_dsa.pub >> /.ssh/authorized_keysoraclerac2's password:rac1-> scp /.ssh/authorized_keys rac2:/.ssh/authorized_keysoraclerac2's password:authorized_keys 100% 1716 1.7KB/s 00:00測試連接在每個節(jié)點上測試連接。驗證當您再次運行以下命令時,系統(tǒng)是否不提示您輸入口令。 ssh rac
30、1 datessh rac2 datessh rac1-priv datessh rac2-priv datessh datessh datessh rac1- datessh rac2- date第三部分:配置Oracle ASM3.1配置ASMLib以 root 用戶身份在兩個節(jié)點上配置 ASMLib第一次執(zhí)行到Initializing the Oracle ASMLib drive這一步就報出failed,我懷疑是我的oracleasm這幾個包不匹配造成的,于是去網(wǎng)上重新下載了對應版本的oracleasm-support-2.1.0-1.el4.i386.rpm,oracleasm-2.
31、6.9-67.ELsmp-2.0.3-1.i686.rpm(ELsmp表示多處理器,如果有多個CPU一定要選擇ELsmp版本),oracleasmlib-2.0.2-1.i386.rpm。卸載掉已經(jīng)安裝的上述三個包,命令:rpm e filename然后安裝,這三個包郵依賴關系,要先安裝support,然后安裝oracleasm,然后是librootrac1 soft# rpm -ivh oracleasm-support-2.1.0-1.el4.i386.rpm Preparing. # 100% 1:oracleasm-support # 100%rootrac1 soft# rpm -i
32、vh oracleasm-2.6.9-67.ELsmp-2.0.3-1.i686.rpm Preparing. # 100% 1:oracleasm-2.6.9-67.ELsm# 100%rootrac1 soft# rpm -ivh oracleasmlib-2.0.2-1.i386.rpm Preparing. # 100% 1:oracleasmlib # 100%開始執(zhí)行配置rootrac2 soft# /etc/init.d/oracleasm configureConfiguring the Oracle ASM library driver.This will configure
33、 the on-boot properties of the Oracle ASM librarydriver. The following questions will determine whether the driver isloaded on boot and what permissions it will have. The current valueswill be shown in brackets (''). Hitting <ENTER> without typing ananswer will keep that current value.
34、 Ctrl-C will abort.Default user to own the driver interface oracle: Default group to own the driver interface dba: Start Oracle ASM library driver on boot (y/n) y: Scan for Oracle ASM disks on boot (y/n) y: Writing Oracle ASM library driver configuration: doneInitializing the Oracle ASMLib driver: O
35、K Scanning the system for Oracle ASMLib disks: OK 成功,OK,但是Writing Oracle ASM library driver configuration: done,不是OK,不知道是怎么回事,先不管它。3.2創(chuàng)建ASM磁盤以 root 用戶身份在任何一個節(jié)點上創(chuàng)建 ASM 磁盤rootrac2 soft# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1Marking disk "VOL1" as an ASM disk: OK rootrac2 soft# /etc/
36、init.d/oracleasm createdisk VOL2 /dev/sdd1Marking disk "VOL2" as an ASM disk: OK rootrac2 soft# /etc/init.d/oracleasm createdisk VOL3 /dev/sde1Marking disk "VOL3" as an ASM disk: OK rootrac2 soft# /etc/init.d/oracleasm scandisksScanning the system for Oracle ASMLib disks: OK root
37、rac2 soft# /etc/init.d/oracleasm listdisksVOL1VOL2VOL3rootrac2 soft#第四部分:配置 Oracle OCFS24.1配置IP運行/usr/sbin/ocfs2console,選擇 Clucster-Configure Nodes ,老是出現(xiàn):“Could not start cluster stack.This must be resolved before any ocfs2."去網(wǎng)上搜索一下:原因:1。要disable selinux安全!編輯 /etc/selinux/config 文件,設置SELINUX=di
38、sabled 并重新啟動系統(tǒng)。2。安裝的ocfs2包一定要對應正確的內(nèi)核版本!uname -r,如果顯示2.6.9-22.ELsmp,有smp字樣,表示是多處理器的,要用類似ocfs2-2.6.9-22.ELsmp-1.0.7-1.i686.rpm,帶ELsmp的包!去網(wǎng)上下載對應版本的包,卸載后安裝,在執(zhí)行,OK,界面出來了添加兩個節(jié)點的ip信息點擊應用,報出如下錯誤,還得去網(wǎng)上搜索,有人說要刪除/etc/ocfs2/cluster.conf文件刪除以后,在重新配置IP,點擊應用,OK了,哈哈,奇怪,什么問題!將該文件同步到另一臺機器中去4.2配置O2CB驅(qū)動程序在兩個節(jié)點上執(zhí)行下面的過程,
39、將 O2CB 配置為在引導時啟動。rootrac1 ocfs2# /etc/init.d/o2cb unloadStopping O2CB cluster ocfs2: OKUnmounting ocfs2_dlmfs filesystem: OKUnloading module "ocfs2_dlmfs": OKUnmounting configfs filesystem: OKUnloading module "configfs": OKrootrac1 ocfs2# /etc/init.d/o2cb configureConfiguring the
40、 O2CB driver.This will configure the on-boot properties of the O2CB driver.The following questions will determine whether the driver is loaded onboot. The current values will be shown in brackets (''). Hitting<ENTER> without typing an answer will keep that current value. Ctrl-Cwill abo
41、rt.rootrac1 ocfs2# /etc/init.d/o2cb configureConfiguring the O2CB driver.This will configure the on-boot properties of the O2CB driver.The following questions will determine whether the driver is loaded onboot. The current values will be shown in brackets (''). Hitting<ENTER> without t
42、yping an answer will keep that current value. Ctrl-Cwill abort.Load O2CB driver on boot (y/n) y: yCluster to start on boot (Enter "none" to clear) ocfs2: Specify heartbeat dead threshold (>=7) 31: 61Specify network idle timeout in ms (>=5000) 30000: 30000Specify network keepalive del
43、ay in ms (>=1000) 2000: 2000Specify network reconnect delay in ms (>=2000) 2000: 2000Writing O2CB configuration: OKLoading module "configfs": OKMounting configfs filesystem at /config: OKLoading module "ocfs2_nodemanager": OKLoading module "ocfs2_dlm": OKLoading m
44、odule "ocfs2_dlmfs": OKMounting ocfs2_dlmfs filesystem at /dlm: OKStarting O2CB cluster ocfs2: OKrootrac1 ocfs2#4.3格式化文件系統(tǒng)在格式化和掛載文件系統(tǒng)之前,應驗證 O2CB 在兩個節(jié)點上均聯(lián)機;O2CB 心跳當前沒有活動,因為文件系統(tǒng)未掛載rootrac1 ocfs2# /etc/init.d/o2cb statusModule "configfs": LoadedFilesystem "configfs": Mount
45、edModule "ocfs2_nodemanager": LoadedModule "ocfs2_dlm": LoadedModule "ocfs2_dlmfs": LoadedFilesystem "ocfs2_dlmfs": MountedChecking O2CB cluster ocfs2: Online Heartbeat dead threshold: 61 Network idle timeout: 30000 Network keepalive delay: 2000 Network reconn
46、ect delay: 2000Checking O2CB heartbeat: Not activerootrac1 ocfs2#4.4掛載文件系統(tǒng)要掛載文件系統(tǒng),在兩個節(jié)點上執(zhí)行以下命令。 # mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs要在引導時掛載文件系統(tǒng),在兩個節(jié)點的 /etc/fstab 中添加以下行/dev/sdb1 /ocfs ocfs2 _netdev,datavolume,nointr 0 04.5創(chuàng)建Oracle集群件目錄在 OCR 和表決磁盤將駐留的 OCFS2 文件系統(tǒng)中創(chuàng)建目錄。 在RAC1上執(zhí)行# mkdir
47、 /ocfs/clusterware# chown -R oracle:dba /ocfs 現(xiàn)在,您已經(jīng)完成了 OCFS2 的設置。驗證您可以在兩個節(jié)點的共享集群文件系統(tǒng)上讀寫文件。第五部分:安裝Oracle集群件下載后,在 rac1 上以 oracle 用戶身份執(zhí)行通過設置DISPLAY變量,還是不可以,太奇怪,推薦大家一款桌面軟件,NX。NX屬于CS軟件,在服務器端和客戶端都要安裝的。成功!通過NX可以正常打開安裝界面。下面開始安裝ORACLE集群件。注意路徑不要選擇錯了報出內(nèi)存不夠,不用搭理它5.1添加節(jié)點信息點的Private Node Name和Virtual Host Name。好
48、像不可以填寫IP地址。還得去網(wǎng)上查找原因,一下子就找到了可能是SSH的問題。然后我執(zhí)行了一下 ssh rac1 date ,輸入yes。再回來點OK,繼續(xù)執(zhí)行錯誤消失了!可能是我在建立完SSH互信之后,沒有執(zhí)行一下SSH RAC1 DATE。5.2更改網(wǎng)卡類型5.3 OCR和VOTINGDISK冗余Normal Redundancy 要是生產(chǎn)系統(tǒng)就需要選擇這個,要求鏡像,否則有單點故障的隱患存在。我們做的是DEMO環(huán)境,不選鏡像。5.4開始安裝媽的,又出錯了,拿出日志,一看,好像和rsh還有關系。測試一下rsh rac1果然不通rac1-> rsh rac2connect to addr
49、ess 89: Connection refusedTrying krb4 rlogin.connect to address 89: Connection refusedtrying normal rlogin (/usr/bin/rlogin)rac2-> rsh rac1connect to address 88: Connection refusedTrying krb4 rlogin.connect to address 88: Connection refusedtrying normal
50、 rlogin (/usr/bin/rlogin)rac1->看來病因找到了!沒有辦法,只能點擊OK,退出安裝了。還得網(wǎng)上搜索,找到一篇配置無密碼rsh環(huán)境的文章,不錯,照著做吧!這時候彈出界面,要求以 root 用戶身份按順序執(zhí)行以下腳本(一次執(zhí)行一個)。在當前腳本完成后,再繼續(xù)執(zhí)行下一個腳本。(圖忘記截下來了L)。在 rac1 上執(zhí)行 /u01/app/oracle/oraInventory/orainstRoot.sh在 rac2 上執(zhí)行 /u01/app/oracle/oraInventory/orainstRoot.sh在 rac1 上執(zhí)行 /u01/app/oracle/pr
51、oduct/10.2.0/crs_1/root.sh在 rac2 上執(zhí)行 /u01/app/oracle/product/10.2.0/crs_1/root.shrac2 上的 root.sh 腳本會自動調(diào)用 VIPCA,但會因為“The given interface(s), "eth0" is not public.Public interfaces should be used to configure virtual IPs.”錯誤而失敗。如果您的公共接口使用不可路由的 IP 地址 (192.168.x.x),則 Oracle 集群驗證實用程序 (CVU) 將無法找
52、到合適的公共接口。一種解決方法是手動運行 VIPCA。=RAC1=rootrac1 crs_1# ./root.shWARNING: directory '/u01/oracle/product/10.2.0' is not owned by rootWARNING: directory '/u01/oracle/product' is not owned by rootWARNING: directory '/u01/oracle' is not owned by rootWARNING: directory '/u01' is
53、 not owned by rootChecking to see if Oracle CRS stack is already configured/etc/oracle does not exist. Creating it now.Setting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyWARNING: directory '/u01/oracle/product/10.2.0
54、' is not owned by rootWARNING: directory '/u01/oracle/product' is not owned by rootWARNING: directory '/u01/oracle' is not owned by rootWARNING: directory '/u01' is not owned by rootassigning default hostname rac1 for node 1.assigning default hostname rac2 for node 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: rac1 rac1-priv rac1node 2: rac2 rac2-priv rac2Creating OCR keys for user
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年高職氧化還原滴定法(氧化還原反應實操)試題及答案
- 2025年高職第二學年(機械設計制造及其自動化)數(shù)控技術(shù)應用試題及答案
- 2025年大學植物學(特性分析)試題及答案
- 2025年高職(旅游管理綜合實訓)市場拓展實操試題及答案
- 2025年高職(廣告策劃與營銷)廣告策劃階段測試題及答案
- 2025年高職社會工作(社會救助)試題及答案
- 2025 小學四年級思想品德下冊家風傳承優(yōu)化主題實踐改進課件
- 中學師德教風專題培訓
- 養(yǎng)老院老人康復設施維修人員表彰制度
- 養(yǎng)老院工作人員請假及調(diào)休制度
- 2025-2026學年人教版九年級上冊歷史期末試卷(含答案和解析)
- 重癥醫(yī)學科ICU知情同意書電子病歷
- 小區(qū)配電室用電安全培訓課件
- 醫(yī)院科室文化建設與禮儀
- 2025貴州磷化(集團)有限責任公司12月招聘筆試參考題庫及答案解析
- 征信修復合同范本
- 2025年公安部遴選面試題及答案
- 中煤集團機電裝備部副部長管理能力考試題集含答案
- 福建省網(wǎng)絡安全事件應急預案
- 五育融合課件
- 意識障礙的判斷及護理
評論
0/150
提交評論