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 > call to get_dbsize_info hangs, why ??

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-11, 11:10
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
call to get_dbsize_info hangs, why ??

Hello all,

I have an issue on one database DB2v8.2 on AIX 5.3 - that call to get_dbsize_info(?,?,?,0) function hangs.

I have waited for 15 minutes only. Then I pressed Ctrl-C.

What should I look for to investigate the cause ? I mean if I monitor via db2mon tool while executing it.

Can it help me (db2mon) or suggest any other tool to find cause of long running query ? I understand that I have db2top available, but not used it much.

Thanks,

DBFinder

ps: same thing with get_dbsize_info(?,?,?,-1)
Reply With Quote
  #2 (permalink)  
Old 08-29-11, 02:00
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
have you checked the status of the agent - maybe lockwait ??
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-29-11, 07:47
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Actually, not checked.

I will check it today, I assumed that this function queries only catalog tables.

Correct me if I am wrong, it calculates the size by summing all used pages (tablespace) multiplied by page size.

I will investigate today and let you know.

Regards
Reply With Quote
  #4 (permalink)  
Old 08-29-11, 18:07
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Yes, I think it looks at the tablespaces's used pages when it calculates the databasesize (this info is stored in the tablespace's control files). So, you can use list tablespaces or db2pd instead.
Reply With Quote
  #5 (permalink)  
Old 08-29-11, 19:21
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Found,
One agent querying dbsize info was hanging around for 6 days. My call was waiting for that agent to finish.

When first agent was forced off, it returned db size promptly.

Thanks for your support.

DBFinder
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