Subscribe to Posts by Email

Subscriber Count

    701

Disclaimer

All information is offered in good faith and in the hope that it may be of use for educational purpose and for Database community purpose, but is not guaranteed to be correct, up to date or suitable for any particular purpose. db.geeksinsight.com accepts no liability in respect of this information or its use. This site is independent of and does not represent Oracle Corporation in any way. Oracle does not officially sponsor, approve, or endorse this site or its content and if notify any such I am happy to remove. Product and company names mentioned in this website may be the trademarks of their respective owners and published here for informational purpose only. This is my personal blog. The views expressed on these pages are mine and learnt from other blogs and bloggers and to enhance and support the DBA community and this web blog does not represent the thoughts, intentions, plans or strategies of my current employer nor the Oracle and its affiliates or any other companies. And this website does not offer or take profit for providing these content and this is purely non-profit and for educational purpose only. If you see any issues with Content and copy write issues, I am happy to remove if you notify me. Contact Geek DBA Team, via geeksinsights@gmail.com

Pages

SRVCTL Command : For Diskgroup

SRVCTL command for Diskgroup:

To add the diskgroup

There is no command like srvctl add for Oracle ASM disk groups. Disk groups are automatically added to the Oracle Restart configuration when they are first mounted.

But if in case you have removed a disk group from the Oracle Restart configuration and want to add it back you can connect to the Oracle ASM instance with SQL*Plus and use an ALTER DISKGROUP ... MOUNT command.

To remove the diskgroup

    Command: srvctl remove diskgroup -g diskgroup_name [-n node_list] [-f]
    Example: srvctl remove diskgroup -g DiskGroup1 -f

To start the diskgroup

    Command: srvctl start diskgroup -g diskgroup_name [-n node_list]
    Example: srvctl start diskgroup -g diskgroup1 -n lnxrac1, lnxrac2

To stop the diskgroup

    Command: srvctl stop diskgroup -g diskgroup_name [-n node_list] [-f]
    Example: srvctl stop diskgroup -g ASM_DG02
    Example: srvctl stop diskgroup -g diskgroup2 -n lnxrac1,lnxrac2 -f

To check the status of the diskgroup

    Command: srvctl status diskgroup -g diskgroup_name [-n node_list] [-a]
    Example: srvctl status diskgroup -g diskgroup2 -n lnxrac1,lnxrac2 -a

To enable the diskgroup

    Command: srvctl enable diskgroup -g diskgroup_name [-n node_list]
    Example: srvctl enable diskgroup -g diskgroup1 -n lnxrac1,lnxrac2

To disable the diskgroup

    Command: srvctl disable diskgroup -g diskgroup_name [-n node_list]
    Example: srvctl disable diskgroup -g diskgroup3 -n lnxrac1, lnxrac2