***********************************************声明**********************************************
原创作品,出自 “深蓝的blog” 博客,欢迎转载,转载时请务必注明出处,否则追究版权法律责任。
表述有错误之处,请您留言或邮件(hyldba@163.com)指明,不胜感激。
本文转载必须保留此处:http://blog.youkuaiyun.com/huangyanlong/article/details/39225813
深蓝的blog:http://blog.youkuaiyun.com/huangyanlong
***************************************************************************************************
问题现象
计划在CentOS5.6(64bit)操作系统上搭建Oracle11g集群,前期使用Red Hat5(32bit)的asm包,后下载src包,安装未果。重新下载asm包,经过正确安装asm包后完成asm的创建。问题不大,却由于版本思路定位不正确,造成过多无用操作。
不太正确的操作流程
1、安装asm包,创建asm磁盘时报错;
2、下载src包,尝试安装,未果;
3、到官网下载asm包,版本不正确;
4、重新到官网下载asm包,再次安装;
5、完成创建asm。
1、安装asm包,创建asm磁盘时报错
[root@hyl1 ~]# service oracleasm configure --配置asm报错了
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASMlibrary
driver. The followingquestions 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 [grid]: grid
Default group to own the driver interface [asmadmin]:
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: [FAILED]
2、下载src包,尝试安装,未果
[root@hyl1 /]# uname -a --查询系统内核版本
Linux hyl1 2.6.18-238.el5xen #1 SMP Thu Jan 13 16:41:45 EST 2011x86_64 x86_64 x86_64 GNU/Linux
到oracle官网下载安装包:参考链接https://oss.oracle.com/ol5/SRPMS-updates/
上传asm安装包
安装src.rpm文件出现问题,初期如下使用yum安装依赖包
光盘配置yum
[root@hyl1 CentOS]# yum install -yrpm-build*
[root@hyl1 CentOS]# yum -y installrpm-build
网上查看资料,安装src.rpm带着更多问题,无法继续
想办法,想直接到官网找到rpm包如下方式
3、到官网下载asm包,版本不正确
到网站重新查找安装包:
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
到Linux5 AS版本选项,点击:
下载rpm安装包
找到lib和support包
上传asm包,查看上传结果
[root@hyl1 asm]# ls -lh
total 236K
-rw-r--r-- 1 root root 126K Jul 29 13:06oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.i686.rpm
-rw-r--r-- 1 root root 14K Jul 29 13:06 oracleasmlib-2.0.4-1.el5.i386.rpm
-rw-r--r-- 1 root root 84K Jul 29 13:06 oracleasm-support-2.1.8-1.el5.i386.rpm