Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

transaction

Thread view: 
asanam.85@gmail.com - 28 Mar 2007 09:38 GMT
when we dont commit in oracle wat happens whether it wil fetch
previous record
usenetuser@hotmail.co.uk - 28 Mar 2007 10:25 GMT
On Mar 28, 9:38 am, "asanam...@gmail.com" <asanam...@gmail.com> wrote:
> 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.
Lew - 28 Mar 2007 12:55 GMT
> On Mar 28, 9:38 am, "asanam...@gmail.com" <asanam...@gmail.com> wrote:
>> when we dont commit in oracle wat happens whether it wil fetch
[quoted text clipped - 8 lines]
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.