ORACLE ASM没有提供LINUX2.6.9-5.EL驱动.详情见 http://www.oracle.com/technology/software/tech/linux/asmlib/rhel4.html,
安装ASM之前,需升级LINUX内核. 安装以下RPM包,升级到LINUX2.6.9-11.EL,ORACLE提供了相应有ASM驱动.
kernel-2.6.9-11.EL.i686.rpm
kernel-devel-2.6.9-11.EL.i686.rpm
kernel-hugemem-2.6.9-11.EL.i686.rpm
kernel-hugemem-devel-2.6.9-11.EL.i686.rpm
kernel-smp-2.6.9-11.EL.i686.rpm
kernel-smp-devel-2.6.9-11.EL.i686.rpm
安装完成后重启LINUX 运行-> uname -r  出现2.6.9-11.ELsmp,OK.
下载ORACLE ASM 库以及驱动包:
oracleasm-support-2.1.3-1.el4.i386.rpm
oracleasm-2.6.9-5.0.5.ELsmp-2.0.0-1.i686.rpm
oracleasm-2.6.9-5.0.5.ELhugemem-2.0.0-1.i686.rpm
oracleasm-2.6.9-5.0.5.EL-2.0.0-1.i686.rpm
oracleasmlib-2.0.4-1.el4.i386.rpm
并以次安装即可.
执行 /etc/init.d/oracleasm configure 配置ASM参数:
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 []: oracle        这里输入ORACLE用户名
Default group to own the driver interface []: dba          这里输入DBA用户组.
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
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]
看起来比较顺利.运行/etc/init.d/oracleasm createdisk创建ASM可管理的磁盘:
[root@localhost 11]# /etc/init.d/oracleasm createdisk asm01 /dev/sdb5
Marking disk "asm01" as an ASM disk:                       [  OK  ]
[root@localhost 11]# /etc/init.d/oracleasm createdisk asm01 /dev/sdc1
Marking disk "asm01" as an ASM disk:                       [FAILED]
[root@localhost 11]# /etc/init.d/oracleasm createdisk asm02 /dev/sdc1
Marking disk "asm02" as an ASM disk:                       [  OK  ]
[root@localhost 11]# /etc/init.d/oracleasm listdisks
ASM01
ASM02
[root@localhost 11]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:               [  OK  ]
/ etc/init .d/oracleasm   'enable' 和 'disable' 选项来启用或禁用自动启动。
这里用'enable'.
好了.su - oracle切换到ORACLE用户.执行DBCA.
       
弹出对话框:
 按提示执行即可.以下按默认下一步即可.如果在创建磁盘组的时候,没有磁盘列表,这里更改一下搜索路径这
ORCL:*即可.
到此ASM实例创建完成.下一步你可以建立ASM管理的数据库了.