Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE:
For other objects than tables take a look at
http://www.itsystems.lv/gints/dba_selects.htm#s22
(Create "Drop" statements for a user's tables, views, sequences, functions, procedures, packages)
Gints Plivna,
Softex Latvia,
Tel. 7204520
Fax 7204260
http://www.softex.lv
-----Original Message-----
Sent: otrdiena, 2002. gada 22. oktobrï 15:29
To: Multiple recipients of list ORACLE-L
If you just don't want to drop them individually by hand, you could use sql to write sql...
set head off
spool droptable.sql
select "drop table "||owner||"."||table_name||";"
from dba_tables
where owner = <whose stuff you are deleteing>;
make sure the sql looks right
@droptable.sql
write the same kind of sql against dba_objects to get all of that user's objects...
April Wells
Oracle DBA
> ATTACHMENT part 2 image/jpeg name=Sunflower Bkgrd.jpg
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Rachel Carmichael INET: wisernet100_at_yahoo.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Gints Plivna INET: G.Plivna_at_softex.lv Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Oct 22 2002 - 07:49:07 CDT
![]() |
![]() |