搞定Linux下Oracle ASM的安装

   Linux下安装Oracle RAC时,要弄asm,这东东很麻烦。要跟内核跑,Oracle Linux好点,光盘中自带就有了。不像其它要跑到Oracle官网去下载asmlib 。而且这个东东,步骤不少,版本不同方法还有差异。为了查询方便,我在这集中整理了各种版本系统的搞法。
      Oracle Linux 5以下的安装方法.
      Oracle 6.4及以上版本的安装方法
       yum直接安装asm的方法.

首先附上ASMLIB 官网下载地址

一。手工搞定安装
1. 检查是否已安装及系统内核
  --查看内核
  [root@xclrac1 /]# uname -rm
  2.6.39-400.17.1.el6uek.x86_64 x86_6
  --查看asm包
  [root@xclrac1 /]# rpm -qa|grep asm
  libatasmart-0.17-4.el6_2.x86_64
  [root@xclrac1 /]#
  [root@xclrac1 db2]# cat /proc/version
  Linux version 2.6.39-400.17.1.el6uek.x86_64 (mockbuild@ca-build44.us.oracle.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Feb 22 18:16:18 PST 2013
   [root@xclrac1 ~]# cat /etc/issue
  Oracle Linux Server release 6.4
  Kernel \r on an \m
2. 去官网找到相应系统对应的asm下载安装.
 以前Oracle Linux 5 如下:
  --安装ASM, support->asm-> lib放最后 
   rpm -Uvh oracleasm-support-2.1.7-1.el5.x86_64.rpm
   rpm -Uvh oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
   rpm -Uvh oracleasmlib-2.0.4-1.el5.x86_64.rpm
  现在Oracle 6.4就不需这么麻烦:
   2.1 去系统光盘找到asmlib support的安装包(rpm -Uvh oracleasm-support-2.1.8-1.el6.x86_64.rpm)装上
   2.2 去Oracle官网,下载Oracle Linux 6 对应的asmlib.rpm包并装上
   2.3 重新查看
 [root@xclrac1 db2]# rpm -qa|grep asm
 oracleasmlib-2.0.4-1.el6.x86_64
 libatasmart-0.17-4.el6_2.x86_64
 3. 安装成功后,通过 oracleasm命令检查并管理asmlib
 [root@xclrac1 /]# oracleasm status
 Checking if ASM is loaded: yes
 Checking if /dev/oracleasm is mounted: yes
 [root@xclrac1 ~]# oracleasm update-driver

二。yum快速搞定安装
 http://www.oracle.com/technetwork/server-storage/linux/uln-095759.html
Getting Oracle ASMLib via the Unbreakable Linux Network
Installing ASMLib via ULN
  Now that the system is registered with ULN, it can install the software. Log in as root and run:
                                           
 # yum install oracleasm-support oracleasmlib oracleasm-`uname -r`
On Oracle Linux 5 and older, run the following command instead:
# up2date -i oracleasm-support oracleasmlib oracleasm-`uname -r`
This will install the support tools, the library, and the kernel driver for the currently running kernel.
 
Note: If you are running the Unbreakable kernel, the ASMLib kernel driver is included in that kernel package, and the oracleasm-`uname -r` package should not be specified.

安装成功后。就可以.配置和管理asm 磁盘了。
 这个可以参考另一篇文章<< Oracle VM创建共享磁盘并挂ASM>>. 虽然是Oracle VM的共享磁盘做法。但其中的asm部份,和挂实际共享存储没区别。

MAIL:xcl_168@aliyun.com
Blog:http://blog.csdn.net/xcl168


  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值