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

Home -> Community -> Usenet -> c.d.o.misc -> Re: DDL without commit

Re: DDL without commit

From: Brett Neumeier <random_at_interaccess.com>
Date: 1998/02/18
Message-ID: <6cf5qb$8tq$1@nntp3.interaccess.com>#1/1

Flemming Jans (jans_at_gmx.net) wrote:
: Does anyone know if there is a way to avoid a commit
: when doing DDL for example creating a table:

Not easily, no.

You may be able to fake it using something like DBMS_PIPE:

Session 1 inserts a record.
Session 1 writes a create table request to a pipe. Session 2, listening on the pipe, issues a create table statement.
Session 1 inserts another record.
Session 1 performs a rollback -- one would suspect that this would roll back both inserts, since the create table was performed by a different session (in, therefore, a different transaction). But I haven't tried this myself so I don't know if it would work.

Also, of course, the table would remain after the rollback.

-- 
-bn
random_at_interaccess.com	(PGP 2.6.2 public key available on request)
"There is no .signature -- only ZUUL!"
Received on Wed Feb 18 1998 - 00:00:00 CST

Original text of this message

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