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

Home -> Community -> Usenet -> c.d.o.server -> Re: dropping all objects for an user

Re: dropping all objects for an user

From: Vrajesh Patel <vrajesh.patel_at_mci.com>
Date: Thu, 22 Apr 1999 15:59:46 GMT
Message-ID: <371F4767.E82316DF@mci.com>


Create dynamic SQL and execute.

e.g

SQL>spool x
SQL>select 'drop table ' || tname || ';' from tab;
SQL>spool off

SQL>@x

same way, can write for view etc.

sometimes, it won't drop because of integrity constraint..Pl. remove all contraint first.

Thanks,

Vrajesh.

dfp1 wrote:

> Hi,
>
> Is there a SQL statement that will let me drop all the objects in an users
> schema, but preserve the user (with privileges etc. intact)?
>
> Thanks,
> Dinesh
Received on Thu Apr 22 1999 - 10:59:46 CDT

Original text of this message

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