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 > Query To Get I/O Uses

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-10, 01:40
singhipst singhipst is offline
Registered User
 
Join Date: Jul 2006
Location: Bangalore
Posts: 57
Query To Get I/O Uses

Hi All,

I am looking for some query in db2 to fetch I/O operations and wait time for last 10 minuts from curent time.

Its there any query to get this info?
__________________
Ritesh Kumar Singh
IBM Certified DB2 DBA for LUW
**Knowledge Is Theft If Not Shared !!**
Reply With Quote
  #2 (permalink)  
Old 09-08-10, 08:41
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,451
That depends on the DB2 server version.
Reply With Quote
  #3 (permalink)  
Old 09-09-10, 05:49
singhipst singhipst is offline
Registered User
 
Join Date: Jul 2006
Location: Bangalore
Posts: 57
I am using DB2 9.7 and used below sql to get the info.

Could any body please confirm if this si correct.

Code:
select 
to_char(current timestamp,'HH:MI:SS') as time,
sum(DIRECT_READ_REQS) as DIRECT_READ_REQS, 
sum(DIRECT_WRITE_REQS) as DIRECT_WRITE_REQS,
sum(pool_data_l_reads + pool_temp_data_l_reads + pool_index_l_reads + pool_temp_index_l_reads + pool_xda_l_reads + pool_temp_xda_l_reads) as logical_reads,
sum(pool_data_p_reads + pool_temp_data_p_reads + pool_index_p_reads + pool_temp_index_p_reads + pool_xda_p_reads + pool_temp_xda_p_reads) as physical_reads,
sum((pool_data_writes + pool_index_writes + pool_xda_writes)) as TOTAL_WRITES
from table(SYSPROC.MON_GET_BUFFERPOOL('',-1));
__________________
Ritesh Kumar Singh
IBM Certified DB2 DBA for LUW
**Knowledge Is Theft If Not Shared !!**
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