My Oracle Support Banner

Rename database and then move datafile online in 12.2 (Doc ID 2258871.1)

Last updated on MARCH 06, 2023

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 12.2]
Oracle Database Exadata 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
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.


This note illustrates how to rename a database in 12.2 and then move the datafiles to another location online (given the DB name is changed, we expect the datafile are moved to another directory whose directory name is the new DB name). This is for education purpose only, in case you want to do this in production system, do verify the steps in testing env first.

For more details of renaming database via nid, please refer to <note 863800.1> - How to Change the DBID, DBNAME Using NID Utility, for more details of moving datafile online, please refer to <note 1566797.1> - 12C New Feature : Move a Datafile Online.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.