2013/07/13

How To Change DiskGroup Name (DG name) 10g 11g ASM

11gr2  only binaty software is requĊŸred. You can even  clone from another server,
I  applied many times by only copying , (keeping $OH same)
2 phase operaiton ; first control ; then see no errors , then write to asm disk headers.
dg should be dismounted .


before :


GROUP_NUMBER NAME            STATE           TYPE                TOTAL_MB      FREE_MB OFFLINE_DISKS
------------ --------------- --------------- --------------- ------------ ------------ -------------
           0 MASTERPRPDG     DISMOUNTED                                 0            0             0
           1 BSCSPRPDG       MOUNTED         EXTERN              19968000      2710125             0
           2 LIKYAPRPDG      MOUNTED         EXTERN               7168000       448741             0
           4 THSPRPDG        MOUNTED         EXTERN               3788800       369063             0
 
   SQL> alter diskgroup  THSPRPDG dismount ;


 renamedg phase=both dgname=THSPRPDG newdgname=THSV2DG asm_diskstring='/dev/ORACLE/ASMDISKS/thsbgfx*'  clean=true verbose=true keep_voting_files=true check=true

 renamedg phase=both dgname=THSPRPDG newdgname=THSV2DG asm_diskstring='/dev/ORACLE/ASMDISKS/thsbgfx*'  clean=true verbose=true keep_voting_files=true check=false


after :

GROUP_NUMBER NAME            STATE           TYPE                TOTAL_MB      FREE_MB OFFLINE_DISKS
------------ --------------- --------------- --------------- ------------ ------------ -------------
           0 THSV2DG         DISMOUNTED                                 0            0             0
           0 MASTERPRPDG     DISMOUNTED                                 0            0             0
           1 BSCSPRPDG       MOUNTED         EXTERN              19968000      2710125             0
           2 LIKYAPRPDG      MOUNTED         EXTERN               7168000       448741             0



REFERENCE
http://docs.oracle.com/cd/E18283_01/server.112/e16102/asmdiskgrps.htm#CHDJAGHE
How To Rename A Diskgroup On ASM 11gR2? (Doc ID 948040.1)
How to rename diskgroup in 10g ASM (Pre-11gR2 release) (Doc ID 948605.1)
http://oracleabout.wordpress.com/category/kfndg-00305-file-not-found/