My Oracle Support Banner

After "Alter Database Move Datafile" Command, Old Data File Still Remains in Windows Environment (Doc ID 2763939.1)

Last updated on APRIL 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database - Standard Edition - Version and later
Information in this document applies to any platform.


After moving datafile using "alter database move datafile" command like below, data file at old path should be automatically deleted, but it still remains.  Note that "KEEP" option is not used.

alter database move datafile '<PATH>' to '<PATH>'



Alert log shows that the data file move operation has completed, and if you query v$datafile, the datafile path is updated to the new directory.



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.