oracle手动挂载asm,菜鸟之asm环境的搭建已经手动创建asm实例

本文详细记录了在Linux环境下手动挂载Oracle ASM(Automatic Storage Management)的过程,包括安装RPM包、配置ASMLib、创建ASM磁盘、建立ASM实例、创建磁盘组并挂载,以及将数据库文件迁移到ASM磁盘组的步骤。
摘要由CSDN通过智能技术生成

查询系统信息

[root@localhost software]# uname -a

Linux localhost.oracle 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux

根据系统信息下载对应的RPM包

http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html

rpm -ivh oracleasm-support-2.1.7-1.el4.i386.rpm

rpm -ivh oracleasm-2.6.9-78.ELsmp-2.0.5-1.el4.i686.rpm

rpm -ivh oracleasmlib-2.0.4-1.el4.i386.rpm

ftp传到目标段

用rpm -ivh 包名 进行包的安装

配置asmlib

[root@localhost software]# /etc/init.d/oracleasm configure

Default user to own the driver interface [oracle]: oracle

Default group to own the driver interface [dba]: dba

Start Oracle ASM library driver on boot (y/n) [y]: y

Scan for Oracle ASM disks on boot (y/n) [y]: y

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver: [  OK  ]

Scanning the system for Oracle ASMLib disks: [  OK  ]

确定asmlib自动加载

[root@localhost software]# lsmod|grep oracleasm

oracleasm              49684  1

[root@localhost software]# dmesg|grep oracleasm

ASM: oracleasmfs mounted with options:

裸设备下创建

[root@localhost software]# fdisk /dev/sde,sdf,sdg

Command (m for help): t

Selected partition 1

Hex code (type L to list codes): 8e

Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): w

The partition table has been altered!

[root@localhost software]# /etc/init.d/oracleasm enable

Writing Oracle ASM library driver configuration: do

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值