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 > Database Alerts

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-09, 07:42
rameshj6 rameshj6 is offline
Registered User
 
Join Date: Oct 2008
Posts: 51
Database Alerts

Hi All,

Environemnt: AIX 5.3
Db2 8.2

Every day we need automatic alerts from the database.So we need to write a query for this. Can any one help me plz...

1) Top 10 Queries for which maximum I/O operations took place

2) Top 10 Queries consuming excess buffer pool memory.

Thanks
Reply With Quote
  #2 (permalink)  
Old 05-06-09, 08:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
This will not be an easy solution. You cannot just execute a single query to get this for each day. You first have to capture the data and then you can perform the query. You will need to setup some tables to capture the information you want. Then you will need to periodically capture snapshot data and put it into the tables. Then you run your daily queries to get your top 10 lists.

Andy
Reply With Quote
  #3 (permalink)  
Old 05-06-09, 08:25
rameshj6 rameshj6 is offline
Registered User
 
Join Date: Oct 2008
Posts: 51
Thanks for your reply

Can you suggest me that how to setup tables...?

otherwise we have any option like using tools (db2pe)...
Reply With Quote
  #4 (permalink)  
Old 05-06-09, 08:29
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
CREATE TABLE MySchema.MyTable like ...

Andy
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