开发者

Debugging Oracle queries being sent by Oracle

I 开发者_开发知识库have a large PHP program that interacts with an Oracle DB. There are obviously view pages and pages that are more for program logic. Some of my logical pages need to be debugged.

I have Oracle queries being executed from some of these pages. How can you see what queries are being sent to Oracle? Printing queries from these types of pages doesn't seem to work i.e. nothing is printed. Is there some sort of Oracle log file that I can look at?

Thanks very much :).


You can turn on tracing for the session and look at the trace files created in the database's user_dump_dest directory, assuming you have access to the database server and permission to view those. There's an overview of the deprecated sqltrace method, and the docs for that; and the newer DBMS_MONITOR.

I'd start by looking at the application tracing tools Oracle provide.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜