不确定是否可能。我在使用 10g 版本。最终的结果应该是这样的:
Username | Date/Time | sqltext
jdoe | 3/21/11 10:32:27 | select sum(total) from sales where in_date > '08-JAN-11'
jdoe | 3/21/11 10:32:21 | delete from products_old
jdoe | 3/21/11 10:32:18 | select item, description from products where item = 'blah'
jdoe | 3/21/11 10:32:06 | select count(item) from products
jdoe | 3/21/11 10:31:44 | describe products
看起来v$sql几乎(?)存储了所有曾经发送的SQL查询,但我该连接什么来获取用户名和日期?