Initializing the Oracle ASMLib driver: [FAILED]

简介: Centos 5.8, kernel为:uname -r2.6.18-308.el5安装ASM三个包:rpm -ivh oracleasm-support-2.
Centos 5.8, kernel为:
uname -r
2.6.18-308.el5

安装ASM三个包:
rpm -ivh oracleasm-support-2.1.1-1.el4.i386.rpm
rpm -ivh oracleasm-2.6.18-128.el5-2.0.5-1.el5.i686.rpm (如果你的系统是64位的,应该用oracleasm-2.6.18-308.el5-2.0.5-1.el5.x86_64.rpm,本人在这方面吃了好多亏)
rpm -ivh oracleasmlib-2.0.4-1.el5.i386.rpm

这三个包可以在http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html下载到。

安装完成之后,进行配置
[root@digdeep oracle]# /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 <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 [dba]:
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]
[root@digdeep oracle]#
发生了错误。



看一下日志:
[root@digdeep oracle]# cat /var/log/oracleasm
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": failed
Unable to load module "oracleasm"

Loading module "oracleasm": failed
Unable to load module "oracleasm"
... ...
加载oracleasm这个 module 失败

[root@digdeep oracle]# ls -l /lib/modules/
total 16
drwxr-xr-x 3 root root 4096 Dec 29 19:58 2.6.18-128.el5
drwxr-xr-x 6 root root 4096 Dec 29 17:16 2.6.18-308.24.1.el5
drwxr-xr-x 6 root root 4096 Dec 28 04:29 2.6.18-308.el5

[root@digdeep modules]# find -name oracleasm.ko
./2.6.18-128.el5/kernel/drivers/addon/oracleasm/oracleasm.ko

表明:module oracleasm.ko 确实存在!
但是系统不能调用到:
[root@digdeep oracleasm]#  /sbin/insmod oracleasm.ko
[root@digdeep oracleasm]# echo $?
0

[root@digdeep oracle]#  /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 <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 [dba]:
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  ]


错误搞定。

/etc/init.d/oracleasm configure时的错误搞定了,但是在reboot Centos时,又发生了同样的错误:


网上很多说是与kenel的版本不对,于是又重新下载正确的版本的rpm包:
oracleasm-support-2.1.7-1.el5.i386.rpm
oracleasm-2.6.18-308.24.1.el5-2.0.5-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm

重新安装:
rpm -Uvh oracleasm-support-2.1.7-1.el5.i386.rpm
rpm -Uvh oracleasm-2.6.18-308.el5-2.0.5-1.el5.x86_64.rpm
rpm -Uvh oracleasmlib-2.0.4-1.el5.i386.rpm

然后再 reboot 或者 init 6,发现错误消失:


看来版本正确很重要。

第三个常见的错误是:
ORA-29701: unable to connect to Cluster Manager

解决方法是:
以root身份在$ORACLE_HOME/bin下执行:
localconfig add

如果还不行,则在$ORACLE_HOME/bin执行
localconfig delete
localconfig add

即可解决。
目录
相关文章
|
Oracle 关系型数据库
Navicat 连接Oracle ORA-28547: connection to server failed, probable Oracle Net admin error
Navicat 连接Oracle ORA-28547: connection to server failed, probable Oracle Net admin error
712 0
|
SQL Oracle Unix
Oracle sqlplus failed on AIX platform(/usr/lib/lib
Oracle sqlplus failed on AIX platform(/usr/lib/lib
158 1
|
存储 NoSQL 关系型数据库
实时计算 Flink版操作报错之抽取Oracle11g时,报错: "Retrieve schema history failed, the schema records for engine ... has been removed",怎么处理
在使用实时计算Flink版过程中,可能会遇到各种错误,了解这些错误的原因及解决方法对于高效排错至关重要。针对具体问题,查看Flink的日志是关键,它们通常会提供更详细的错误信息和堆栈跟踪,有助于定位问题。此外,Flink社区文档和官方论坛也是寻求帮助的好去处。以下是一些常见的操作报错及其可能的原因与解决策略。
|
SQL Oracle 关系型数据库
关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
关于无法加载asm dg错误 [oracle@mars ~]$ crs_start -all CRS-2501: Resource 'ora.
1145 0
|
3月前
|
Oracle 关系型数据库 Linux
【赵渝强老师】Oracle数据库配置助手:DBCA
Oracle数据库配置助手(DBCA)是用于创建和配置Oracle数据库的工具,支持图形界面和静默执行模式。本文介绍了使用DBCA在Linux环境下创建数据库的完整步骤,包括选择数据库操作类型、配置存储与网络选项、设置管理密码等,并提供了界面截图与视频讲解,帮助用户快速掌握数据库创建流程。
382 93

热门文章

最新文章

推荐镜像

更多