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 > Informix Row Locking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-04, 13:00
bbanks bbanks is offline
Registered User
 
Join Date: Dec 2003
Posts: 7
Question Informix Row Locking

The company I am with has a unique requirement that involves locking rows in their Informix DB. This is hopefully best explained with the following expamples. ANY assistance/recommendations are appreciated. Thanks!



The online Cobol application begins(user #1), accesses a row in Table A, reads many other tables along the way (tables B-Z) and at the end, they sign-off which logically 'commits' the row in Table A.

At the same time, they might have other users online(user#2) who are trying to access the same row in Table A which they would like 'locked out' until user #1 is done.

Also at the same time, there might be external Java processes(user#3) that run that need to update one of the intermediate tables (for example, table D).

I have been able to set row-level locking on Table A, begin the transaction and lock-out user #2. However, since all tables accessed are included in the 'transaction', user #3 is locked out and shouldn't be as the only table they want to lock is Table A.

Questions:

* do I need to have a begin work/transaction or can I lock Table A without including it in a transaction?

* if transactions are required, can I included table A in one transaction and somehow deliniate the others NOT to be included in this transaction?

Thanks,
Bob
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