행위

오라클 테이블 최종 입력수정일시

DB CAFE

thumb_up 추천메뉴 바로가기


-- 테이블 최종 입력/수정/삭제 일시

  • ALL_TAB_MODIFICATIONS는 마지막 통계가 테이블에 수집 된 이후 수정 된 현재 사용자가 액세스 할 수있는 테이블정보 임.
  • MONITORING 속성이있는 테이블만 가능
  • 오랜 기간에 걸친 통계 수집을 위해 고안됨.
  • 성능상의 이유로 Oracle Database는 실제 수정이 발생할 때 즉시 채우지 않음.
 : DIMS_STATSPL / SQL 패키지에서 FLUSH_DATABASE_MONITORING_INFO 프로시저를 실행  최신 정보로 갱신 할수 있음.
SELECT *
 FROM ALL_TAB_MODIFICATIONS
WHERE TABLE_OWNER = 'BABYMEAL'
  AND TABLE_NAME NOT LIKE 'BIN%'



(원문)

ALL_TAB_MODIFICATIONS 438/1627 ALL_TAB_MODIFICATIONS describes tables accessible to the current user that have been modified since the last time statistics were gathered on the tables.


Related Views

DBA_TAB_MODIFICATIONS provides such information for all tables in the database.

USER_TAB_MODIFICATIONS provides such information for tables owned by the current user. This view does not display the TABLE_OWNER column.

Note:

These views are populated only for tables with theMONITORINGattribute. They are intended for statistics collection over a long period of time. For performance reasons, the Oracle Database does not populate these views immediately when the actual modifications occur. Run theFLUSH_DATABASE_MONITORING_INFOprocedure in theDIMS_STATSPL/SQL package to populate these views with the latest information. TheANALYZE_ANYsystem privilege is required to run this procedure.


Column Datatype NULL Description TABLE_OWNER VARCHAR2(30) Owner of the modified table. TABLE_NAME VARCHAR2(30) Name of the modified table PARTITION_NAME VARCHAR2(30) Name of the modified partition SUBPARTITION_NAME VARCHAR2(30) Name of the modified subpartition INSERTS NUMBER Approximate number of inserts since the last time statistics were gathered UPDATES NUMBER Approximate number of updates since the last time statistics were gathered DELETES NUMBER Approximate number of deletes since the last time statistics were gathered TIMESTAMP DATE Indicates the last time the table was modified DROP_SEGMENTS NUMBER Number of partition and subpartition segments dropped since the last analyze