oracle 找出谁以及如何最后更新表格?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11207171/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 00:55:12  来源:igfitidea点击:

Find out who and how last updated the table?

oracleddl

提问by Yegoshin Maxim

I need to find out who executed last alter tablestatement on the certain table and what was the statement itself. Using "Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod"

我需要找出谁alter table在某个表上执行了最后一条语句以及语句本身是什么。使用“Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod”

I found the date of last ddl modification:

我找到了上次 ddl 修改的日期:

select last_ddl_time from dba_objects where object_name = 'table1'

回答by Rob van Laarhoven

If auditing is not enabled you might have to dive into logminer

如果未启用审计,您可能需要深入研究logminer