安裝客戶核心生產(chǎn)數(shù)據(jù)庫,磁盤組名不對,需要刪除,重新創(chuàng)建。
創(chuàng)新互聯(lián)建站-成都網(wǎng)站建設(shè)公司,專注成都網(wǎng)站建設(shè)、做網(wǎng)站、網(wǎng)站營銷推廣,域名注冊,網(wǎng)頁空間,網(wǎng)站托管、服務(wù)器托管有關(guān)企業(yè)網(wǎng)站制作方案、改版、費用等問題,請聯(lián)系創(chuàng)新互聯(lián)建站。
刪除磁盤組步驟如下:
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,現(xiàn)在需要改為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
###刪除后發(fā)現(xiàn)磁盤組確實不見了哈
$
$ asmcmd -p
ASMCMD [+] > lsdg
ASMCMD [+] > exit
$
$