Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: read consistency question
Can't use them if another session is updating the tables you're trying to
work with either.
-- Chuck "Tanel Poder" <tanel@@peldik.com> wrote in news:3f1ecca5_1 @news.estpak.ee: > Hi! > > Use: > > set transaction isolation level serializable; > > Note, that under user sys (and other sysdba connections) you cant use > serializable transactions. > > Tanel. > > "Chuck" <chuckh_at_softhome.net> wrote in message > news:Xns93C182EF925C8chuckhsofthomenet_at_130.133.1.4...Received on Wed Jul 23 2003 - 13:01:38 CDT
>> How can I set transaction-level read consistency in a read/write
>> transaction?
>>
>> For example lets say session A is inserting and commiting rows every
few
>> seconds to table mytable. In session B I want to copy some rows from
>> mytable to another table and then delete only those rows, ignoring
those
>> created by session A between after my insert began.
>>
>> insert into mytable2 (select * from mytable where col1 = 'x');
>> 10 rows inserted
>>
>> delete from mytable where col1 = 'x';
>> 12 rows deleted.
>>
>> I only want to delete the 10 rows that were processed by the insert. I
>> don't want to delete the 2 rows that session A inserted after the
insert
>> began. I'm not looking for a workaround such as using an intermediate
>> staging table. I'm looking for a way to make my session do
transaction-
>> level read consistency so it doesn't even see the 2 new rows inserted
by
>> session A after my insert began.
>>
>> TIA
> > >
![]() |
![]() |