Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: How to remove a datafile from the tablespace?

Re: How to remove a datafile from the tablespace?

From: andrew_webby at hotmail <spam_at_no.thanks.com>
Date: Wed, 18 Jul 2001 11:24:14 +0100
Message-ID: <995451827.23745.0.nnrp-08.c30bdde2@news.demon.co.uk>

As long as it is a property TEMPORARY tablespace, you can drop it and recreate it at instance startup.

startup restrict; (to keep people out)
drop tablespace xxx;
create tablespace xxxx .....;
alter system disable restricted session;

"Ganesh Kamath" <ganesh.kamath_at_in.bosch.com> wrote in message news:9j36l9$bdk$1_at_proxy.fe.internet.bosch.com...
>
>
> But the tablespace that I am talking about is TEMPORARY_DATA (created by
> default).
>
> Is it ok to drop this tablespace? I am not sure...I a new to Oracle.
>
>
>
> Thanks.
> Ganesh Kamath
>
>
>
>
> "Chris Weiss" <weisschr_at_tcimet.net> wrote in message
> news:9j34pq$2orc$1_at_msunews.cl.msu.edu...
> You have no choice. To remove the datafile, you muss drop the
 tablespace.
> The simplest thing is write a script that recreates the table in a new
> tablespace with a create table As statement. Drop the old tablespace,
> recreate the old tablespace, move the data back.
> You can also export all the objects in the tablespace, drop it, and import
> the objects back.
> Good Luck!
> Chris
> >
> >
> > "Ganesh Kamath" <ganesh.kamath_at_in.bosch.com> wrote in message
> > news:9j33dk$pih$1_at_proxy.fe.internet.bosch.com...
> > Hello,
> >
> > By mistake one datafile has been added to a tablespace, which already
 had
> one datafile. Now I want to delete the newly added datafile. How do I do
> this? I don't want to drop the tablespace.
> >
> >Thanks,
> > Ganesh Kamath
>
>
>
Received on Wed Jul 18 2001 - 05:24:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US