【正文】
:09 raw6crwrw 1 oracle dba 162, 7 May 30 12:09 raw7crwrw 1 root disk 162, 0 May 30 12:09 rawctl /usr/sbin/raw qa/dev/raw/raw1: bound to major 8, minor 17/dev/raw/raw2: bound to major 8, minor 33/dev/raw/raw3: bound to major 8, minor 49/dev/raw/raw4: bound to major 8, minor 65/dev/raw/raw5: bound to major 8, minor 81/dev/raw/raw6: bound to major 8, minor 97/dev/raw/raw7: bound to major 8, minor 113如兩個(gè)節(jié)點(diǎn)上均有上述輸出則表明裸設(shè)備配置成功。hostnameTue May 28 11:13:35 CST 2013portaldb1五、配置hangchecktimer內(nèi)核模塊在portaldb1和portaldb2編輯“/etc/”文件,加入如下信息:/sbin/insmod hangchecktimer hangcheck_tick=30 hangcheck_margin=180六、安裝Oracle clusterware、安裝clusterwarecluserware和database software,以及相應(yīng)的升級(jí)包只需在一個(gè)節(jié)點(diǎn)上安裝,安裝包會(huì)自動(dòng)拷貝到另一個(gè)節(jié)點(diǎn)上,這里我們以portaldb1為主節(jié)點(diǎn)執(zhí)行安裝工作,首先安裝clusterware,以oracle用戶登錄到圖形界面。實(shí)施步驟如截圖所示:啟動(dòng)安裝界面 使用默認(rèn)值 NAME:ORA_CRS_HOME PATH: /u01/app/oracle/product/預(yù)檢查時(shí)會(huì)報(bào)幾個(gè)Warning和Not executed提示。目前只有portaldbportaldb1priv、portaldb1vip。portaldb2要比portaldb1快多久很難把握。(portaldb1和portaldb2上均要執(zhí)行) portaldb1:/home/oracle cd /u01/app/oracle/product/ portaldb1:/u01/app/oracle/product/ 找到如下內(nèi)容: LD_ASSUME_KERNEL= export LD_ASSUME_KERNEL fi 在fi后面新加一行“unset LD_ASSUME_KERNEL”,保存退出。 is not owned by rootWARNING: directory 39。 is not owned by rootWARNING: directory 39。 is 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 39。 is not owned by rootWARNING: directory 39。 is not owned by rootWARNING: directory 39。, privgrp 39。 is not owned by rootWARNING: directory 39。 is not owned by rootWARNING: directory 39。 is 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 39。 is not owned by rootWARNING: directory 39。 is not owned by rootWARNING: directory 39。它們都是從“/etc/hosts”文件中讀取的。啟動(dòng)安裝界面,點(diǎn)擊“Next”選擇“Enterprise Edition” Name: ORACLE_HOMEPath: /u01/app/oracle/product/“Specify Hardware Cluster Installation Mode”界面中,選中“portaldb1”和“portaldb2”兩個(gè)節(jié)點(diǎn) 執(zhí)行安裝產(chǎn)品預(yù)檢查時(shí)會(huì)報(bào)很多“Not executed”,這是由于10g的db和SuSE Linux 10兼容性不好引起的。1在portaldb1和portaldb2上的$ORACLE_HOME目錄下分別執(zhí)行 portaldb1:/u01/app/oracle/product/Running Oracle10 script...The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...Creating /etc/oratab file...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of script.Now productspecific root actions will be performed.portaldb1:/u01/app/oracle/product/portaldb1:/u01/app/oracle/product/portaldb2:/u01/app/oracle/product/portaldb2:/u01/app/oracle/product/Running Oracle10 script...The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...Creating /etc/oratab file...Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of script.Now productspecific root actions will be performed.portaldb2:/u01/app/oracle/product/1腳本執(zhí)行完后,點(diǎn)擊“OK”,完成安裝。 從“Deinstall Products”中可以看到已安裝的軟件在“Specify Home Details”界面中指定Name和Path顯示的節(jié)點(diǎn)中包含了“portaldb1”和“portaldb2”顯示的“wanring”標(biāo)識(shí)目前的SWAP SPACE未達(dá)到要求,其余均為“Succeeded”。升級(jí)包中的[Certified Versions]已經(jīng)包含了SuSE10,所以不用像安裝clusterware和db那樣要做額外操作。1在portaldb1和portaldb2上,$ORACLE_HOME目錄中分別執(zhí)行 portaldb1:/u01/app/oracle/product/Running Oracle 10g script...The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/Enter the full pathname of the local bin directory: [/usr/local/bin]: The file dbhome already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file oraenv already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file coraenv already exists in /usr/local/bin. Overwrite it? (y/n) [n]: Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of script.Now productspecific root actions will be performed.Portaldb1:/u01/app/oracle/product/portaldb2:/u01/app/oracle/product/Running Oracle 10g script...The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/Enter the full pathname of the local bin directory: [/usr/local/bin]: The file dbhome already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file oraenv already exists in /usr/local/bin. Overwrite it? (y/n) [n]: The file coraenv already exists in /usr/local/bin. Overwrite it? (y/n) [n]: Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of script.Now productspecific root actions will be performed.portaldb2:/u01/app/oracle/product/1執(zhí)行完上述兩個(gè)腳本后,點(diǎn)擊“OK”,完成升級(jí)工作。:。這么做的目的是使用opatch命令安裝補(bǔ)丁。點(diǎn)擊“Next”繼續(xù)。使用默認(rèn)值,點(diǎn)擊“Next”,繼