Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: keep select in transaction
>> as far as i remember Oracle works in 'read commited' mode per default.
>> That means that you will 'see' rows inserted AND commited in other
>> transactions within your transaction. What you need in this case is to
>> set the transaction isolation level to 'serializable'.
>>
>> And: Please don't cross post.
>
> By default it is impossible, in Oracle, to see uncommitted data.
>
> By default it is impossible, in Oracle, to see records committed after
> your transaction has begun.
The second statement of yours is not correct, if you meant it like I understood it.
Consider:
RENE> create table test_1 (a number);
Table created.
RENE> insert into test_1 values(42);
1 row created.
RENE> commit;
Commit complete.
1 row created.
RENE> commit;
Commit complete.
Clearly, session 2 saw the record with 999 that was commited after the transaction of session 2 begun.
Rene
-- Rene Nyffenegger http://www.adp-gmbh.ch/Received on Tue Apr 12 2005 - 17:02:00 CDT