不確定這是否可能。我在10g。最終的結果是這樣的:(?)如何通過用戶名查找最後10個oracle查詢?
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查詢,但我該怎麼加盟,爲了得到一個用戶名和日期?
V $ SESSION維護用戶名。 http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_2088.htm – ukhardy 2011-03-21 20:51:51