![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is the best way to identify which statements in the package cache that reads from a certain table? I'm not to happy with: * * select ... * * from sysibmadm.snapdyn_sql * * where ucase(cast(stmt_text as varchar(10000))) like '%<tablename>%' so I'm wondering if there is a better way? /Lennart |
#3
| |||
| |||
|
|
On 22 nov, 22:18, Lennart Jonsson <erik.lennart.jons... (AT) gmail (DOT) com wrote: What is the best way to identify which statements in the package cache that reads from a certain table? I'm not to happy with: select ... from sysibmadm.snapdyn_sql where ucase(cast(stmt_text as varchar(10000))) like '%<tablename> %' so I'm wondering if there is a better way? /Lennart Don't forget the views on that table... For the rest of your question, I don't think there's much choice. |
|
You sound like you're trying to implement some performance course best practices ;-) |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Which version of DB2 are you on? 9.7 has a bunch of new and much more lightweight APIs |
#6
| |||
| |||
|
|
On 2010-11-23 13:06, Serge Rielau wrote: Which version of DB2 are you on? 9.7 has a bunch of new and much more lightweight APIs 9.5 and AFAIK there are no plans of upgrading in a nearby future. /Lennart |
![]() |
| Thread Tools | |
| Display Modes | |
| |