11 g rac 安裝 7,8步

tom_xieym發表於2011-08-05
七. 安裝oracleasm 程式包
7.1 安裝前準備
安裝oracleasm程式包之前,需要先安裝以下包(以root在兩個node執行)
kernel-2.6.18-128.el5.x86_64.rpm            
kernel-doc-2.6.18-128.el5.noarch.rpm
kernel-debug-2.6.18-128.el5.x86_64.rpm      
kernel-headers-2.6.18-128.el5.x86_64.rpm
kernel-debug-devel-2.6.18-128.el5.x86_64.rpm
kernel-xen-2.6.18-128.el5.x86_64.rpm
kernel-devel-2.6.18-128.el5.x86_64.rpm
kernel-xen-devel-2.6.18-128.el5.x86_64.rpm
注:這些包在OS安裝光碟中可以找到,安裝時請參照第一小節執行.
7.2 安裝ASM RPM
從OTN下載ASM庫,並安裝 ASM RPM. (以root在兩個node執行)
# rpm -Uvh oracleasm-2.6.18-128.el5-2.0.5-1.el5.i686.rpm
Preparing...             
########################################### [100%]
   1:oracleasmlib
########################################### [100%]
在這個階段,您應該已經安裝了以下ASM程式包.
[root@wmrac01 oracleasm]# rpm -qa|grep oracleasm
oracleasm-2.6.18-128.el5-2.0.5-1.el5.i686.rpm(用於預設核心)
oracleasm-2.6.18-128.el5debug-2.0.5-1.el5.i686.rpm
oracleasm-2.6.18-128.el5-debuginfo-2.0.5-1.el5.i686.rpm
oracleasm-2.6.18-128.el5PAE-2.0.5-1.el5.i686.rpm(用於PAE核心)
oracleasm-2.6.18-128.el5xen-2.0.5-1.el5.i686.rpm(用於xen核心)
oracleasmlib-2.0.4-1.el5.i386.rpm(使用者空間庫)
oracleasm-support-2.1.3-1.el5.i386.rpm(驅動程式支援檔案)
 
八. 配置oracleasm
Oracle ASM 與 Oracle 資料庫緊密整合在一起,並與Oracle 的資料管理工具套件配合工作.它可以簡化資料庫儲存管理 ,並提供原始磁碟I/O的效能.
8.1 配置 ASMLib。
以root在兩個node執行
[root@wmrac01 grid]# /usr/sbin/oracleasm configure -i
Configuring 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 have.  The current values
will be shown in brackets ('[]').  Hitting without typing an
answer will keep that current value.  Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@wmrac01 grid]# /usr/sbin/oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=grid
ORACLEASM_GID=asmadmin
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
[root@wmrac01 grid]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@wmrac01 grid]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
8.2 ?建 ASM 磁?。
以 root 用?身份在任何一???上?建 ASM 磁?。
[root@wmrac01 mapper]# oracleasm createdisk DATAV1 /dev/mapper/data_v01
Writing disk header: done
Instantiating disk: done
[root@wmrac01 mapper]# oracleasm createdisk DATAV2 /dev/mapper/data_v02
Writing disk header: done
Instantiating disk: done
[root@wmrac01 mapper]# oracleasm createdisk INDXV1 /dev/mapper/indx_v01
Writing disk header: done
Instantiating disk: done
[root@wmrac01 mapper]# oracleasm createdisk INDXV2 /dev/mapper/indx_v02
Writing disk header: done
Instantiating disk: done
[root@wmrac01 mapper]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@wmrac01 mapper]# oracleasm listdisks
DATAV1
DATAV2
INDXV1
INDXV2
在node2上執行查詢,若出現如下內容則OK.
[root@wmrac02 mapper]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "INDXV1"
Instantiating disk "INDXV2"
Instantiating disk "DATAV1"
Instantiating disk "DATAV2"
[root@wmrac02 mapper]# oracleasm listdisks
DATAV1
DATAV2
INDXV1
INDXV2

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25850100/viewspace-704182/,如需轉載,請註明出處,否則將追究法律責任。

相關文章