你好,游客 登录 注册 搜索
背景:
阅读新闻

手动创建Oracle 10g ASM磁盘组

[日期:2011-10-09] 来源:Linux社区  作者:a3z2008 [字体:大 中 小]

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磁盘组就这么简单!

linux
相关资讯       Oracle教程 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款