问题
Subject says it all. Looking to capture sql submitted to DB2.
回答1:
Take a look at the Iseries SQL Exit Points which will allow you to log any submitted SQL. The only problem is you will have to write your own programs to do the logging:
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzaik%2Frzaikodbcexitprog.htm
回答2:
If you have Java support enabled, you can use SQL PL Profiler.
http://www.ibm.com/developerworks/data/library/techarticle/dm-0406rielau/index.html
回答3:
i use the DB2 Command Center with a graphical view of the generated tree
回答4:
In iSeries Navigator, there is SQL Performance Monitor. I haven't ever been able to figure it out, but it might be what you are looking for.
来源:https://stackoverflow.com/questions/7257667/is-there-an-ibm-iseries-db2-equivalent-to-sql-profiler