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 > Visual Explain

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-01-09, 09:15
citi citi is offline
Registered User
 
Join Date: Aug 2007
Posts: 45
Visual Explain

As a DBA, how often do you use Visual Explain during the development process?

Do you run every query through Visual Explain or run them through based on a particular criteria?

I've searched for best practices on this topic but have not had much luck.

Thank you
Reply With Quote
  #2 (permalink)  
Old 10-01-09, 10:50
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
generally speaking, developers should be able to define the top what ever number of reports/SQL that are important to them. You concentrate on those first and foremost. Once that is done, you can start with a smaller fish.

Preferably every new SQL should be going through the review process. Reality proves it wrong. Getting an SQL for review from developers is harder then pulling teeth from the lion at times.

When I was a developer utilizing mainframe, every new SQL that I wrote had to be reviewed by the DBA or it was a no go. Now days in the UDB world when no one is getting billed for time spent processing this requirement went away at most shops.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 10-02-09, 02:23
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Generally a DBA should be doing a SQL snaphot in one of the environments (test, QA, performance test, production) that would indicate which SQL statements are running slow. Then those problem statements should be explained to figure out how to fix it. In my experience it is usually not necessary or feasible to explain and analyze the output for every SQL statement.
__________________
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
  #4 (permalink)  
Old 10-02-09, 06:23
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Quote:
Originally Posted by Cougar8000
When I was a developer utilizing mainframe, every new SQL that I wrote had to be reviewed by the DBA or it was a no go. Now days in the UDB world when no one is getting billed for time spent processing this requirement went away at most shops.
Hee, we've walked the same road : from mainframe developer to DB2/LUW dba. vi is primitive compared to ISPF, right?

The reason why those (pro-active) days are gone is procedural. Dynamic SQL is hidden in java/jdbc code and mostly generated. When you confront the programmer with the SQL he/she does not even recognize it! To play the role our mainframe-collegues do is very hard to set-up on unix so we let it go and feed the package-cache to db2advis from time to time...
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