现在的位置: 首页 > 数据库 > Oracle > 正文
从源码安装oracleasm
2013年04月18日 Oracle ⁄ 共 1491字 从源码安装oracleasm已关闭评论 ⁄ 被围观 4,647 views+

在安装Oracle 11g RAC时,往往因为系统太新或者太旧而找不到合适的oracleasm驱动,我测试在RHEL6.x或CentOS6.x上是无法安装oracleasm的(编译安装也不能解决),导致oracleasm配置失败,提示:

Loading module "oracleasm": failed
Unable to load module "oracleasm"

下面讲解如何从源码安装oracleasm:

源码下载地址:https://oss.oracle.com/projects/oracleasm/files/sources/

#cd /usr/local/src/
#wget https://oss.oracle.com/projects/oracleasm/dist/files/sources/oracleasm-2.0.5.tar.gz
#tar zxf oracleasm-2.0.5.tar.gz
#cd oracleasm-2.0.5/
#./configure
#make
#make install
#depmod
#modprobe oracleasm
#lsmod |grep orac -i
#modinfo oracleasm

查看安装情况:

[root@ractest1 ~]# modinfo oracleasm
filename: /lib/modules/2.6.18-348.4.1.el5/kernel/drivers/addon/oracleasm/oracleasm/oracleasm.ko
description: Kernel driver backing the Generic Linux ASM Library.
author: Joel Becker <joel.becker@oracle.com>
version: 2.0.5
license: GPL
srcversion: 6D09F6DEC4890E127C660DD
depends:
vermagic: 2.6.18-348.3.1.el5 SMP mod_unload gcc-4.1

oracle初始化配置成功!

# service oracleasm configureConfiguring 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 ]

抱歉!评论已关闭.

×