创建ASM数据库
创建ASM之前的准备工作
1.创建ASM实例
2.确认有无密码文件,若无通过下的命令创建
orapwd file=orapw+ASM password=sysasm
在创建ASM数据时会要求提供ASM实例sys密码
3.确认有无监听,若无通过netca创建,若无监听sys密码验证会失败
4.创建diskgroup,在创建diskgroup redundancy以指定为external,normal,high.
external:使用外部冗余
normal:two-way mirroring,需要两个failure groups
high:three-war mirroring,需要三个failure groups
如:
SQL>create diskgroup diskgroup2 normal redundancy
2 failgroup failgroup3 disk 'ORCL:DISK3' name disk3
3 failgroup failgroup4 disk 'ORCL:DISK4' name disk4;
Diskgroup created.
2和3会在手动创建ASM实例时出现
使用dbca创建数据库
在select the storage mechanism you would like to use for the database画面选择ASM即可,其他的根据提供就可以很轻松的创建一个ASM数据库了
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/7419833/viewspace-571427/ ,如需转载,请注明出处,否则将追究法律责任。