oracle RAC如何正确地删除ASM磁盘组

前端之家收集整理的这篇文章主要介绍了oracle RAC如何正确地删除ASM磁盘组前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1、登录到命令行

切换到grid用户

[[email protected] ~]$ sqlplus / as sysasm

sql*Plus: Release 12.2.0.1.0 Production on Wed May 30 05:40:48 2018

Copyright (c) 1982,2016,Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production

注意:这里是sysasm登录才能有权限修改

2.检查确认要删除的磁盘组是否在用
select * from dba_data_files;
select * from dba_temp_files;
select * from v$logfile;

3.先在各节点上dismount磁盘组
alter diskgroup REDO01 dismount;
alter diskgroup REDO02 dismount;
alter diskgroup REDODG1 dismount;

4.ASM中删除磁盘组
drop diskgroup REDO01 force including contents;
drop diskgroup REDO02 force including contents;
drop diskgroup REDODG1 force including contents;

5.crs删除磁盘组
crsctl stat res -t  ---查看磁盘组
srvctl remove diskgroup -g REDO01 -f
srvctl remove diskgroup -g REDO02 -f
srvctl remove diskgroup -g REDODG1 -f

6.更新crs信息查看crs依赖的磁盘组:crsctl status res ora.veraa.db -fSTART_DEPENDENCIES=hard(ora.testDG1.dg,ora.testDG2.dg,ora.REDODG1.dg,ora.testDG3.dg,ora.REDO01.dg,ora.REDO02.dg,ora.REDODG01.dg) weak(type:ora.listener.type,global:type:ora.scan_listener.type,uniform:ora.ons,global:ora.gns) pullup(ora.testDG1.dg,ora.REDODG01.dg)START_TIMEOUT=600STATE_CHANGE_TEMPLATE=STOP_DEPENDENCIES=hard(intermediate:ora.asm,shutdown:ora.testDG1.dg,shutdown:ora.testDG2.dg,shutdown:ora.REDODG1.dg,shutdown:ora.testDG3.dg,shutdown:ora.REDO01.dg,shutdown:ora.REDO02.dg,shutdown:ora.REDODG01.dg)修改正确的磁盘组:srvctl modify database -d veraa -a "testDG1,testDG2,testDG3,REDODG01"

猜你在找的Oracle相关文章