Pattern Matching Metacharacters For asm_diskstring

weixin_34377065發表於2011-04-25

 

This document will list the possible meta characters for asm_diskstring parameter

 

Solution

* and [] are the two valid meta characters for asm_diskstring parameter.

SQL> alter system set asm_diskstring='/dev/raw/raw*' scope=both;
System altered.

SQL> select path from v$asm_disk;
PATH
--------------------------------------------------------------------------------
/dev/raw/raw1
/dev/raw/raw2
/dev/raw/raw3
/dev/raw/raw4
/dev/raw/raw5
/dev/raw/raw11
/dev/raw/raw12
/dev/raw/raw7
/dev/raw/raw8
/dev/raw/raw9
/dev/raw/raw10
/dev/raw/raw6

12 rows selected.


SQL> alter system set asm_diskstring='/dev/raw/raw[1-5]' scope=both;
System altered.

SQL> select path from v$asm_disk order by 1;
PATH
--------------------------------------------------------------------------------
/dev/raw/raw1
/dev/raw/raw2
/dev/raw/raw3
/dev/raw/raw4
/dev/raw/raw5


Characters like $ [0-9*] ^ _ etc would either give error, or will be ignored.


SQL> alter system set asm_diskstring='/dev/raw/raw$' scope=both;

alter system set asm_diskstring='/dev/raw/raw$' scope=both
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-15031: disk specification '/dev/raw/raw$' matches no disks
ORA-15056: additional error message

 

 

 

 

From Oracle

-------------------------------------------------------------------------------------------------------

Blog http://blog.csdn.net/tianlesoftware

Email: dvd.dba@gmail.com

DBA1 群:62697716(滿);   DBA2 群:62697977(滿)   DBA3 群:62697850(滿)  

DBA 超級群:63306533(滿);  DBA4 群: 83829929  DBA5群: 142216823   

聊天 群:40132017   聊天2群:69087192

--加群需要在備註說明Oracle表空間和資料檔案的關係,否則拒絕申請

相關文章