Re: Help Informix 4.10 SYSTEM error -121 ?
Posted in 1998
stephen.mcs@ukonline.co.uk wrote in article
<69kvcg$lfk$1@morse.news.easynet.net>...
> We keep getting an intermittant problem when inserting or deleting from
> a table where the SQL fails because of a SYSTEM error -121
> ISAM error: cannot write log file record>
> There is sufficient disk space for the file and I;ve chmod'd the file 777
> but the error keeps returning, intermitantly
>
> Can anyone help me ? Thanks in advance Steve
>
I've had what appears to be the same problem with Informix 4.10/SCO UNIX
using SQL. The message is not totally helpful, if you update many records
without locking the tables being updated then Informix can run out of
record locks. The easiest solution is to lock the tables to be updated,
which must be done in transaction, as Informix then only uses one lock per
file, instead of one per record:
begin work;
lock table foo in exclusive mode; { or share mode }
update foo set bar = "Y" where (select ...
.
.
commit work
--
--
Steve Williamson