![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
In DB2 you can do something like the following: SELECT * FROM MYTABLE WITH UR; If you have, say, a batch application that is inserting a lot of rows in to a table, with no commits until the end of the job, doing the above query while the batch update job is still running will allow you to see the inserted but not yet committed rows. Not something that you would want to do with a user application, but it's something that as a developer I have found occasionally useful (seeing what my batch job is "doing" before it's actually done). Is there any such feature available for Oracle? Thanks, Frank -- Frank Swarbrick Applications Architect - Mainframe Applications Development FirstBank Data Corporation - Lakewood, CO USA P: 303-235-1403 |
#4
| |||
| |||
|
|
On 11/25/2009 at 12:42 PM, in message <4b0d96bf$1 (AT) news (DOT) victoria.tc.ca>, Malcolm Dew-Jones<yf110 (AT) vtn1 (DOT) victoria.tc.ca> wrote: Frank Swarbrick (Frank.Swarbrick (AT) efirstbank (DOT) com) wrote: : In DB2 you can do something like the following: : SELECT * : FROM MYTABLE : WITH UR; : If you have, say, a batch application that is inserting a lot of rows in to : a table, with no commits until the end of the job, doing the above query : while the batch update job is still running will allow you to see the : inserted but not yet committed rows. : Not something that you would want to do with a user application, but it's : something that as a developer I have found occasionally useful (seeing what : my batch job is "doing" before it's actually done). : Is there any such feature available for Oracle? No, Oracle prevents you from seeing data until it's committed. |
#5
| |||
| |||
|
|
On 11/25/2009 at 12:42 PM, in message <4b0d96b... (AT) news (DOT) victoria.tc.ca>, Malcolm Dew-Jones<yf... (AT) vtn1 (DOT) victoria.tc.ca> wrote: Frank Swarbrick (Frank.Swarbr... (AT) efirstbank (DOT) com) wrote: : In DB2 you can do something like the following: : SELECT * : FROM MYTABLE : WITH UR; : If you have, say, a batch application that is inserting a lot of rows in to : a table, with no commits until the end of the job, doing the above query : while the batch update job is still running will allow you to see the : inserted but not yet committed rows. : Not something that you would want to do with a user application, but it's : something that as a developer I have found occasionally useful (seeing what : my batch job is "doing" before it's actually done). * : Is there any such feature available for Oracle? No, Oracle prevents you from seeing data until it's committed. I did google a bit and thought that Oracle would not allow it, but wantedto verify by actually asking the question myself. I guess I can understand why the decision was made. *Not sure I agree with the reasoning, but... *Probably not a big deal in the end. Thanks! Frank -- Frank Swarbrick Applications Architect - Mainframe Applications Development FirstBank Data Corporation - Lakewood, CO *USA P: 303-235-1403- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |