Wednesday, September 17, 2008

TAB

TAB is included for compatibility. Oracle recommends that you do not use this view.

Oracle data dictionary views

Oracle dynamic performance views

TABQUOTAS

TABQUOTAS is included for compatibility. Oracle recommends that you do not use this view.

Oracle data dictionary views

Oracle dynamic performance views

TABS

TABS is a synonym for USER_TABLES.

Oracle data dictionary views

Oracle dynamic performance views

TRUSTED_SERVERS

TRUSTED_SERVERS displays whether a server is trusted or untrusted.

Column

Datatype

NULL

Description

TRUST

VARCHAR2(9)

Trustedness of the server listed. Values can be TRUSTED or UNTRUSTED servers which are not listed in the NAME column have opposite trustedness.

NAME

VARCHAR2(128)

Server name. Can be a specific server name or ALL for all servers.

The following table shows examples of the values returned depending on the status of the servers.

Condition (If . . . )

TRUSTED column

NAME column

... all servers are trusted

Trusted

ALL

... no servers are trusted

Untrusted

ALL

... all servers except DB1 are trusted

Untrusted

DB1

... all servers except DB1 are untrusted

Trusted

DB1

Note:

1.

select * from TRUSTED_SERVERS;

TRUST

NAME

Trusted

All

Oracle data dictionary views

Oracle dynamic performance views

DBA_MVIEW_AGGREGATES

DBA_MVIEW_AGGREGATES describes the grouping functions (aggregated measures) that appear in the SELECT list of all aggregated materialized view in the database. Its columns are the same as those in "ALL_MVIEW_AGGREGATES".

Related Views

· ALL_MVIEW_AGGREGATES describes the grouping functions (aggregate operations) that appear in the SELECT list of materialized aggregate views accessible to the current user.

· USER_MVIEW_AGGREGATES describes all such grouping functions defined for all materialized views owned by the current user.

All three views exclude materialized views that reference remote tables or that include references to a nonstatic value such as SYSDATE or USER. These views also exclude materialized views that were created as "snapshots" prior to Oracle8i and that were never altered to enable query rewrite.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

NOT NULL

Owner of the materialized view

MVIEW_NAME

VARCHAR2(30)

NOT NULL

Name of the materialized view

POSITION_IN_SELECT

NUMBER

NOT NULL

Ordinal position of this aggregation within the SELECT list. For the position of nonaggregate elements of the select list, see "ALL_MVIEW_KEYS".

CONTAINER_COLUMN

VARCHAR2(30)

NOT NULL

Name of this column in the container table

AGG_FUNCTION

VARCHAR2(8)

Aggregation function

DISTINCTFLAG

VARCHAR2(1)

Whether this aggregation is distinct (Y | N)

MEASURE

LONG

SQL text of the measure, excluding the aggregation function. Equal to * for COUNT(*).

Oracle data dictionary views

Oracle dynamic performance views

DBA_MVIEW_ANALYSIS


DBA_MVIEW_ANALYSIS describes all materialized views in the database that potentially support query rewrite and that provide additional information for analysis by applications. Its columns are the same as those in "ALL_MVIEW_ANALYSIS".
Note:
This view excludes materialized views that reference remote tables or that include references to non-static values such as SYSDATE or USER. This view also excludes materialized views that were created as snapshots prior to Oracle8i and that were never altered to enable query rewrite.
Related Views
· ALL_MVIEW_ANALYSIS describes the materialized views accessible to the current user. It provides additional information for analysis by applications. Minimal information is displayed for materialized views that do not support query rewrite (such as materialized views with remote master tables or nondeterministic functions).
· USER_MVIEW_ANALYSIS describes all such materialized views owned by the current user.
Note:
All of the information in these views is also displayed in ALL_MVIEWS and its related views. Oracle recommends that you refer to ALL_MVIEWS for this information instead of these views.
Column
Datatype
NULL
Description
OWNER
VARCHAR2(30)
NOT NULL
Owner of the materialized view
MVIEW_NAME
VARCHAR2(30)
NOT NULL
Name of the materialized view
MVIEW_TABLE_OWNER
VARCHAR2(30)
NOT NULL
Owner of the container table (see next column)
CONTAINER_NAME
VARCHAR2(30)
Name of the internal container in which the materialized view data is held. Normally this is the same as MVIEW_NAME. For materialized views created prior to Oracle8i, the Oracle Database attaches the 6-byte prefix SNAP$_. If MVIEW_NAME has more than 19 bytes, the Oracle Database truncates the name to 19 bytes and adds a 4-byte sequence number as a suffix to produce a nonambiguous CONTAINER_NAME.
LAST_REFRESH_SCN
NUMBER
System change number (SCN) of the last refresh operation
LAST_REFRESH_DATE
DATE
SYSDATE of the last refresh
REFRESH_METHOD
VARCHAR2(8)
Default refresh method: FORCE, FAST, COMPLETE, or NONE
SUMMARY
VARCHAR2(1)
Whether this materialized view includes a GROUP BY clause or aggregation (Y | N)
FULLREFRESHTIM
NUMBER
Approximate refresh time, in seconds, for full refresh (defined only when SUMMARY = Y)
INCREFRESHTIM
NUMBER
Approximate refresh time, in seconds, for fast refresh (defined only when SUMMARY = Y)
CONTAINS_VIEWS
VARCHAR2(1)
Whether this materialized view contains a view in its definition (Y | N)
UNUSABLE
VARCHAR2(1)
Whether this materialized view is UNUSABLE (inconsistent data) (Y | N). A materialized view can be UNUSABLE if a system failure occurs during a full refresh.
RESTRICTED_SYNTAX
VARCHAR2(1)
Whether this materialized view had a restriction in its defining query that limits the use of query rewrite (Y | N). More complete information is provided by the REWRITE_CAPABILITY column of the ALL_, DBA_, and USER_MVIEWS views.
INC_REFRESHABLE
VARCHAR2(1)
Whether this materialized view can be fast refreshed (Y | N)
KNOWN_STALE
VARCHAR2(1)
Whether the data contained in the materialized view is known to be inconsistent with the master table data because that has been updated since the last successful refresh (Y | N)
INVALID
VARCHAR2(1)
Whether this materialized view is in an invalid state (inconsistent metadata) (Y | N)
REWRITE_ENABLED
VARCHAR2(1)
Whether this materialized view is currently enabled for query rewrite (Y | N)
QUERY_LEN
NUMBER
Length (in bytes) of the query field
QUERY
LONG
SELECT expression of the materialized view definition
REVISION
NUMBER
Reserved for internal use

Oracle data dictionary views


More Oracle DBA tips, please visit Oracle DBA Tips 

DBA_MVIEW_COMMENTS

DBA_MVIEW_COMMENTS displays comments on all materialized views in the database. Its columns are the same as those in ALL_MVIEW_COMMENTS.

Related Views

· ALL_MVIEW_COMMENTS displays comments on the materialized views accessible to the current user.

· USER_MVIEW_COMMENTS displays comments on the materialized views owned by the current user. This view does not display the OWNER column.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

NOT NULL

Owner of the materialized view

MVIEW_NAME

VARCHAR2(30)

NOT NULL

Name of the materialized view

COMMENTS

VARCHAR2(4000)

Comment on the materialized view

Oracle data dictionary views

Oracle dynamic performance views

DBA_MVIEW_DETAIL_PARTITION

DBA_MVIEW_DETAIL_PARTITION displays freshness information for all materialized views in the database, with respect to a PCT detail partition. Its columns are the same as those in "ALL_MVIEW_DETAIL_PARTITION".

Related Views

· ALL_MVIEW_DETAIL_PARTITION displays the freshness information of the materialized views, with respect to a PCT detail partition, accessible to the current user.

· USER_MVIEW_DETAIL_PARTITION displays freshness information for all materialized views, with respect to a PCT detail partition, owned by the current user.

Column

Datatype

NULL

Description

OWNER

VARCHAR2(30)

NOT NULL

Name of the owner of the materialized view

MVIEW_NAME

VARCHAR2(30)

NOT NULL

Name of the materialzed view

DETAILOBJ_OWNER

VARCHAR2(30)

NOT NULL

Name of the owner of the detail object

DETAILOBJ_NAME

VARCHAR2(30)

NOT NULL

Name of the detail object

DETAIL_PARTITION_NAME

VARCHAR2(30)

Name of the detail object partition

DETAIL_PARTITION_POSITION

NUMBER

Position of the detail object partition

FRESHNESS

CHAR(5)

Freshness state (FRESH, STALE, UNKNOWN, NA, and so on)

Oracle data dictionary views

Oracle dynamic performance views