Changing Database Name With Standby Database In Place Using NID Utility (Doc ID 790406.1)

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.2.0.0 [Release 9.2 to 11.2]
Oracle Database - Enterprise Edition - Version 11.2.0.3 to 12.1.0.2 [Release 11.2 to 12.1]
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
***Checked for relevance on 18-Sep-2013***

 

 

NID utility can be used to change the name of the database.

The option setname=y needs to be used to change the db name alone not touching the DBID.
Once the name of the database is changed the standby controlfile needs to be re-created to reflect the new name of the primary database.
After the standby controlfile is re-created the media recovery can be enabled.

The goal of the document is to summarize the steps to be performed to change the name of the database in a Data Guard environment.


Steps to be performed are

1. Ensure that the primary database and the standby database are in sync.
2. Shutdown the primary database cleanly ( shutdown immediate) , mount the database and use the NID utility to change the name of the database.

$nid target=sys/<password>@tnsalias dbname=<new db name> setname=Y

3. Change the parameter db_name parameter in the init.ora parameter file to reflect the new database name
4. Re-create the password file.
5. Change the tnsnames.ora and the listerner.ora parameters accordingly.
6. Open the database.
7. The logs will be shipped normally to the standby database.
8. Shutdown the standby database and change the db_name parameter to reflect the same in the primary db name.
7. Re-create the standby controlfile from the primary database.
8. Re-create the password file.
9. Modify the tnsnames.ora and the listener.ora parameter to reflect the changes.
10. Mount the database and start the media recovery.

 

 

1. Test the above steps in a test environment before implementing in a production environment.The above steps were not regression tested.

2. Once we change the database name in primary as per this document, it leads to the situation where as in standby datafiles will have old db_name.
To change the db_name in standby in all datafile, database should be started in read and write.

Follow below steps,

1) We need to perform switchover
OR
2) we need to perform snapshot standby conversion

3. Finally use the below query to confirm the DBID.

select FHDBI,FHDBN,count(*) from x$kcvfh group by FHDBI,FHDBN;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值