Linux oracle 10g 直接使用LUN创建ASM DISKGROUP

Linux oracle 10g 直接使用LUN创建ASM DISKGROUP

版本信息:
OS: Red Hat Enterprise Linux as 5.6
Oracle:10.2.0.4.0

在/etc/rc.local文件加入如下内容
### asm disk ##############
chown oracle:dba /dev/sddlmaa
chown oracle:dba /dev/sddlmab
chown oracle:dba /dev/sddlmac
chown oracle:dba /dev/sddlmad

chmod  660 /dev/sddlmaa
chmod  660 /dev/sddlmab
chmod  660 /dev/sddlmac
chmod  660 /dev/sddlmad
### asm disk end###########

设定asm_diskstring参数,ASM disk discovery string
SQL> alter system set asm_diskstring='/dev/sddlma*';

查询可以用于创建ASMGROUP的 ASM disk
SQL> select path from v$asm_disk;
PATH
-------------------------------------------------------
/dev/sddlmad
/dev/sddlmaa
/dev/sddlmab
/dev/sddlmac

创建ASM diskgroup
SQL> create diskgroup oradata external redundancy disk '/dev/sddlmaa';
SQL> alter diskgroup oradata add disk '/dev/sddlmab';
SQL> create diskgroup logdata external redundancy disk  '/dev/sddlmac','/dev/sddlmab';

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7419833/viewspace-713731/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7419833/viewspace-713731/

你可能感兴趣的:(数据库)