My Oracle Support Banner

How to rename/move a datafile in the same ASM diskgroup (Doc ID 564993.1)

Last updated on SEPTEMBER 30, 2021

Applies to:

Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 10.1.0.2 to 12.2.0.1 [Release 10.1 to 12.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Generic (Platform Independent)

Goal

ASM files can be renamed like any other files in a standard filesystem. For ASM, rename is peformed through some type of statements (ADD ALIAS, RENAME ALIAS, ADD DIRECTORY) to manipulate filenames, alias, and directories.

Renaming datafiles is sometimes needed when database file names still contains old database name after a database on ASM is renamed (for example with nid). Then, it is required to change ASM datafile names accordingly with new database name.  RMAN backup copy doesn't work in this case as file still remains in the same diskgroup.

Solution

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
Goal
Solution
 ASM Instance:
 Database instance:

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