ITPub博客

首页 > 数据库 > Oracle > Oracle 12c GI/RAC Step-by-Step安装指南(二)

Oracle 12c GI/RAC Step-by-Step安装指南(二)

Oracle 作者:dbasdk 时间:2014-09-22 15:37:57 0 删除 编辑
14. 安装asmlib 包。请确定安装的asmlib 包和os kernel版本是对应的。在这次测试中,由于使用了uek 内核,也就是说asmlib kernel drive 已经包含在内核里面了。 所以,只需要安装下面的两个包。
oracleasmlib-2.0.4-1.el6.x86_64.rpm
oracleasm-support-2.1.5-1.el6.x86_64.rpm
e.g: # rpm –ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm
# rpm –ivh oracleasm-support-2.1.5-1.el6.x86_64.rpm
15. 配置asmlib,并创建一些asm 磁盘。当然,您如果不想使用asmlib的话,也可以使用udev。不管怎么样,总是需要一种方式来标识您的磁盘。
--在所有节点配置asmlib
# /etc/init.d/oracleasm configure
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]: <<<< 在这里,指定asm磁盘的owner
Default group to own the driver interface [asmadmin]: <<< 在这里,指定磁盘的group.
Start Oracle ASM library driver on boot (y/n) [y]:
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks:
[ OK ]
注意:之所以指出来上面的asm 磁盘的owner 和 group, 是因为从11gR2 开始oracle引入了任务角色分离(job role separation)特性。这里面指定的值和之后安装GI时的步骤“Privileged Operation System Groups”中指定的值是对应的。所以,确认您的选择是正确的。
--创建磁盘组,在集群中的一个节点执行就可以了。在这个测试里,一共创建了4块磁盘。
# /etc/init.d/oracleasm createdisk /dev/sdc1 DISK1
……
/etc/init.d/oracleasm listdisks
DISK1
DISK2
DISK3
DISK4
--在集群的其他节点扫描并列出已经创建的磁盘(不需要再创建了)。
# /etc/init.d/oracleasm scandisks
# /etc/init.d/oracleasm listdisks

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29734436/viewspace-1277134/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-07-02

  • 博文量
    490
  • 访问量
    1388136