Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: dropping tables in a tablespace
On Tue, 21 Sep 1999 15:29:50 -0400, Sudarshan Sampath <ssampath_at_scr.siemens.com>
wrote:
>Hi folks,
>I am trying to do a fresh import of data into a tablespace. Right now I
>want to
>get rid of all the tables (250 of them) in this tablespace as it I want
>to import
>the tables afresh.
>
>How do I drop all tables in a tablespace? I know how to drop a
>tablespace...
>but that means I would have to create new tablespaces with the right
>parameters
>from the beginning. I want to be able to clear out all the data (tables,
>indexes
>views....etc.) in a tablespace all at once. Is there a command to do
>that?
Are they all owned by 1 database user? If yes then...
drop user <username> cascade;
should do the trick. Then all you need to do is recreate the user and import.
hope this helps.
chris.
>
>Thanks,
>
>-Sudarshan
--
Christopher Beck
Oracle Corporation
clbeck_at_us.oracle.com
Reston, VA.
![]() |
![]() |