IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Alter Table - Failure


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Wed Jul 03, 2013 5:10 pm
Reply with quote

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
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Thu Jul 04, 2013 1:53 pm
Reply with quote

Did any one got a chance to review my post?
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1018
Location: India

PostPosted: Thu Jul 04, 2013 2:44 pm
Reply with quote

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
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Thu Jul 04, 2013 5:53 pm
Reply with quote

We have CA Detector, but I does not have any filter criteria based on tablespace.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1018
Location: India

PostPosted: Fri Jul 05, 2013 10:10 am
Reply with quote

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
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 05, 2013 10:50 am
Reply with quote

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
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1018
Location: India

PostPosted: Fri Jul 05, 2013 10:58 am
Reply with quote

Gylbharat,

In the Page 6 of the CA-Detector. I see an option O

Regards,
Sushanth
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Fri Jul 05, 2013 1:52 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Need to read duplicate rows from tabl... DB2 3
No new posts VSAM Alter Command - Cylinder Extent ... JCL & VSAM 3
No new posts Hex Table COBOL Programming 2
No new posts Auto ticketing of a job failure ABENDS & Debugging 1
No new posts Catalog table SYSSTATSFEEDBACK DB2 2

Back to Top