Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Partial rollback

Status
Not open for further replies.

bprasath

Programmer
Joined
Nov 29, 2000
Messages
7
Location
IN
Hi,
Is there any way to do a partial rollback in a oracle database.

For ex:
Say i am posting entries into 3 tables for a single transaction. At the end i want to rollback the changes in two tables and commit the changes in one table. Is this possible in oracle


Babu
 
Babu,

Have you tried to set multiple savepoints ? I think this might help to solve the problem ... Let me know if this works out.

- Subha Nothing is impossible, even the word impossible says I'm possible.
 
bprasath,

If you insert into table a, then b, then c you can rollback to any point in the transaction by using savepoints. However you must rollback cronologically so for instance in the above example you could not rollback just b as you would have to rollback c before you could rollback b.

The commands you need are savepoint and then rollback to <savepoint>

HTH,

Mike.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top