OCP-043 drop diskgroup

在ASM实例中,由于不再需要非空磁盘组DGROUP1,想要删除它。执行`DROP DISKGROUP dgroup1 EXCLUDING CONTENTS;`此命令的结果是错误,因为磁盘组不为空。
摘要由CSDN通过智能技术生成

66. In your Automatic Storage Management (ASM) instance, one of the nonempty disk groups,
DGROUP1, is no longer required and you want this disk group to be removed. You execute the following
command to achieve this objective:
DROP DISKGROUP dgroup1 EXCLUDING CONTENTS;
What would be the result of this command?
A.This command would result in an error because the disk group is not empty.
B.The command would drop the disk group, ignoring the EXCLUDING CONTENTS option.
C.The command would result in the disk group being marked as INVALID because it cannot be dropped.
D.The command would result in the contents being moved to the parent disk group and dropping of the
disk group.
E.The command would distribute the contents of the specified disk group among all other disk groups and
then drop the specified disk group.
Answer: A





DROP DISKGROUP

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.

Purpose

The DROP 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.

See Also:

Prerequisites

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.

Syntax

drop_diskgroup::=

Description of drop_diskgroup.gif follows
Description of the illustration drop_diskgroup.gif

Semantics

diskgroup_name

Specify the name of the disk group you want to drop.

INCLUDING CONTENTS

Specify INCLUDING 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.

EXCLUDING CONTENTS

Specify EXCLUDING 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, an error will be returned.


Example

Dropping a Diskgroup: Example 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;


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值