Change the DBID and DBNAME for Oracle Databases

This article can guide you to alter the DBID for Oracle databases whenever we are in need of it. Here we will use DBNEWID utility to change the same. Below are the steps to follow.

Steps to Change the DBID for Oracle Database

Before starting the process of changing the DBID please ensure you have a full database backup.

Step 1 –

SHUTDOWN IMMEDIATE
STARTUP MOUNT

 

DBID Change Step 1

Step 2 –

$ nid TARGET=SYS/

DBID Change Step 2

DBID Change Step 2 Add

Step 3 –

STARTUP MOUNT

Step 4 –

ALTER DATABASE OPEN RESETLOGS;

DBID Change Step 3 4

Steps to Change DBNAME along with DBID

In case you need to change the database name also along with DBID then the process is the same as above, the only difference is the command, stated below

nid TARGET=SYS/<Password> DBNAME=<NEW DATABASE NAME>

 

Es1CIYQQQgghjDQLhRBCCCGEMNIsFEIIIYQQwkizUAghhBBCCCPNQiGEEEIIIYw0C4UQQgghhDDSLBRCCCGEEMJIs1AIIYQQQggjzUIhhBBCCCGMNAuFEEIIIYQw0iwUQgghhBDCSLNQCCGEEEIII81CIYQQQgghjDQLhRBCCCGEMNIsFEIIIYQQwkizUAghhBBCCCPNQiGEEEIIIYw0C4UQQgghhDDSLBRCCCGEEMJIs1AIIYQQQggjzUIhhBBCCCGMNAuFEEIIIYQw0iwUQgghhBDCSLNQCCGEEEIII81CIYQQQgghjDQLhRBCCCGEMNIsFEIIIYQQwkizUAghhBBCCCPNQiGEEEIIIYw0C4UQQgghhDDSLBRCCCGEEMJIs1AIIYQQQggjzUIhhBBCCCGMNAuFEEIIIYQw0iwUQgghhBDCSLNQCCGEEEIII81CIYQQQgghFBP+fygWN2GKogaGAAAAAElFTkSuQmCC

AAAAAElFTkSuQmCC

n9uCUoSWW4GBAAAAABJRU5ErkJggg==

4PUKigz0TjEncAAAAASUVORK5CYII=

Conclusion

The above article has provided you with enough information about how to change the DBID along with DBNAME for a oracle database.

FAQ

How to Find DBID in Oracle ?

SQL Query to find DBID –

SELECT DBID FROM V$DATABASE;

Another way to get the DBID is through connecting the RMAN utility 

 

RMAN TARGET /
connected to target database: TESTDB (DBID=1756755399)

Leave a Comment

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