Oracle ASMLib安装与配置

ASM Harry 4596℃ 0评论

什么是ORACLE ASMLib?

ASMLib 是一个适用于 Oracle 数据库 的自动存储管理(ASM)功能的支持库。ASM简化了数据库和管理,它不再需要 DBA 直接管理可能数千个的 Oracle 数据库文件,而只需管理分配给 Oracle 数据库的磁盘组。ASMLib 令使用 ASM 的 Oracle 数据库更加高效,并能够访问它正在使用的磁盘组。

ORACLE ASMLib的获取

从OTN网站上下载相应的软件包。
网址为http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html
点击适合您的平台的链接。ORACLE ASMlib有3个软件包组成。分别是:

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 <ENTER> 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

转载请注明:Harry的Oracle学习经历 » Oracle ASMLib安装与配置

喜欢 (4)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址