Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SQL Profiler in DB2

Posted on 2011-03-17
6
1,284 Views
Last Modified: 2012-05-11
Hi,

In SQL Server, we have a tool called SQL Profiler. This allows you to view the insert statements, select statements, stored procedure being currently executed on a database.

Is there an equivalent in DB2 version 9.1?

What I would like to see is a log for the insertions done (which was originally invoked by the software layer)?

Kind Regards,
Asim
0
Comment
Question by:asim252
6 Comments
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 35155653
Hi Asim,

Do you want to see the insert statement(s) or a log of everything that was inserted into a table?

0
 

Author Comment

by:asim252
ID: 35155757
Hi there,

I want to see the insert statements that happen at run time.

Kind Regards,
A.
0
 
LVL 37

Expert Comment

by:momi_sabag
ID: 35157780
do you want to see the statements or do you need the actual values?
for example, do you want to see

insert into table1 values (?, ?, ?)

or

insert into table1  values(1,2,3)?
0
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
LVL 7

Expert Comment

by:waynezhu
ID: 35162774
db2 does not have such exact utility.
You may try Event (Statement) Monitor
0
 

Author Comment

by:asim252
ID: 35174841
@momi_sabaq, we want to see insert into table1  values(1,2,3)?
0
 
LVL 37

Accepted Solution

by:
momi_sabag earned 500 total points
ID: 35189560
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA MS Word "Table of Contents" extractor` 4 56
Exchange 2010 Database wont mount 3 53
Modify select statment 10 34
corrupt Databases 9 65
APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question