ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 11 g rac 安裝 7,8步

11 g rac 安裝 7,8步

原创 Linux操作系统 作者:tom_xieym 时间:2011-08-05 10:27:08 0 删除 编辑
七. 安裝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/,如需转载,请注明出处,否则将追究法律责任。

下一篇: 11 g rac 安裝 9步
请登录后发表评论 登录
全部评论

注册时间:2011-05-20

  • 博文量
    77
  • 访问量
    95633