Drop datafile from tablespace [message #194790] |
Mon, 25 September 2006 05:58  |
Brayan
Messages: 315 Registered: June 2002
|
Senior Member |
|
|
Hi,
I've added datafile by mistake to a TABLESPACE using
alter database datafile '/production/oradata/data/data_med02.dbf' offline drop ;
Now, when I query in dba_data_files, still the datafile is present.
select * from dba_data_files where tablespace_name = 'TABLESPACE_BIG'
Can I drop the datafile permanently from the TABLESPACE.
I mean, need to remove the entry from the dba_data_files.
Regards,
Brayan.
|
|
|
Re: Drop datafile from tablespace [message #194986 is a reply to message #194790] |
Tue, 26 September 2006 07:42   |
ramakris
Messages: 21 Registered: July 2006 Location: Delhi
|
Junior Member |
|
|
That is rather what we can't do. Once the datafile is added it can't be removed from the list. But yes you can resize it to the least possible value, this way atleast you can restore the space allocated to that datafile.
Thanks!
|
|
|
|
|
|
|