oracle 10g 引入 asm,oracle用户通过磁盘组来直接管理disk,绕过底层的操作系统。
1.去oracle官方网站下载kernel对应的oracleasm 包
rpm -ivh oracleasm-support-2.1.7-1.el5.i386.rpm oracleasm-2.6.18-194.el5-2.0.5-1.el5.i686.rpm oracleasmlib-2.0.4-1.el5.i386.rpm
2.配置
# /usr/sbin/oracleasm configure -i
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 []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@julia01 public]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
3. asm磁盘
Oracle ASM disks are the storage devices that are provisioned to Oracle ASM disk groups. Examples of Oracle ASM disks include:
A disk or partition from a storage array
An entire disk or the partitions of a disk
Logical volumes
Network-attached files (NFS)
4.Oracle recommends that you create a single whole-disk partition on each disk
fdisk /dev/sdf
创建一个分区就可以了
5.oracleasm createdisk DISK-name /dev/sdf1
[root@julia01 disks]# /usr/sbin/oracleasm createdisk DISK1 /dev/sdf1
Writing disk header: done
Instantiating disk: done
oracleasm listdisks 查看磁盘是否已经标记为oracle asm 磁盘。
6.创建磁盘组
在asm的sqlplus下创建比较容易
>create diskgroup DG1 normal/external/high redundancy disk 'ORCL:DISK3','ORCL:DISK4' ;
7.向磁盘组中添加磁盘
> alter diskgroup sysdb add disk 'ORCL:DISK6';
8.drop掉磁盘组中的磁盘
>alter diskgroup dg1 drop disk DISK4;
Oracle ASM 实施教程:从安装到磁盘管理
本文详细介绍了如何使用 Oracle ASM(Automatic Storage Management)进行数据库存储管理,包括从安装所需软件包开始,配置ASM库驱动程序,创建ASM磁盘,建立磁盘组,以及添加和移除磁盘的过程。
1715

被折叠的 条评论
为什么被折叠?



