Oracle 数据库对象 - 上次 DDL 与 TIMESTAMP

Ove*_*www 3 database oracle ddl timestamp oracle11g

我试图确定哪个日期将反映在Oracle 11g数据库上修改对象的时间。

last_ddl_time 或时间戳

I have read a number of threads but can't find a clear cut answer. If I am understanding correctly, there are certain events that will trigger the last DDL date to change but not the TIMESTAMP?

Could anyone elaborate. I have a beginner level understanding so patience is appreciated.

Thanks

kfi*_*ity 5

是的 -查看文档

LAST_DDL_TIME  Timestamp for the last modification of the object and dependent objects resulting from a DDL statement (including grants and revokes)
TIMESTAMP      Timestamp for the specification of the object (character data)
Run Code Online (Sandbox Code Playgroud)

TIMESTAMP 仅用于对象本身 - 因此,如果您创建一个表,则只有在更改表中的列或表本身的某些其他属性时才会更新。

LAST_DDL_TIME 包括影响对象的任何更改,包括对依赖对象的更改。因此,如果您向表添加约束或授权,LAST_DDL_TIME 将更新该表,但 TIMESTAMP 不会。

尝试使用一些不同的 DDL 语句。