IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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: 1020
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: 1020
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: 1020
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

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts DROP & ALTER PARTITION-PBR DB2 0
Search our Forums:

Back to Top