12、 创建SPFILE文件并关闭磁盘组重启
SQL>create spfile from pfile;
Filecreated.
SQL>shutdown immediate
ASMdiskgroups dismounted
ASMinstance shutdown
SQL>startup
ASMinstance started
TotalSystem Global Area 92274688 bytes
FixedSize 1217884 bytes
VariableSize 65890980 bytes
ASMCache 25165824 bytes
ORA-15110: no diskgroups mounted
【注】为什么我已经创建了磁盘组为什么还会提示ORA-15110: no diskgroups mounted呢?让我们往下看
13、 解决问题
SQL>show parameter asm;
NAME TYPE VALUE
----------------------------------------------- ------------------------------
asm_diskgroups string
asm_diskstring string
asm_power_limit integer 1
【注】注意到问题了吗?asm_diskgroups上的值是空的,好,让我们手动指定磁盘组的名字。
SQL> alter system set asm_diskgroups=shiyueasm scope=both;
System altered.
SQL> show parameter asm;
NAME TYPE VALUE
------------------------------------ -----------------------------------------
asm_diskgroups string SHIYUEASM
asm_diskstring string
asm_power_limit integer 1
14、 重启ASM
SQL>shutdown immediate
ORA-15100:invalid or missing diskgroup name
ASMinstance shutdown
SQL>startup
ASMinstance started
TotalSystem Global Area 92274688 bytes
FixedSize 1217884 bytes
VariableSize 65890980 bytes
ASMCache 25165824 bytes
ASMdiskgroups mounted
SQL>select name,state from v$asm_diskgroup;
NAME STATE
------------------------------ -----------
SHIYUEASM MOUNTED
OK,大功告成,手动创建ASM磁盘组就这么简单!
