transaction

U

usenetuser

when we dont commit in oracle wat happens whether it wil fetch
previous record

This is comp.lang.*java*.programmer. You may be better off asking
this OT question in an Oracle newsgroup.

However, if by fetch you mean SELECT after a modification using UPDATE/
DELETE/INSERT, but prior to COMMIT, the subsequent SELECT will return
the modified record *as long as you are within the same session/
transaction*. All other sessions/transactions will show the
unmodified records (or block) until the COMMIT occurs.
 
L

Lew

This is comp.lang.*java*.programmer. You may be better off asking
this OT question in an Oracle newsgroup.

However, if by fetch you mean SELECT after a modification using UPDATE/
DELETE/INSERT, but prior to COMMIT, the subsequent SELECT will return
the modified record *as long as you are within the same session/
transaction*. All other sessions/transactions will show the
unmodified records (or block) until the COMMIT occurs.

It can actually get more complicated depending on how concurrent accesses
interleave with COMMITs. The bottom line is the same though: until transaction
"A" commits then transaction "B" cannot (reliably) see the results.

The complications arise from the interactions between, say, DELETEs and
INSERTs, and from effects of the four different levels of transaction isolation.

-- Lew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top