源码安装oracle,从源码安装oracleasm | 旺旺知识库

在安装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

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 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 ]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值