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: The ROLLBACK don't cancel instructions

Re: The ROLLBACK don't cancel instructions

From: Michel Cadot <micadot_at_netcourrier.com>
Date: Thu, 6 Sep 2001 10:59:04 +0200
Message-ID: <9n7dsp$5mj$1@s1.read.news.oleane.net>

"Ben-oui" <aslamette_at_free.fr> a écrit dans le message news: sLGl7.3680$_M3.4388988_at_nnrp5.proxad.net...
> I have a script :
>
> set autocommit off;
> drop table pcomessaisuite;
> commit;
> set transaction read write;
> create table pcomessaisuite (toto varchar(5));
> alter table pcomessaisuite add toto3 varchar(6);
> rollback;
> describe pcomessaisuite;
>
> Normally the table ESSAISUITE wouldn't create and an error would be create
> on last line. But Oracle create the table in spite of the ROLLBACK.
>
> Can you help me ?
>
> Thank.
>

All DDL statements (drop, create, alter...) are auto-committed. That is there a commit before and after each of these statements so you can't rollback them.

--
Have a nice day
Michel
Received on Thu Sep 06 2001 - 03:59:04 CDT

Original text of this message

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