DB2 locking UDF dll
That’s a good point. In V8, there are more things you should take care:
====
If keepfenced is set to no, and the routine being executed is not
threadsafe, a new fenced mode process is created and destroyed for each
fenced mode invocation. If keepfenced is set to no, and the routine being
executed is threadsafe, the fenced mode process persists, but the thread
created for the call is terminated. If keepfenced is set to yes, a fenced
mode process or thread is reused for subsequent fenced mode calls. When the
database manager is stopped, all outstanding fenced mode processes and
threads will be terminated.
=====
We can see even you set KEEPFENCED as NO, but the UDF routine is THREADSAVE
(default). That means even all the connections who called fenced UDFs are
terminated, the fenced mode process still keep alive . So you can kill this
process – db2fmp, or the better and safer way is you shutdown the db2
server.
Regards,
FRX
|