> Hello.
>
[quoted text clipped - 40 lines]
> --
> Thank you in advance, Konstantin Andreev.

Signature
Serge Rielau
DB2 Solutions Development
DB2 UDB for Linux, Unix, Windows
IBM Toronto Lab
> Which version of DB2 are you on?
Sorry, I've missed this from my 1st post.
We use DB2 EE for Windows 8.1.6 ( 8.1 + FP6a_WR21346_ESE.exe )
> In DB2 V8.2 (aka V8.1 FP7) you can use the SET_ROUTINE_OPTS() procedure
Indeed, there is no such procedure in my version of DB2.
> to change the bind options at the session level:
> http://publib.boulder.ibm.com/infocenter/db2luw/v8/topic/com.ibm.db2.udb.doc/adm
in/r0011873.htm
> This answers most of the restart questions I presume...
Yes !!! This is exactly what we need. We just need to upgrade.
Thank you very much.
> If you want to change the isolation for a specific statement you
> can use the isolation level clause of SQL statements such as:
> "SELECT * FROM SYSCAT.TABLES WITH UR"
Sure, If this is raw dynamic statement. It does *not* work in
the 2 significant cases:
1) If I use "WITH <level>" in a stored procedure, then specified
<level> is ignored, and an isolation level of procedure is applied.
2) Consider example:
| BEGIN ATOMIC
| IF exists( select 1 from ... WITH RR)
| .......
This example cause "syntax error" message from DB2.
Is this case the bug or the lack of functionality ?
> If you want statements inside of a proecdure to obey the isolation level of the current isolation level you need to use dynamic
> SQL inside teh SQL Procedure.
> A change of isolation level affects teh semantics of teh stored procedure, therefore, typically, it is not in the interest of the
> definer of the procedure to let the invoker change this behaviour.
I agree, it could be not desirable to let invoker change the isolation level.
Could you be a bit more specific and tell me, what is "teh" stored
procedure ?
--
Konstantin Andreev.