Row level locking in Uniplex/Informix 2.10. Question. 
Author Message
 Row level locking in Uniplex/Informix 2.10. Question.

Uniplex users out there?
comp.applications.uniplex would have been nice for this.
Uniplex is an office automation system containing Word processing,
spreadsheets, database, and lots of other stuff.

We have recently moved our customer service users to Uniplex. It uses
Informix 2.10 as its database engine. Uniplex creates sql scripts, which
are passed to the informix engine. No C language capability exists.

I can produce a deadlock-like situation as follows:

: ''
: 'To try to produce a deadlock with informix.'
# Written by R McClatchey 04/24/92

export Uredirect INFORMIXDIR

SEL=/tmp/sel$$; export SEL


# records exist where oldquote = -1 and -2.
# usql is the Uniplex tool that calls sqlexec.
for i in 1 2
echo "invoke sales
update quotes set oldquote = -6 where oldquote = -$i" >$SEL.$i
usql -q -u $SEL.$i&

exit 0

I then have to kill 2 sqlexec processes. They do not accumulate CPU time, and
do nothing. I interpret that as a deadlock.

If I add "lock table quotes in share mode" before the updates, the
deadlock is avoided and one update fails, the other succeeds.

Would a more modern version of Informix, interface with Uniplex and
have row level locking in sql? Would I have to go to C or ESQL?

My other SQL experience is with Unify 5, which locks the whole table on update
when using SQL, but not with its C interface, which does field locking.

Thanks for any help.

Reynolds McClatchey (Southern Aluminum Finishing Co, Atlanta, GA, USA)
Architectural Aluminum. Custom Fabrication. Paint, Powder Coating, Anodizing.
uunet!safn2!rey  MCImail 414-2935  Voice 404-355-1560  Fax 404-350-0581

Sat, 15 Oct 1994 23:04:35 GMT
 [ 1 post ] 

 Relevant Pages 

1. Row level locking in Uniplex/Informix 2.10. Question.

2. table-level lock or row-level lock

3. row-level or page-level locking?

4. Question about Insert row-level locking in 6.5

5. Row Level Lock question

6. 11.9.2 Row level Locking question

7. row level vs page level locking is it more than marketing

8. FW: Questions about row-level locking

9. Questions about row-level locking

10. Question about row level locking

11. Page lock to simulate row level lock

12. Question about Informix 2.10 and 5.x

Powered by phpBB® Forum Software