Thursday, July 21, 2011

Oracle 11g Release 2: SRVCTL commands PART 5 [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
  • srvctl remove diskgroup -g diskgroup_name [-n node_list] [-f]
  • srvctl remove diskgroup -g DiskGroup1 -f
To start the diskgroup
  • srvctl start diskgroup -g diskgroup_name [-n node_list]
  • srvctl start diskgroup -g diskgroup1 -n linuxrac01, linuxrac02
To stop the diskgroup
  • srvctl stop diskgroup -g diskgroup_name [-n node_list] [-f]
  • srvctl stop diskgroup -g ASM_DG02
  • srvctl stop diskgroup -g diskgroup2 -n linuxrac01,linuxrac02 -f
To check the status of the diskgroup
  • srvctl status diskgroup -g diskgroup_name [-n node_list] [-a]
  • srvctl status diskgroup -g diskgroup2 -n linuxrac01,linuxrac02 -a
To enable the diskgroup
  • srvctl enable diskgroup -g diskgroup_name [-n node_list]
  • srvctl enable diskgroup -g diskgroup1 -n linuxrac01,linuxrac02
To disable the diskgroup
  • srvctl disable diskgroup -g diskgroup_name [-n node_list]
  • srvctl disable diskgroup -g diskgroup3 -n linuxrac01, linuxrac02

Keep watching.. Still other 3 to 4 parts of SRVCTL commands are yet to come. 

No comments:

Post a Comment

How can I remove a URL on my website from the Google Index?

To remove a specific URL (for example, the page http://www.example.com/page4.html) of your own website from Google’s index, there are two ...