ORA-15018: diskgroup cannot be created
来源:互联网 发布:电视用什么软件看电影 编辑:程序博客网 时间:2024/05/21 09:50
点击打开链接
1、 检查磁盘是否存在
2、 确认下磁盘是否存在
3、 进入ASM的实例,检查参数asm_diskstring
4、 检查当前的路径(目前已经创建了一个磁盘组,并且已经挂载)
5、 换一个创建的路径
当路径修改之后,能够正确的创建ASM磁盘组了。在参数文件pfile中直接修改,asm实例还是可以启动的。
创建ASM磁盘组的时候出错,具体报错如下:
- SQL> create diskgroup kel external redundancy disk 'ORCL:KEL1','ORCL:KEL2';
- create diskgroup kel external redundancy disk 'ORCL:KEL1','ORCL:KEL2'
- *
- ERROR at line 1:
- ORA-15018: diskgroup cannot be created
- ORA-15031: disk specification 'ORCL:KEL2' matches no disks
- ORA-15014: location 'ORCL:KEL2' is not in the discovery set
- ORA-15031: disk specification 'ORCL:KEL1' matches no disks
- ORA-15014: location 'ORCL:KEL1' is not in the discovery set
1、 检查磁盘是否存在
发现磁盘是存在的,并且权限也是正确的。
- [oracle@kel disks]$ ls -l KEL*
- brw-rw---- 1 oracle oinstall 8, 49 Jun 10 00:14 KEL1
- brw-rw---- 1 oracle oinstall 8, 65 Jun 10 00:14 KEL2
2、 确认下磁盘是否存在
- [oracle@kel disks]$ oracleasm listdisks;
- DATA
- KEL1
- KEL2
- OCR_VOTE
3、 进入ASM的实例,检查参数asm_diskstring
发现路径是存在的并且是正确的
- SQL> show parameter asm_diskstring
- NAME TYPE VALUE
- ------------------------------------ ---------- ------------------------------
- asm_diskstring string /dev/oracleasm/disks/*
4、 检查当前的路径(目前已经创建了一个磁盘组,并且已经挂载)
- SQL> select path from v$asm_disk;
- PATH
- --------------------------------------------------------------------------------
- /dev/oracleasm/disks/KEL2
- /dev/oracleasm/disks/KEL1
- /dev/oracleasm/disks/DATA
- /dev/oracleasm/disks/OCR_VOTE
5、 换一个创建的路径
- SQL> create diskgroup kel external redundancy disk '/dev/oracleasm/disks/KEL1','/dev/oracleasm/disks/KEL2';
- Diskgroup created.
当路径修改之后,能够正确的创建ASM磁盘组了。
关于asm_diskstring参数:
定义哪些磁盘可以被ASM使用。ASM实例启动之后,就根据这个参数扫描发现ASM磁盘,配置了这个参数以后,还必须要确认oracle用户对这些磁盘有操作权限。
a、 如果使用的是裸设备,用逗号分隔每个设备名
asm_diskstring='/dev/raw/raw3','/dev/raw/raw7'
b、 也可以使用通配符
asm_diskstring='/dev/raw/raw*'
c、 使用ASMLib时,需要使用“ORCL:磁盘名”格式
asm_diskstring='ORCL:KEL1'
d、 也可以使用通配符
asm_diskstring='ORCL:KEL*'
但是在上面的实例中,我们使用的是ASMLib的方式,但是asm_diskstring依然使用的全路径,从而在创建的磁盘组的时候也需要使用全路径。
在修改asm_diskstring的时候,利用alter命令来进行修改不成功,但是在pfile中修改,然后再次进行启动,是可以进行修改的,WHY?
- SQL> alter system set asm_diskstring='/dev/oracleasm/disks/*' scope=both;
- alter system set asm_diskstring='/dev/oracleasm/disks/*' scope=both
- *
- ERROR at line 1:
- ORA-02097: parameter cannot be modified because specified value is invalid
- ORA-15014: location 'ORCL:DATA' is not in the discovery set
- SQL> show parameter asm_diskstring
- NAME TYPE VALUE
- ------------------------------------ ---------- ------------------------------
- asm_diskstring string ORCL:KEL*, ORCL:DATA, ORCL:OCR
0 0
- ORA-15018: diskgroup cannot be created
- ORA-15018: diskgroup cannot be created
- Workspace in use or cannot be created........
- Ora-26678 Streams capture process must be created first
- SharePoint2010- My Site Exception Your personal site cannot be created
- workspace at in use or cannot be created
- eclipse出现workspace in use or cannot be created
- eclipse:Workspace in use or cannot be created
- drop diskgroup报ora-15001
- Oracle11g mount diskgroup:ora-15032
- ORA-15041: diskgroup space exhausted
- ORA-06554: package DBMS_STANDARD must be created before using PL/SQL
- eclipse启运时显示:Workspace in use or cannot be created, choose a different one.
- The problem of “Can’t exit design mode because control ‘ShockwaveFlash1’ cannot be created.”
- Workspace in use or cannot be created, choose a different one.--错误解决办法
- Aptana Studio 3启动时提示 Workspace Cannot Be Created 解决办法
- Workspace in use or cannot be created, choose a different one.
- Workspace in useor cannot be created, choose a different one.--错误解决办法
- Android 自定义VideoView
- mysql 技术内幕-笔记
- 整数的原码 反码与补码,大尾小尾存储
- MATLAB GUI图像处理->打开和保存图片
- 对udp组播流(MPTS)进行简单的收录
- ORA-15018: diskgroup cannot be created
- Vim命令
- 优先级队列
- (broadcast,intent,intentfilter消息广播)(interface接口,回调函数)(eventBus)区别,适用场合
- 说一说本人对linux系统学习的方法和经验
- C++异常
- Java基础-接口
- 【Java学习笔记】17.异常处理
- 谷歌打不开,怎么办?谷歌chrome应用商店发布的谷歌白领助手,免费打开google和谷歌学术