码迷,mamicode.com
首页 > 其他好文 > 详细

11g 删除磁盘组步骤

时间:2018-03-06 11:29:44      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:alter diskgroup   dismount force   

安装客户核心生产数据库,磁盘组名不对,需要删除,重新创建。

删除磁盘组步骤如下:

su - grid
sqlplus / as sysasm

SQL> select group_number, name from v$asm_diskgroup;

GROUP_NUMBER NAME
------------ --------------------------------------------------
           1 DATADG

SQL> col path for a40
SQL> col name for a40
SQL> set lines 120
SQL> select path, name from v$asm_disk where group_number=1;

PATH                                     NAME
---------------------------------------- ----------------------------------------
/dev/rhdiskpower0                        DATADG_0000
/dev/rhdiskpower1                        DATADG_0001
/dev/rhdiskpower2                        DATADG_0002
/dev/rhdiskpower3                        DATADG_0003
/dev/rhdiskpower4                        DATADG_0004

SQL> 

SQL>  alter diskgroup datadg dismount force;

Diskgroup altered.

SQL> drop diskgroup datadg force including contents;

Diskgroup dropped.

##原有磁盘组名叫DATADG,现在需要改为DATA
# su - grid
$ asmcmd -p
ASMCMD [+] > lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512   4096  1048576   1024000  1023928                0         1023928              0             N  DATADG/   
ASMCMD [+] > exit

###删除后发现磁盘组确实不见了哈
$ 
$ asmcmd -p
ASMCMD [+] > lsdg
ASMCMD [+] > exit
$ 
$ 

11g 删除磁盘组步骤

标签:alter diskgroup   dismount force   

原文地址:http://blog.51cto.com/roidba/2083343

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!