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 > Benchmarking table counts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-10-07, 11:03
PKPChuck PKPChuck is offline
Registered User
 
Join Date: Sep 2006
Location: Columbus, OH
Posts: 64
Benchmarking table counts

Linux
Db2 8.2

I'm looking to monitor table growth via record count. I was just going to right a simple script to select count(*) from x, but wanted to see if there any good scripts or db2 tools out there.

Thanks,
Charlie
Reply With Quote
  #2 (permalink)  
Old 07-10-07, 11:12
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
How often do you plan to do this benchmarking? If a table has tons and tons of rows, the count(*) can take quite a while. If the benchmarks are taken at about the same time that runstats are executed, then you can just query the syscat.tables view like this: select tabschema,tabname,card from syscat.tables. It will not be 100% accurate, just when the last runstats ran. But this maybe all you need.

HTH

Andy
Reply With Quote
  #3 (permalink)  
Old 07-10-07, 13:28
PKPChuck PKPChuck is offline
Registered User
 
Join Date: Sep 2006
Location: Columbus, OH
Posts: 64
Yea this may be all I need. I was planning on running a count once a day.

Thanks,

Charlie.
Reply With Quote
  #4 (permalink)  
Old 07-11-07, 13:13
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
if you want to have a check on storage
db2cc>manage storage
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
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