Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Alter Table - Failure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Alter Table - Failure
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    Post subject:
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: 1013
Location: India

PostPosted: Thu Jul 04, 2013 2:44 pm    Post subject:
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    Post subject:
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: 1013
Location: India

PostPosted: Fri Jul 05, 2013 10:10 am    Post subject:
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    Post subject:
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: 1013
Location: India

PostPosted: Fri Jul 05, 2013 10:58 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm
No new posts Converting NULL column into NOT NULL ... Raghu navaikulam DB2 5 Sat Aug 06, 2016 3:45 pm
No new posts Getting soc4 on internal table in cobol abdulrafi COBOL Programming 13 Fri May 06, 2016 3:39 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us