View previous topic :: View next topic |
Author |
Message |
Hema_Manyam Beginner
Joined: 15 Dec 2005 Posts: 20 Topics: 9
|
Posted: Fri Dec 16, 2005 3:49 am Post subject: db2 - rollback |
|
|
Hi,
Given a Cobol DB2 Application which has NO Commits or Rollbacks
I have 10 update SQLs, first 5 updates are successful.
when executing 6th update it aborted.
Will only this 6th SQL be Rolledback automatically or the whole Unit of work ?
Thanks. |
|
Back to top |
|
 |
chandrankk Beginner
Joined: 06 Dec 2005 Posts: 8 Topics: 0
|
Posted: Fri Dec 16, 2005 5:01 am Post subject: |
|
|
everything will be rolled back if you don't commit in between. |
|
Back to top |
|
 |
schintala Beginner
Joined: 18 May 2005 Posts: 108 Topics: 31 Location: USA
|
Posted: Fri Dec 16, 2005 8:56 am Post subject: |
|
|
I don't think so. Only 6th SQL update will be rolled back. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Dec 16, 2005 10:40 am Post subject: |
|
|
Quote: |
I don't think so. Only 6th SQL update will be rolled back.
|
schintala,
If there was NO COMMIT/Syncpoint/Checkpoint issued in between and 6th update aborted the pgm , All the updates from 1 will be rolled back as the entire thing is 1 single unit of work.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|