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 |
---|---|---|---|
|
|
The identifier of the SQL plan directive |
|
|
|
The username of the owner of the object in the SQL plan directive |
|
|
|
The name of the object in the SQL plan directive |
|
|
|
The name of the subobject (for example, column) in the SQL plan directive |
|
|
|
The type of the subobject in the SQL plan directive |
|
|
|
The number of rows in the object when the directive is created |
|
|
|
Other notes about the object |
See Also:
-
“DBA_SQL_PLAN_DIRECTIVES”
-
Oracle Database SQL Tuning
Guide for more information about SQL plan directives