469,646 Members | 1,137 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

SET CURRENT LOCK TIMEOUT has no effect

DB2 8.1 FP7a on AIX 5.2.

$ db2 SET CURRENT LOCK TIMEOUT NOT WAIT
DB20000I The SQL command completed successfully.
$ db2 values current lock timeout

1
-----------
0

1 record(s) selected.

$ db2 REORG INDEXES ALL FOR TABLE TAB1 ALLOW WRITE ACCESS ...hangs in
Lock-wait
I read that "The CURRENT LOCK TIMEOUT special register specifies the
number of seconds to wait for a lock before returning an error
indicating that a lock cannot be obtained." I want to force an error if
the REORG has to wait at all.
Does anyone know what I am missing? Thank you for your help.

May 3 '06 #1
1 2734
pike wrote:
DB2 8.1 FP7a on AIX 5.2.

$ db2 SET CURRENT LOCK TIMEOUT NOT WAIT
DB20000I The SQL command completed successfully.
$ db2 values current lock timeout

1
-----------
0

1 record(s) selected.

$ db2 REORG INDEXES ALL FOR TABLE TAB1 ALLOW WRITE ACCESS ...hangs in
Lock-wait
I read that "The CURRENT LOCK TIMEOUT special register specifies the
number of seconds to wait for a lock before returning an error
indicating that a lock cannot be obtained." I want to force an error if
the REORG has to wait at all.
Does anyone know what I am missing? Thank you for your help.

I take a guess here and postulate that the register is only relevant to
SQL statements.
Whether that's conscious design or not, I don't know.
Maybe worth a PMR...

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
May 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Antoon Pardon | last post: by
2 posts views Thread by john.livermore | last post: by
5 posts views Thread by harborboy76 | last post: by
14 posts views Thread by Sharon | last post: by
6 posts views Thread by Shanmugasundaram Doraisamy | last post: by
8 posts views Thread by Komandur Kannan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.