472,122 Members | 1,454 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,122 software developers and data experts.

under-transaction ?

CM
Hello,

Is it possible to create a transaction in a transaction?

BEGIN T1

INSERT into t1 values(2);

BEGIN T2

INSERT into t1 values(3);

ROLLBACK T2

COMMIT T1

I will have liked that the "ROLLBACK" of the T2 transaction
does not disturb the "INSERT" made in the principal transaction.
If that exists, which are commands SQL for Oracle 9i? Thank you very much.
(And excuse me for my imperfect English)

Christophe
Jul 19 '05 #1
6 1774

"CM" <le****************@ulg.ac.be> wrote in message
news:c1********@aix4.segi.ulg.ac.be...
Hello,

Is it possible to create a transaction in a transaction?

BEGIN T1

INSERT into t1 values(2);

BEGIN T2

INSERT into t1 values(3);

ROLLBACK T2

COMMIT T1

I will have liked that the "ROLLBACK" of the T2 transaction
does not disturb the "INSERT" made in the principal transaction.
If that exists, which are commands SQL for Oracle 9i? Thank you very much. (And excuse me for my imperfect English)

Christophe

Look up savepoint in the docs.
Jim
Jul 19 '05 #2
CM wrote:
Hello,

Is it possible to create a transaction in a transaction?

BEGIN T1

INSERT into t1 values(2);

BEGIN T2

INSERT into t1 values(3);

ROLLBACK T2

COMMIT T1

I will have liked that the "ROLLBACK" of the T2 transaction
does not disturb the "INSERT" made in the principal transaction.
If that exists, which are commands SQL for Oracle 9i? Thank you very much.
(And excuse me for my imperfect English)

Christophe

This (oracle) is NOT sql server.

And yes - using autonomous transactions it would be possible.
And... if you want this for logging purposes, look at the monitor
sub command of the alter table SQL command.
The SQL Reference Guide can be found online at http://docs.oracle.com

And last but not least - this should have been posted in c.d.o.database.
This ng does not exist
--

Regards,
Frank van Bortel

Jul 19 '05 #3
CM
> This ng does not exist

Thank you to have answered me so quickly. Why this NG does not exist? ;-)
Christophe
Jul 19 '05 #4
CM
> Look up savepoint in the docs.
Jim


thank you very much. It's perfect !
While hoping to be able to return the similar one to you
Christophe
Jul 19 '05 #5
CM wrote:
This ng does not exist

Thank you to have answered me so quickly. Why this NG does not exist? ;-)
Christophe


In 1997 the attendees votes to replace this comp.database.oracle (c.d.o)
newsgroup with a set of newsgroups - c.d.o.server, c.d.o.tools,
c.d.o.marketplace and c.d.o.misc As a result, some ISPs do not carry
c.d.o but do carry the lower ones, and you run the risk of not getting
the visibility you want.

When we remember, we try to discourage using this one.

/Hans
Jul 19 '05 #6
CM
> In 1997 the attendees votes to replace this comp.database.oracle (c.d.o)
newsgroup with a set of newsgroups - c.d.o.server, c.d.o.tools,
c.d.o.marketplace and c.d.o.misc As a result, some ISPs do not carry
c.d.o but do carry the lower ones, and you run the risk of not getting
the visibility you want.

When we remember, we try to discourage using this one.

/Hans


I understand. Thank you for this information.
Better regards.
Christophe
Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Adrian B. | last post: by
1 post views Thread by VNG | last post: by
5 posts views Thread by Andrew Poulos | last post: by
3 posts views Thread by Philip Wagenaar | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.