Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle transactions and DDL statements.
peter.koch.larsen_at_gmail.com wrote:
> peter.koch.larsen_at_gmail.com skrev:
>
>> Hi all >> >> >> We've run into yet another problem regarding Oracle (10g -but I doubt >> this matters), namely that the execution of a DDL statement causes a >> transaction commit. Is there any way to make this not happen? It's a >> real showstopper as we use Oracle in a distributed transaction and this >> transaction contains several DDL statements. >> >> Kind regards >> Peter
TTBOMK it is impossible to perform DDL in Oracle with two commits being issued. DDL is wrapped in the following structure before it is executed.
BEGIN
COMMIT;
What you didn't explain, as I read what you posted, is why the commit is a problem. Why do you have uncommited transactional data, when changing the data model?
You need to appreciate that Oracle's concepts and architecture are quite different from that of the other products you mention and if you want to work in Oracle you need to work the way Oracle works.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Tue May 09 2006 - 11:37:40 CDT