Initializing the Oracle ASMLib driver: [FAILED]
来源:互联网 发布:历史气象数据查询 编辑:程序博客网 时间:2024/05/17 06:55
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
即可解决。
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
即可解决。
0 0
- ORACLE Initializing the Oracle ASMLib driver: [FAILED]
- Initializing the Oracle ASMLib driver: [FAILED]
- Initializing the Oracle ASMLib driver: [FAILED]
- oracle ASM错误Initializing the Oracle ASMLib driver:[FAILED]
- oracle ASM错误Initializing the Oracle ASMLib driver:[FAILED]
- oracle ASM错误Initializing the Oracle ASMLib driver:[FAILED]
- 关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
- 关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
- 解决ASM问题“Initializing the Oracle ASMLib driver: failed”
- 关于Initializing the Oracle ASMLib driver:[FAILED] 的问题
- 关于“Initializing the Oracle ASMLib driver: [FAILED]”的解决办法
- The web application [/jcs] registered the JDBC driver[oracle.jdbc.driver. OracleDriver] but failed
- registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the
- registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the
- Tomcat报registered the JDBC driver [Oracle.jdbc.driver.OracleDriver] but failed to unregister it
- Initializing a Callout Driver
- A web application registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it
- 循环依赖 导致 registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregist
- PHP从零单排(三)PHP中的session
- 面试经典(4)--链表逆序
- NYOJ-20-吝啬的国度
- Android开发之号码归属地查询
- VS2012 托管目标代码需要/clr 错误
- Initializing the Oracle ASMLib driver: [FAILED]
- ORACLE11g关于用户密码过期的问题解决
- 【Cocos2d-x】 HttpClient 网络通信(Http)的简单应用
- Java socket HTTP(POST/GET)
- JDBC连接MySQL数据库及示例
- 表单设计的三层模型
- 编辑dw汉字在浏览器显示乱码
- linux redhat 下命令行全部乱码解决
- 看两种截然不同的设计理念:分布式文件系统支持大和小文件的思考