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 > AWR (like) report for DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-12-07, 13:03
tlcoleman tlcoleman is offline
Registered User
 
Join Date: Nov 2004
Posts: 4
AWR (like) report for DB2

Has anyone written queries or such that sort of gathers similar data as the Oracle AWR does for DB2?
Reply With Quote
  #2 (permalink)  
Old 11-12-07, 14:47
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Could you tell us what AWR does in Oracle?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 11-12-07, 15:08
tlcoleman tlcoleman is offline
Registered User
 
Join Date: Nov 2004
Posts: 4
Automatic Workload Repository

The statistics collected and processed by AWR include:

* Object statistics that determine both access and usage statistics of database segments
* Time model statistics based on time usage for activities, displayed in the V$SYS_TIME_MODEL and V$SESS_TIME_MODEL views
* Some of the system and session statistics collected in the V$SYSSTAT and V$SESSTAT views
* SQL statements that are producing the highest load on the system, based on criteria such as elapsed time and CPU time
* Active Session History (ASH) statistics, representing the history of recent sessions activity
Reply With Quote
  #4 (permalink)  
Old 11-12-07, 19:13
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
In DB2 these are provided by various snapshots (see GET SNAPSHOT in the Command Reference manual).

To access the snapshot data via SQL, you can use table funcitons:
http://publib.boulder.ibm.com/infoce...n/r0006117.htm
__________________
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
  #5 (permalink)  
Old 11-14-07, 13:09
tlcoleman tlcoleman is offline
Registered User
 
Join Date: Nov 2004
Posts: 4
DB2 Snapshot

From what I am reading, it seems a random queries to get what you want. Isn't there something that gets everything I want to see (like the AWR report) and put it to a table or flat file?
Reply With Quote
  #6 (permalink)  
Old 11-14-07, 13:19
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The snapshots give you much of the same information as AWR. If I understood you correctly, you are not worrying about getting the information but rather formating in the way you like it?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 11-15-07, 12:26
tlcoleman tlcoleman is offline
Registered User
 
Join Date: Nov 2004
Posts: 4
Well both. I am looking for exact examples on how to run this snapshots that I guess put them in a tables to query out or flat file I can format. I guess I am not reading into well enough.
Reply With Quote
  #8 (permalink)  
Old 10-27-11, 13:29
radedba radedba is offline
Registered User
 
Join Date: Oct 2011
Posts: 1
Same search

Hi tlcoleman.
I'm searching for the same as you: similar data report as the Oracle AWR, for DB2.
Any luck?
Regards
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