收集统计信息不会更新DDL时间
SQL> select owner,object_name,created,last_ddl_time from dba_objects a where a.object_name='TEST200' and owner='TLCBUSER';
OWNER OBJECT_NAME CREATED LAST_DDL_TIME
------------------------------ ------------------------------ ------------------- -------------------
TLCBUSER TEST200 2018-05-22 17:10:58 2018-05-22 17:11:48
SQL> BEGIN
DBMS_STATS.GATHER_TABLE_STATS(ownname => 'TLCBUSER',
tabname => 'TEST200',
estimate_percent => 100,
method_opt => 'for all columns size repeat',
no_invalidate => FALSE,
degree => 8,
cascade => TRUE);
END; 2 3 4 5 6 7 8 9
10 /
PL/SQL procedure successfully completed.
SQL> select owner,object_name,created,last_ddl_time from dba_objects a where a.object_name='TEST200' and owner='TLCBUSER';
OWNER OBJECT_NAME CREATED LAST_DDL_TIME
------------------------------ ------------------------------ ------------------- -------------------
TLCBUSER TEST200 2018-05-22 17:10:58 2018-05-22 17:11:48