Oracle 视图 DBA_SQL_PLAN_DIR_OBJECTS 官方解释,作用,如何使用详细说明

本站中文解释

Oracle视图DBA_SQL_PLAN_DIR_OBJECTS显示SQL查询引用的大计划的目录路径下的相关对象的相关信息。它的数据以用户定义的表、视图、索引等形式存储在Oracle数据库目录上。

DBA_SQL_PLAN_DIR_OBJECTS视图用于查询大计划缓存中存储的用户定义对象信息,包括其属性、权限、最后使用时间等。通过这个视图可以了解哪些对象被存储在大计划目录中,、哪些对象可用,还有哪些对象已失效。

使用方法:

1.首先,我们可以查询DBA_SQL_PLAN_DIR_OBJECTS视图,可以得到有关用户定义对象放在大计划缓存中的相关信息:

SELECT * FROM DBA_SQL_PLAN_DIR_OBJECTS;

2.接着,可以根据需要过滤查询,以便查看存储在大计划缓存中的具体对象:

SELECT * FROM DBA_SQL_PLAN_DIR_OBJECTS
WHERE OWNER=’SCOTT’ AND OBJECT_NAME=’SALES’;

官方英文解释

DBA_SQL_PLAN_DIR_OBJECTS displays the objects created in the SQL plan directive.

Column Datatype NULL Description

DIRECTIVE_ID

NUMBER

The identifier of the SQL plan directive

OWNER

VARCHAR2(128)

The username of the owner of the object in the SQL plan directive

OBJECT_NAME

VARCHAR2(128)

The name of the object in the SQL plan directive

SUBOBJECT_NAME

VARCHAR2(128)

The name of the subobject (for example, column) in the SQL plan directive

OBJECT_TYPE

VARCHAR2(6)

The type of the subobject in the SQL plan directive

NUM_ROWS

NUMBER

The number of rows in the object when the directive is created

NOTES

XMLTYPE

Other notes about the object

See Also:

  • “DBA_SQL_PLAN_DIRECTIVES”

  • Oracle Database SQL Tuning
    Guide
    for more information about SQL plan directives


数据运维技术 » Oracle 视图 DBA_SQL_PLAN_DIR_OBJECTS 官方解释,作用,如何使用详细说明