i never thought i would post a problem here... but a member of my DB2 user group had this problem that i couldn't figure out.... maybe someone else encountered this problem.... here goes:
OS: Red Hat Linux 8
DB: DB2 UDB ESE 8 (fixpak 7)
Here are some info on DB2:
Instance uses "32" bits and DB2 code release "SQL08020" with level identifier "03010106"
"DB2 v8.1.0.64", "s040812", "MI00086", and FixPak "7"
Product Name = "DB2 Enterprise Server Edition"
Product Identifier = "DB2ESE"
Version Information = "8.2"
Expiry Date = "Permanent"
Registered Connect User Policy = "Enabled"
Number Of Entitled Connect Users = "5"
Enforcement Policy = "Soft Stop"
Number of processors = "4"
Number of licensed processors = "128"
Database partitioning feature = "Not entitled"
Application:
a JAVA application running and executing multiple threads.
(... and here is the) PROBLEM:
Deadlock (lock-wait) with:
1. a thread executing CREATE TABLE, and
2. a thread executing:
call SYSIBM.SQLCAMESSAGE(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, ?)
i've check the monitors and all other UOW are waiting for the LOCK-WAIT between the two applications. i could specify a value in the LOCKTIMEOUT parameter, but that would cause the JAVA app to end abnormally and rollback everything.
my questions are (besides solving this problem

) :
1. what does SYSIBM.SQLCAMESSAGE do? (i know it's a stored procedure)
2. i suspect authority issues in executing SYSIBM.SQLCAMESSAGE. do one need special authority in executing this stored procedure?
3. how was that stored procedure executed anyway? it is not encoded the in application
4. where can i get the documentation on SYSIBM.SQLCAMESSAGE?
5. do you guys have a redbook (pdf) on "DB2 Application Programming Guide and Reference for Java"?
