How to Rename Diskgroup in Oracle ASM

Hi,

Sometimes you may need changing Oracle ASM Diskgroup name.

 

If you don’t know what is the Oracle ASM and ( Automatic Storage Management ) Oracle ASM Diskgroups , then read the following article.

https://ittutorial.org/oracle-automatic-storage-management-2-asm/

 

The renamedg tool enables you to change the name of any Diskgroup in the Oracle ASM Instance as follows.

 

 

[oracle@MSDstandbyexa dbs]$ renamedg dgname=DATA newdgname=DATAC1 asm_diskstring='/dev/oracleasm/disks/DATA*' verbose=true

Parsing parameters..

Parameters in effect:

Old DG name : DATA 
New DG name : DATAC1 
Phases :
Phase 1
Phase 2
Discovery str : /dev/oracleasm/disks/DATA* 
Clean : TRUE
Raw only : TRUE
renamedg operation: dgname=DATA newdgname=DATAC1 asm_diskstring=/dev/oracleasm/disks/DATA* verbose=true
Executing phase 1
Discovering the group
Performing discovery with string:/dev/oracleasm/disks/DATA*
Identified disk UFS:/dev/oracleasm/disks/DATAC1 with disk number:0 and timestamp (33035787 -727384064)
Identified disk UFS:/dev/oracleasm/disks/DATAC2 with disk number:1 and timestamp (33035787 -759201792)
Checking for hearbeat...
Re-discovering the group
Performing discovery with string:/dev/oracleasm/disks/DATA*
Identified disk UFS:/dev/oracleasm/disks/DATAC1 with disk number:0 and timestamp (33035787 -727384064)
Identified disk UFS:/dev/oracleasm/disks/DATAC2 with disk number:1 and timestamp (33035787 -759201792)
Checking if the diskgroup is mounted or used by CSS 
Checking disk number:0
Checking disk number:1
Generating configuration file..
Completed phase 1
Executing phase 2
Looking for /dev/oracleasm/disks/DATAC1
Modifying the header
Looking for /dev/oracleasm/disks/DATAC2
Modifying the header
Completed phase 2
Terminating kgfd context 0x7f77a4a6c0a0

 

But When you perform this task in the Production database, then you need to change all database files name in the Controlfile before this action, otherwise you cannot access any database files and objects.

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

https://ittutorial.org/oracle-database-19c-tutorials-for-beginners/

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply

Your email address will not be published. Required fields are marked *