|Oracle® Database SQL Reference
10g Release 1 (10.1)
Part Number B10759-01
Note:This SQL statement is valid only if you are using Automatic Storage Management and you have started an Automatic Storage Management instance. You must issue this statement from within the Automatic Storage Management instance, not from a normal database instance. For information on starting an Automatic Storage Management instance, please refer to Oracle Database Administrator's Guide.
DISKGROUP statement lets you drop an Automatic Storage Management disk group along with all the files in the disk group. Automatic Storage Management first ensures that no files in the disk group are open. It then drops the disk group and all its member disks and clears the disk header.
You must have the
SYSDBA system privilege and you must have an Automatic Storage Management instance started, from which you issue this statement. The disk group to be dropped must be mounted.
Specify the name of the disk group you want to drop.
CONTENTS to confirm that Automatic Storage Management should drop all the files in the disk group. You must specify this clause if the disk group contains any files.
CONTENTS to ensure that Automatic Storage Management drops the disk group only when the disk group is empty. This is the default. If the disk group is not empty, and error will be returned.
The following statement drops the Automatic Storage Management disk group
dgroup_01, which was created in "Creating a Diskgroup: Example", and all of the files in the disk group:
DROP DISKGROUP dgroup_01 INCLUDING CONTENTS;