Thank you, Jan.
Original Message:
Sent: Fri September 15, 2023 06:26 AM
From: Jan Nelken
Subject: Get session issolation level from the server side
1. Until a SET CURRENT ISOLATION statement is issued within a session, or after RESET has been specified for SET CURRENT ISOLATION, the CURRENT ISOLATION special register is set to blanks and is not applied to dynamic SQL statements; the isolation level used is taken from the isolation attribute of the package which issued the dynamic SQL statement.
2. Default isolation level is CS.
3. For isolation attribute of the package check column ISOLATION of the SYSCAT.PACKAGES view.
You may want to look at DB2_DEFAULT_ISOLATION_VALUE registry variable and also:
DB2_BYPASS_DEFAULT_ISOLATION_APPS
DB2_BYPASS_DEFAULT_ISOLATION_GROUPS
DB2_BYPASS_DEFAULT_ISOLATION_USERS
------------------------------
Jan Nelken
Original Message:
Sent: Fri September 15, 2023 05:25 AM
From: Ondřej Žižka
Subject: Get session issolation level from the server side
Hello,
Is it possible to get an isolation level of a specific session, but from the server side? I know it can be changed just for a specific query (using e.g. WITH UR with the query), but I am looking for the default settings that can be defined e.g. in a JDBC connection string. I want to check what is the isolation level for specific connections causing issues, but I am not able to access their application server and it takes a long to get an answer from them.
I tried db2pd, but I don't see there anything, that could identify the default isolation level for the specific session/connection.
Does there exist a way to find that?
Thank you
------------------------------
Ondřej Žižka
------------------------------