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: drop user

RE: drop user

From: Stephen Lee <Stephen.Lee_at_DTAG.Com>
Date: Mon, 04 Aug 2003 16:54:23 -0800
Message-ID: <F001.005C8E07.20030804165423@fatcity.com>

Much faster:

SQL> select file_name from dba_data_files where tablespace_name = 'SYSTEM';

SQL> !rm file_name

POOF!! User gone. Very fast.

> -----Original Message-----
>
> Personnaly, I like to write a short script to generate the
> SQL to drop all
> the users tables with the 'cascade constraints' option.
>
> I then do a 'drop user cascade;'
>
> If there are a lot of tables/indexes, the recursive SQL can
> take awhile,
> assuming a fair number of extents per object.
>
> Then again, if you're using LMTs, then the recursive SQL
> shouldn't be too
> bad.
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephen Lee
  INET: Stephen.Lee_at_DTAG.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).
Received on Mon Aug 04 2003 - 19:54:23 CDT

Original text of this message

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