View previous topic :: View next topic
|
Author |
Message |
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Hi,
I was trying to alter a DB2 table - Adding a Column. This would trigger invalidation of packages.
The Alter table failed due to timeout, From the DB2 MSTR log, I found that there was a batch job which was holding lock on a package dependent on this table.
When that job completed, I ran my alter statement again, again the timeout happened due some other job holding lock on a package dependent on this table.
I also ran DISPLAY database - Claimers/USE/Locks on the tablespace, but it did not show up any threads which are holding lock on this table, though the job was still running but not getting CPU.
So, I just got curious, is there a way where we can find out packages that are currently active(executing) and dependent on a particular table? As this table had around 2200 dependent packages.
Thanks in Advance. |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Did any one got a chance to review my post? |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Hi Gylbharat,
There are tools(CA-Detector & CA-Insight) which tells you, what are the packages that are currently active in the db2 sub-system and from there you can drill down to see what are the tablespaces its currently using.
Also, I think in ca-detector its possible to see what the packages that are currenlty running on the tablespace.[ Currenlty i am not using, so not possible to confirm it].
In Ca-Insight, by default you cannot see that, you have to drill down each thread[tedious process].
Thanks,
Sushanth |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
We have CA Detector, but I does not have any filter criteria based on tablespace. |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Gylbharat,
I think in the View Type you have to select the (o)bject and it will list all the databases, you can select the database and drill down you can see all the active tablespaces(which are used by some packages)
Thanks,
Sushanth |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
I dont see any option - "O", I only see one option - to view current thread activity for subsystem.
I that, there are general filter criteria like planname/Conntype/opid/jobname etc |
|
Back to top |
|
|
sushanth bobby
Senior Member
Joined: 29 Jul 2008 Posts: 1020 Location: India
|
|
|
|
Gylbharat,
In the Page 6 of the CA-Detector. I see an option O
Regards,
Sushanth |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Thanks Sushanth, I was not able to figure out O option in CA detector. I also checked the detector user manual. However, I was able to figure out the same option in omegamon view. |
|
Back to top |
|
|
|