Rename oracle database on Oracle Database Appliance
Instead of going thru the process of using nid to rename the database and then moving the datafiles, logfiles and tempfiles to create a snapshot database and then drop the database you snapshotted?
I started going down the path of using nid. I was at the part where I was moving datafiles around and it failed at the OS level.
Issuing the:
mv /u02/app/oracle/oradata/datastore/.ACFS/snaps/old-name/OLD-NAME/datafile /u02/app/oracle/oradata/datastore/.ACFS/snaps/new-name/NEW-NAME/datafile
failed with
mv: cannot move xxxx-xxxx_sddf.dbf to a subdirectory of itself ....
I figured this being acfs that I might need to use acfsutil to accomplish this but the process didn't seem right. I am assuming the snapshot db would be simpler given there is enough space.