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: to avoid errors while dropping not existing objects

Re: to avoid errors while dropping not existing objects

From: <ivl5_at_hotmail.com>
Date: 11 Oct 2006 17:47:17 -0700
Message-ID: <1160614037.126134.76710@h48g2000cwc.googlegroups.com>

fireball wrote:
> Uzytkownik <ivl5_at_hotmail.com> napisal w wiadomosci
> news:1160535576.460887.81460_at_i3g2000cwc.googlegroups.com...
>
> I 've found approach you proposed useful
> > execute immediate 'drop table "&1"."&2"';
>
> qustetions:
> - is that ok putting in your script 'cascade' statement?

Yeah, why not. It's 'cascade constraints' btw.

> - is that ok putting 'drop user' to drop all objects in the schema?
> assuming I want to create a new version of my dbase (from new version of
> script)?

No, you can't do this - the script name is not right :) Sure you can write a similar script to drop users, exception would be different of course (ORA-01918: user 'XXX' does not exist).  

> thx.

Na zdrawie,
Igor Received on Wed Oct 11 2006 - 19:47:17 CDT

Original text of this message

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