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 > What Is topsql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-09, 20:33
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 648
What Is topsql

Hi ,

Can anyone tell me what is topsql.

Is topsql available in DB2.

If so how we run it.

Please help,

DBFinder
Reply With Quote
  #2 (permalink)  
Old 01-08-09, 21:18
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,482
There is a monitor called db2top that is avaiable in the newer releases of DB2 (and updated in 9.5 FP3). I don't know if that is what you mean.
__________________
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
  #3 (permalink)  
Old 01-09-09, 09:17
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Quote:
Originally Posted by DBFinder
Hi ,

Can anyone tell me what is topsql.

Is topsql available in DB2.

If so how we run it.

Please help,

DBFinder
Are you talking about TOP SQL's which is basically
select top 3 * from tablename in SQL Server???

If that is the case then in DB2 it is
select * from tablename fetch first 3 rows only.
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #4 (permalink)  
Old 01-09-09, 11:11
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 648
Top SQL

To capture top SQL statement for performance tuning or troubleshooting.
I donot know but I guess it may be a utility or a built in command to analyze the sqls running as slow performing.

'topsql' was used by a high level professional in context of perfomance tunning. I could not find it in DB2 Docs.

DBFinder
Reply With Quote
  #5 (permalink)  
Old 01-09-09, 11:16
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 4,012
Is this what you are looking for (from the V9.5 info center):

IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

Andy
Reply With Quote
  #6 (permalink)  
Old 01-09-09, 15:07
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 648
Maybe,

but this one is only Ver 9.5 ; we have mixed env where some are ver db2 v8s

I had seen this before I did post. db2 might be saving sqls in ver 8 too.

I need a solution in a script to run 12 different servers outputting to text or csv file.

I am trying to find out and will post my findings.

Thanks anyway.

DBFinder
Reply With Quote
  #7 (permalink)  
Old 01-10-09, 11:21
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,482
You can do a get snapshot for dynamic sql, but you will have to do some manipulation of the output file to figure out the which ones take the longest.
__________________
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