Friday, October 3, 2008

DBA_TAB_MODIFICATIONS

DBA_TAB_MODIFICATIONS describes modifications to all tables in the database that have been modified since the last time statistics were gathered on the tables. Its columns are the same as those in "ALL_TAB_MODIFICATIONS".

Related Views

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

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

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

TRUNCATED

VARCHAR2(3)

Indicates whether the table has been truncated since the last analyze (YES) or not (NO)

DROP_SEGMENTS

NUMBER

Number of partition and subpartition segments dropped since the last analyze

Note:

1. This view is populated only for tables with the MONITORING attribute. It is intended for statistics collection over a long period of time. For performance reasons, the Oracle Database does not populate this view immediately when the actual modifications occur. Run the FLUSH_DATABASE_MONITORING_INFO procedure in the DBMS_STATS PL/SQL package to populate this view with the latest information. The ANALYZE_ANY system privilege is required to run this procedure.

2.

select table_owner, table_name, inserts, updates, deletes, timestamp, truncated, drop_segments

from sys.DBA_TAB_MODIFICATIONS

where table_owner = 'SDE';

TABLE_

OWNER

TABLE_NAME

INSERTS

UPDATES

DELETES

TIMESTAMP

TRUNCATED

DROP_SEGMENTS

SDE

GDB_OBJECTCLASSES

20

0

8

2008-07-14 10:00:06 PM

NO

0

SDE

COLUMN_REGISTRY

251

11

238

2008-09-23 10:00:06 PM

NO

0

SDE

GEOMETRY_COLUMNS

7

0

8

2008-09-23 10:00:06 PM

NO

0

SDE

TABLE_REGISTRY

8

15

7

2008-09-23 10:00:06 PM

NO

0

SDE

GDB_USERMETADATA

4

0

4

2008-10-02 10:00:06 PM

NO

0

Oracle data dictionary views

Oracle dynamic performance views

No comments:

Post a Comment