Oracle 12C is my database. I was moving the datafile from one directory to another directory by making the tablespace Offline.
ALTER TABLESPACE TABLESPACE_NAME OFFLINE NORMAL;
But accidently, while moving i haven’t changed the tablespace to offline for one datafile.
When i am trying to bring back the Tablespace Online, it giving the error as,
Error report:
SQL Error: ORA-01113: file 161 needs media recovery
ORA-01110: data file 161: 'K:TestTEST01.DBF'
01113. 00000 - "file %s needs media recovery"
*Cause: An attempt was made to online or open a database with a file that
is in need of media recovery.
*Action: First apply media recovery to the file.
Whether its possible to drop that datafile alone, and make the Tablespace Online.? Since i am lot of data in that tablespace, i cant able to drop that tablespace.
Note : I am having only one table in the entire tablespace.