If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Locks by SYSTOOLS.HMON_ATM_INFO

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-25-11, 07:39
foxrafi foxrafi is offline
Registered User
 
Join Date: May 2011
Location: Poland
Posts: 5
Question Locks by SYSTOOLS.HMON_ATM_INFO

Hi I have a problem with locks. Two queries that are associated with this situation are the following, the first operates on SYSTOOLS.HMON_ATM_INFO the second one is created by me.

Lock requestor:
UPDATE SYSTOOLS.HMON_ATM_INFO AS ATM SET STATS_FLAG = 'N', REORG_FLAG = 'N' WHERE (ATM.SCHEMA, ATM.NAME) IN (SELECT IBM.CREATOR, IBM.NAME FROM SYSIBM.SYSTABLES AS IBM WHERE IBM.TYPE = 'N' )

Lock owner: INSERT INTO MY_SCHEMA.MY_TABLE....

Those two queries operate on completely different objects/columns/fields in database how it is possible that the first one is block by the second one ?

And how can I avoid this situation ?

Thank you for any help.
Regards,
foxrafi
Reply With Quote
  #2 (permalink)  
Old 05-27-11, 20:14
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Capture application and lock snapshot to see what's it's waiting on (possibly some catalog table).
Reply With Quote
  #3 (permalink)  
Old 05-27-11, 23:18
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Aren't those related to the Health Monitor?

The Db2 Health Monitor has been depricated by IBM, and will be removed in a future version of DB2 (to be replaced by something else, probably at extra cost). Part of the reason for this (IMO) is that the Health Monitor does not work well, and can cause a lot of system problems, including but not limited to, instance crashes. You can shut it off in the DBM config. I would also recommend turning off automatic maintenance in the DB config, and writing your own maintenance scripts.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On