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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: dropping a user's objects

Re: dropping a user's objects

From: <Jared.Still_at_radisys.com>
Date: Thu, 08 Aug 2002 16:33:25 -0800
Message-ID: <F001.004B01A3.20020808163325@fatcity.com>


Jack,

That works well for small schemas. It tends to generate a lot of recursive SQL when the schema has more than a couple hundred objects.

This number varies with how intensely RI was implemented.

More RI, *lots* more recursive SQL.

When the schema has many objects, it's much faster to drop a table at a time with cascade constraints,

Think dropping a table with 100k extents. :)

Jared

Jack Silvey <jack_silvey_at_YAHOO.COM>
Sent by: root_at_fatcity.com
08/08/2002 03:28 PM
Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        Re: dropping a user's objects


Bill,

Pull out the big cannon and go boom:

export the CREATE USER to create_user script

write a script containing:

 DROP USER uname CASCADE;
 @CREATE_USER run this new script.

have beer.

Now of course, this will not be as fast as a parallel DROP TABLE user.tab CASCADE CONSTRAINTS, but hey, more time to have beer.

hth,

Jack


Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jack Silvey
  INET: jack_silvey_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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: 
  INET: Jared.Still_at_radisys.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Thu Aug 08 2002 - 19:33:25 CDT

Original text of this message

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