0

我正在调查一个在测试环境中使用 Oracle 8i 数据库的遗留应用程序,特别是试图找出在用户执行应用程序功能时访问哪些表以进行读取、插入、更新或删除。

最好/最简单的方法是什么?我可以简单地获取发送到数据库的所有 sql 语句的列表吗?我可以查看何时调用存储过程吗?

对 Oracle 的经验很少,但从 DBA 那里得到帮助,我想我应该使用跟踪或使用 LogMiner 查看重做日志,但是如何?

谢谢!

4

1 回答 1

0

What you could do is to harvest the sql's from v$sql. If the SQL's are properly written - using bind variables - you should be able to catch most of the statements in a table for this. I currently have no running v8 at hand but this should be possible.

In order to get most of them, you probably need to repeat the harvesting during the various workloads that run on the database.

于 2014-05-27T17:54:09.947 回答