什么是ORACLE ASMLib?
ASMLib 是一个适用于 Oracle 数据库 的自动存储管理(ASM)功能的支持库。ASM简化了数据库和管理,它不再需要 DBA 直接管理可能数千个的 Oracle 数据库文件,而只需管理分配给 Oracle 数据库的磁盘组。ASMLib 令使用 ASM 的 Oracle 数据库更加高效,并能够访问它正在使用的磁盘组。
ORACLE ASMLib的获取
oracleasm-support-version.arch.rpm
oracleasm-kernel-version.arch.rpm
oracleasmlib-version.arch.rpm
oracleasmlib 程序包提供实际的 ASM 库。oracleasm-support 程序包提供用来使 ASM 驱动程序启动并运行的公用程序。oracleasm-kernel程序包为 ASM 库提供内核驱动程序, 这个与操作系统当前使用的内核版本密切相关。以我所使用的RHEL5.11 x86_64为例,通过uname -r得知系统内核版本为2.6.18-398.el5,所下载的程序包为:
oracleasm-2.6.18-398.el5-2.0.5-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
oracleasm-support-2.1.8-1.el5.x86_64.rpm
安装ASMLib
用root用户安装下载的包,按以下顺序安装:
rpm -Uvh oracleasm-support-2.1.8-1.el5.x86_64.rpm
rpm -Uvh oracleasm-2.6.18-398.el5-2.0.5-1.el5.x86_64.rpm
rpm -Uvh oracleasmlib-2.0.4-1.el5.x86_64.rpm
配置ASMLib
[root@localhost ~]# 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 []: oracle
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
创建ASM磁盘
[root@localhost ~]# oracleasm createdisk DISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@localhost ~]# oracleasm createdisk DISK2 /dev/sdb2
Writing disk header: done
Instantiating disk: done
[root@localhost ~]# oracleasm createdisk DISK3 /dev/sdb3
Writing disk header: done
Instantiating disk: done
[root@localhost ~]# oracleasm createdisk DISK4 /dev/sdb5
Writing disk header: done
Instantiating disk: done
[root@localhost ~]# oracleasm createdisk DISK5 /dev/sdb6
Writing disk header: done
Instantiating disk: done
[root@localhost ~]# oracleasm listdisks
DISK1
DISK2
DISK3
DISK4
DISK5
喜欢 (4)or分享 (0)