Isolation level in db2expln - ibm-db2
This is a discussion on Isolation level in db2expln - ibm-db2 ; From where db2expln utility takes isolation level ? As I am changing isolation level on session level and on db as well but still output of db2expln shows me no change in isolation level....
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| |
|
#2
| |||
| |||
|
Just to put it in other way:- Changed Isolation to RR and taken explain. Still explain is showing CURSOR STABILITY . $ db2 terminate DB20000I The TERMINATE command completed successfully. $ db2 change isolation to RR DB21053W Automatic escalation will occur when you connect to a database that does not support RR. DB20000I The CHANGE ISOLATION command completed successfully. $ db2 connect to testx Database Connection Information Database server = DB2/AIX64 9.1.5 SQL authorization ID = DB2INST3 Local database alias = TESTX $ db2expln -d testx -g -t -q "select count(*) from test.table1" DB2 Universal Database Version 9.1, 5622-044 (c) Copyright IBM Corp. 1991, 2006 Licensed Material - Program Property of IBM IBM DB2 Universal Database SQL and XQUERY Explain Tool DB2 Universal Database Version 9.1, 5622-044 (c) Copyright IBM Corp. 1991, 2006 Licensed Material - Program Property of IBM IBM DB2 Universal Database SQL and XQUERY Explain Tool ******************** DYNAMIC *************************************** ==================== STATEMENT ========================================== Isolation Level = Cursor Stability Blocking = Block Unambiguous Cursors Query Optimization Class = 3 Partition Parallel = No Intra-Partition Parallel = No SQL Path = "SYSIBM", "SYSFUN", "SYSPROC", "SYSIBMADM", "DB2INST3" Statement: select count(*) from test.table1 Section Code Page = 1208 Estimated Cost = 0.015853 Estimated Cardinality = 1.000000 Access Table Name = TEST.TABLE1 ID = 5,86 | Index Scan: Name = TEST1.IND_TEST ID = 2 | | Regular Index (Not Clustered) | | Index Columns: | | | 1: COL2 (Ascending) | #Columns = 0 | #Key Columns = 0 | | Start Key: Beginning of Index | | Stop Key: End of Index | Index-Only Access | Index Prefetch: None | Lock Intents | | Table: Intent Share | | Row : Next Key Share | Sargable Index Predicate(s) | | Predicate Aggregation | | | Column Function(s) Aggregation Completion | Column Function(s) Return Data to Application | #Columns = 1 End of section Optimizer Plan: RETURN ( 1) | GRPBY ( 2) | IXSCAN ( 3) / \ Index: Table: TEST1 TEST IND_TEST TABLE1 -Shri |
|
#3
| |||
| |||
|
Any update Experts !!!
|
|
#4
| |||
| |||
|
two options 1. db2expln -d testx -g -t -q "select count(*) from test.table1 with rr" 2. A. db2 set current isolation rrB. db2expln -d testx -g -t -q "select count(*) from test.table1" cheers |
|
#5
| |||
| |||
|
Thanks.. but both of your solutions failed and not working.. and the question is.. From where db2 takes this value. As in my earlier example, I have changed isolation level just before taking explain still the explain report hasn't shown updated level. Last edited by finditout; 02-12-2010 at 08:39 AM.. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: CHECKTABLE give error Msg 8929, Level 16, State 1, Line 1 how to no which row is effected | Database Administrator | sqlserver-server | 0 | 05-01-2008 09:53 AM |
| Database Engine default Isolation Level | Database Administrator | sqlserver-server | 1 | 04-30-2008 04:10 PM |
| audit | Database Administrator | aix | 6 | 12-03-2007 09:32 AM |
| Difficult Query: is this possible in SQL? | Database Administrator | Database Discussions | 64 | 07-06-2004 02:01 AM |
| Returning result of a simple "select * " from a stored procedure without using cursor | Database Administrator | Oracle Server | 29 | 10-21-2003 12:49 PM |
All times are GMT -4. The time now is 03:29 AM.




Linear Mode
