Oracle DB audit trails

梦想的初衷 提交于 2019-12-12 08:59:08

问题


Someone (or something) actually updated a value in my table wrongly. I am trying to find out when the update happened. Unfortunately, there is no audit trigger being created for the said table.

Is there other ways or logs that I can check and verify what SQL statements were run at what time?

I had tried to look at v$sql table, but I don't think that table is capturing all the SQL statements being performed on the database. E.g. I specifically did an UPDATE statement, but it is not captured in the v$sql table.

Can I look at the redo.log? However, I do not know how to interpret this log.


回答1:


Your only real option is logminer, which isn't for the faint of heart.

The documentation is here: http://docs.oracle.com/cd/B19306_01/server.102/b14215/logminer.htm

v$sql rows may get aged out after a while. Did you account for case sensitivity when looking in v$sql?

select * from v$sql where upper(sql_fulltext) like '%UPDATE%';


来源:https://stackoverflow.com/questions/10734783/oracle-db-audit-trails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!