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

DBA_TAB_HISTOGRAMS

DBA_TAB_HISTOGRAMS describes histograms on columns of all tables in the database. Its columns are the same as those in "ALL_TAB_HISTOGRAMS".

Related Views

· ALL_TAB_HISTOGRAMS describes histograms on tables and views accessible to the current user.

· USER_TAB_HISTOGRAMS describes histograms on all tables and views owned by the current user. This view does not display the OWNER column.

Note:

These views are populated only if you collect statistics on the index using the ANALYZE statement or the DBMS_STATS package.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

Owner of the table

TABLE_NAME

VARCHAR2(30)

Name of the table

COLUMN_NAME

VARCHAR2(4000)

Column name or attribute of the object type column

ENDPOINT_NUMBER

NUMBER

Histogram bucket number

ENDPOINT_VALUE

NUMBER

Normalized endpoint value for this bucket

ENDPOINT_ACTUAL_VALUE

VARCHAR2(1000)

Actual (not normalized) string value of the endpoint for this bucket

Note:

1.

select * from DBA_TAB_HISTOGRAMS where table_name = 'SDE_LOGPOOL_968';

OWNER

TABLE_NAME

COLUMN_NAME

ENDPOINT_NUMBER

ENDPOINT_VALUE

ENDPOINT_ACTUAL_VALUE

SDE

SDE_LOGPOOL_968

LOGFILE_DATA_ID

6817

2147483639

SDE

SDE_LOGPOOL_968

SDE_ROW_ID

0

100

SDE

SDE_LOGPOOL_968

SDE_ROW_ID

1

145747

Oracle data dictionary views

Oracle dynamic performance views

DBA_TAB_HISTGRM_PENDING_STATS

DBA_TAB_HISTGRM_PENDING_STATS describes pending statistics for tables, partitions, and subpartitions in the database. Its columns are the same as those in "ALL_TAB_HISTGRM_PENDING_STATS".

Related Views

· ALL_TAB_HISTGRM_PENDING_STATS describes pending statistics for tables, partitions, and subpartitions accessible to the current user.

· USER_TAB_HISTGRM_PENDING_STATS describes pending statistics for tables, partitions, and subpartitions owned by the current user. This view does not have the OWNER column.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

Owner of the table

TABLE_NAME

VARCHAR2(30)

Name of the table

PARTITION_NAME

VARCHAR2(30)

Name of the partition

SUBPARTITION_NAME

VARCHAR2(30)

Name of the subpartition

COLUMN_NAME

VARCHAR2(30)

Name of the column

ENDPOINT_NUMBER

NUMBER

Endpoint number

ENDPOINT_VALUE

NUMBER

Normalized endpoint value

ENDPOINT_ACTUAL_VALUE

VARCHAR2(1000)

Actual endpoint value

Oracle data dictionary views

Oracle dynamic performance views