If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Locking Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-07-03, 09:54
Bhushan_sawant Bhushan_sawant is offline
Registered User
 
Join Date: Nov 2003
Posts: 7
Locking Problem

Hi All,

I have row level locking for a table. In one session i enter

begin work;
update emp
set name ="jack"
where empno=1

In second sesssion if i say

select * from emp
it gives me an error, cannot do a physical fetch on the table,
but my table has row level locking.

If i update the 10th row in one session, in other session i can view the 1st 9 rows, after that it gives me the same error. This should not happen since table is locked in row mode, it should lock only the current row and display the other rows.

IF i give

set isolation to dirty read;
select * from emp;
i can view all the data but with name with latest changes which may or may not be committed, thus my MIS may go haywire.

Please advice. Appreciate ur prompt reply.

Regards,

Bhushan Sawant
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On