oracle asm 删除diskgroup,如何彻底删除ASM磁盘组

环境:

oracle:11.2.0.4

下面演示如何彻底删除磁盘组BAK_REDO,BAK_DATA

1.进入grid用户下执行删除操作(在其中一个asm实例操作)

alter diskgroup BAK_REDO dismount;

drop diskgroup BAK_REDO force including contents;

alter diskgroup BAK_DATA dismount;

drop diskgroup BAK_DATA force including contents;

2.删除srvctl相应的资源(grid账号)

srvctl disable diskgroup -g BAK_REDO

srvctl remove diskgroup -g BAK_REDO -f

srvctl disable diskgroup -g BAK_DATA

srvctl remove diskgroup -g BAK_DATA -f

3.启动数据库(grid账号)

[grid@host01 ~]$ srvctl start database -d slnngk

PRCR-1079 : Failed to start resource ora.slnngk.db

CRS-2640: Required resource 'ora.BAK_DATA.dg' is missing.

发现OCR注册表里面还是有BAK_DATA的信息,无法启动

4.修改数据库信息,通过-a选择项指定目前在用的磁盘组,在用的磁盘组可以通过进入asm实例查询得到

(root账号)

./srvctl modify database -d slnngk -a "DATA,OCR,REDO"

5.再次启动数据库

srvctl start database -d slnngk

-- The End --

你可能感兴趣的:(oracle,asm,删除diskgroup)