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 > Dynamic SQL snapshot to Excel sheet

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-22-10, 06:06
nagbuchi79 nagbuchi79 is offline
Registered User
 
Join Date: Oct 2009
Posts: 7
Dynamic SQL snapshot to Excel sheet

Hi ,
I would like to read the dynamic sql snapshot output in tabular format(i.e EXCEL sheet).Can anyone please let me know how to convert the data into tabbed excel sheet.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 03-22-10, 06:57
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
select * from sysibmadm.snapdyn_sql
Reply With Quote
  #3 (permalink)  
Old 03-22-10, 07:21
nagbuchi79 nagbuchi79 is offline
Registered User
 
Join Date: Oct 2009
Posts: 7
Assume I have the DYN SQL snapshot's output in a txt file.Will it be possible to convert in to TABBED EXCEL format.
Reply With Quote
  #4 (permalink)  
Old 03-22-10, 10:44
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by n_i View Post
select * from sysibmadm.snapdyn_sql
Do you know what time period that covers?
__________________
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 03-22-10, 11:17
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by Marcus_A View Post
Do you know what time period that covers?
Since the information still comes from the same old snapshot monitor counters, I'd say from the database start time, switch activation, or monitor reset, whichever comes last.
Reply With Quote
  #6 (permalink)  
Old 03-22-10, 12:27
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
@nagbuchi79 Open the text file with microsoft excel
Reply With Quote
  #7 (permalink)  
Old 03-22-10, 20:09
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by n_i View Post
Since the information still comes from the same old snapshot monitor counters, I'd say from the database start time, switch activation, or monitor reset, whichever comes last.
That makes it useless IMO. I run snapshots over short intervals (about 30 minutes in production) so I can see how statements are performing in a given time window. I can compare multiple snapshots to see if the execution time for a SQL statement is increasing over time or remaining steady. I use the old-fashion get snaphot command and I can turn on and off the monitor switches and reset the monitors just for my session (not the ones in the dbm cfg, but the update monitor switches). I then have scripts that will load the output of the get snapshot into a spreadsheet.
__________________
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
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