• Pattern Matching Metacharacters For asm_diskstring


     

    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表空间和数据文件的关系,否则拒绝申请

    道森Oracle,国内最早、最大的网络语音培训机构,我们提供专业、优质的Oracle技术培训和服务! 我们的官方网站:http://www.daosenoracle.com 官方淘宝店:http://daosenpx.taobao.com/
  • 相关阅读:
    viewport
    Flex 布局教程
    鼠标放上去盒子向上滑动
    鼠标放图片上,原图上划上去一个透明图片
    类加载过程
    JVM入门
    redis简介和安装
    JMH和Disruport
    线程池
    JUC
  • 原文地址:https://www.cnblogs.com/tianlesoftware/p/3609710.html
Copyright © 2020-2023  润新知