DBA_ASSOCIATIONS
describes all user-defined statistics in the database. Its columns are the same as those in ALL_ASSOCIATIONS
.
· ALL_ASSOCIATIONS
describes user-defined statistics associated with objects accessible to the current user.
· USER_ASSOCIATIONS
describes user-defined statistics associated with objects owned by the current user.
Column | Datatype | NULL | Description |
|
|
| Owner of the object for which the association is being defined |
|
|
| Name of the object for which the association is being defined |
|
| | Column name in the object for which the association is being defined |
|
| | Kind of object with which statistics are being associated: column, type, package or function, indextype, or domain index. |
|
| | Owner of the statistics type |
|
| | Name of statistics type that contains the cost, selectivity or statistics functions |
|
| | Default selectivity of the object, if any |
|
| | Default CPU cost of the object, if any |
|
| | Default I/O cost of the object, if any |
|
| | Default networking cost of the object, if any |
|
| | Identifies the version number of the |
|
| | Specifies whether the object is system-managed or user-managed |
1. Query the user-defined statistics in the database.
select * from DBA_ASSOCIATIONS;
OBJECT_ OWNER | OBJECT_NAME | COLUMN_ NAME | OBJECT_ TYPE | STATSTYPE_ SCHEMA | STATSTYPE_ NAME | DEF_ SELECTIVITY | DEF_ CPU_ COST | DEF_ IO_ COST | DEF_ NET_ COST | INTERFACE_ VERSION |
CTXSYS | CTXXPATH | | INDEXTYPE | CTXSYS | TEXTOPTSTATS | | | | | 2 |
CTXSYS | CTX_CONTAINS | | PACKAGE | CTXSYS | TEXTOPTSTATS | | | | | 2 |
CTXSYS | CTX_XPCONTAINS | | PACKAGE | CTXSYS | TEXTOPTSTATS | | | | | 2 |
CTXSYS | CTXRULE | | INDEXTYPE | | | | 1 | | | 0 |
CTXSYS | CTX_MATCHES | | PACKAGE | | | | 1000 | 4294967295 | | 0 |
CTXSYS | CONTEXT | | INDEXTYPE | CTXSYS | TEXTOPTSTATS | | | | | 2 |
MDSYS | SPATIAL_INDEX | | INDEXTYPE | MDSYS | SDO_STATISTICS | | | | | 2 |
MDSYS | PRVT_IDX | | PACKAGE | MDSYS | SDO_STATISTICS | | | | | 2 |
MDSYS | SDO_3GL | | PACKAGE | MDSYS | SDO_STATISTICS | | | | | 2 |
ORDSYS | ORDIMAGEINDEX | | INDEXTYPE | ORDSYS | ORDIMAGEINDEXSTATS | | | | | 2 |
XDB | XMLINDEX | | INDEXTYPE | XDB | XMLIDXSTATSMETHODS | | | | | 2 |
Oracle data dictionary views
Oracle dynamic performance views
No comments:
Post a Comment