Solved

SQL Profiler in DB2

Posted on 2011-03-17
6
1,247 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:Kdo
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now