Home » RDBMS Server » Server Administration » Removing entry of a datafile from controlfile
Removing entry of a datafile from controlfile [message #53090] Tue, 27 August 2002 23:35 Go to next message
venkatakrishnan
Messages: 2
Registered: August 2002
Junior Member
Hai everybody
I have a doubt.Please clear this.In my tablespace, I have two datafiles.One of the datafile is
corrupted
and i have no backup for that.I want to remove that data file from database.I make offline drop,still
it is existing while querying thro v$datafile.How to remove the entry from control file
dynamically(Assume that it is not possible to shutdown the db and recreate the control
file.Thanks.
Re: Removing entry of a datafile from controlfile [message #53100 is a reply to message #53090] Wed, 28 August 2002 05:36 Go to previous message
SKS
Messages: 26
Registered: February 2002
Junior Member
select name from v$datafile where file#=2
(It gives the db file name)
alter database create datafile xyz.db (db file name in previous step)

recover database

alter database open

drop the tablespace which includes the missing file, all the file in the tablespace will be dropped!
Previous Topic: ora error message
Next Topic: Shutdown Immediate - HELP...
Goto Forum:
  


Current Time: Thu Dec 26 10:57:09 CST 2024