How to find out when a particular table was created in Oracle?

前端 未结 5 832
Happy的楠姐
Happy的楠姐 2020-12-04 16:27

In Oracle, is there a way to find out when a particular table was created?

Similarly, is there a way to find out when a particular row was inserted/last updated?

5条回答
  •  鱼传尺愫
    2020-12-04 17:08

    You can query the data dictionary/catalog views to find out when an object was created as well as the time of last DDL involving the object (example: alter table)

    select * 
      from all_objects 
     where owner = ''
       and object_name = ''
    

    The column "CREATED" tells you when the object was created. The column "LAST_DDL_TIME" tells you when the last DDL was performed against the object.

    As for when a particular row was inserted/updated, you can use audit columns like an "insert_timestamp" column or use a trigger and populate an audit table

提交回复
热议问题