Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL Profiler in DB2

Posted on 2011-03-17
6
Medium Priority
?
1,381 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 46

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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 2000 total points
ID: 35189560
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

885 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