Wednesday, December 10, 2008

DBA_REFS

DBA_REFS describes the REF columns and REF attributes in object type columns of all the objects in the database. Its columns are the same as those in "ALL_REFS".

Related Views

· ALL_REFS describes the REF columns and REF attributes in object type columns accessible to the current user.

· USER_REFS describes the REF columns and REF attributes in object type columns 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 table

TABLE_NAME

VARCHAR2(30)

NOT NULL

Name of the table

COLUMN_NAME

VARCHAR2(4000)

Name of the REF column or attribute. If it is not a top-level attribute, the value of COLUMN_NAME should be a path name starting with the column name.

WITH_ROWID

VARCHAR2(3)

Indicates whether the REF value is stored with ROWID (YES) or not (NO)

IS_SCOPED

VARCHAR2(3)

Indicates whether the REF column is scoped (YES) or not (NO)

SCOPE_TABLE_OWNER

VARCHAR2(30)

Owner of the scope table, if it exists and is accessible by the user

SCOPE_TABLE_NAME

VARCHAR2(30)

Name of the scope table, if it exists and is accessible by the user

OBJECT_ID_TYPE

VARCHAR2(33)

Indicates whether the object ID (OID) is USER-DEFINED or SYSTEM GENERATED

Note:

1. select * from DBA_REFS;

OWNER

TABLE_

NAME

COLUMN_

NAME

WITH_

ROWID

IS_

SCOPED

SCOPE_

TABLE_

OWNER

SCOPE_

TABLE_

NAME

OBJECT_

ID_

TYPE

XDB

XDB$ALL_MODEL

"XMLDATA"."PARENT_SCHEMA"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANY

"XMLDATA"."PROPERTY"."PARENT_SCHEMA"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANY

"XMLDATA"."PROPERTY"."PROPREF_REF"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANY

"XMLDATA"."PROPERTY"."SMPL_TYPE_DECL"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANY

"XMLDATA"."PROPERTY"."TYPE_REF"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANYATTR

"XMLDATA"."PROPERTY"."PARENT_SCHEMA"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANYATTR

"XMLDATA"."PROPERTY"."PROPREF_REF"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANYATTR

"XMLDATA"."PROPERTY"."SMPL_TYPE_DECL"

YES

NO

SYSTEM GENERATED

XDB

XDB$ANYATTR

"XMLDATA"."PROPERTY"."TYPE_REF"

YES

NO

SYSTEM GENERATED

Oracle data dictionary views

Oracle dynamic performance views

No comments:

Post a Comment