对V$OBJECT_DEPENDENCY视图的说明
来源:互联网 发布:国外的交流软件 编辑:程序博客网 时间:2024/06/01 10:47
V$OBJECT_DEPENDENCY
V$OBJECT_DEPENDENCY
displays the objects depended on by a package, procedure, or cursor that is currently loaded in the shared pool. For example, together withV$SESSION
and V$SQL
, this view (指的是V$OBJECT_DEPENDENCY
)can be used to determine which tables are used in the SQL statement that a user is currently executing.
译文:
V$OBJECT_DEPENDENCY
显示当前(加载)存在与shared pool中的package, procedure和 cursor这三种library cache object所依赖(使用)的library cache object有哪些。例如,配合V$SESSION和V$SQL这两个视图,
V$OBJECT_DEPENDENCY视图就可以查出用户(利用
V$SESSION
查出用户信息)正在执行的SQL语句(
)所要用到的表有哪些。利用
V$SQL
查出
信息SQL语句
See Also:
"V$SESSION" and"V$SQL"FROM_ADDRESS
RAW(4 | 8)
Address of a procedure, package, or cursor that is currently loaded in the shared poolFROM_HASH
NUMBER
Hash value of a procedure, package, or cursor that is currently loaded in the shared pool
TO_NAME
VARCHAR2(1000)
Name of the object that is depended on
TO_ADDRESS
RAW(4 | 8)
Address of the object that is depended on. These can be used to look up more information on the object inV$DB_OBJECT_CACHE
.TO_HASH
NUMBER
Hash value of the object that is depended on. These can be used to look up more information on the object inV$DB_OBJECT_CACHE
.TO_TYPE
NUMBER
Type of the object that is depended on注释说明:
开头为from的两个列描述的是package, procedure和 cursor这三种library cache object,而
开头为to的四个列描述的是package, procedure和 cursor这三种library cache object所依赖(使用)的library cache object。
如TO_HASH
列的上述说明“Hash value of the object that is depended on. These can be used to look up more information on the object inV$DB_OBJECT_CACHE
.”里说到:package, procedure和 cursor这三种library cache object所依赖(使用)的对象也在V$DB_OBJECT_CACHE
里,而 V$DB_OBJECT_CACHE
描述的就是library cache object,所以package, procedure和 cursor这三种library cache object所依赖(使用)的对象就是为library cache object。
例子:
select * from emp这个SQL语句(有两个子游标)使用(依赖)到表EMP:
SQL> select a.*,to_char(to_hash,'xxxxxxxxxx') Hex_HASH_VALUE
2 from V$OBJECT_DEPENDENCY a where to_name='EMP';
FROM_ADD FROM_HASH TO_OWNER TO_NAME TO_ADDRE TO_HASH TO_TYPE HEX_HASH_VALUE
-------- ---------- -------------------- -------------------- -------- ---------- ---------- -----------
52D9EA28 2648707557 SCOTT EMP 52D9DEBC 828228010 2 315dc1aa
52D9EA28 2648707557 EYGLE EMP 52D82E58 1930491453 2 7310f63d
参见:http://blog.csdn.net/haiross/article/details/10069071
- 对V$OBJECT_DEPENDENCY视图的说明
- 对视图V$PARAMETER字段的说明
- 对视图v$sql_shared_cursor的说明
- 对V$PARAMETER的说明
- V$ACTIVE_SESSION_HISTORY视图的列说明
- V$ACTIVE_SESSION_HISTORY视图的列说明
- 视图 v$session & v$process 字段说明
- Oracle v$session_longops 视图说明
- Oracle v$session_longops 视图说明
- ORACLE V$SQL视图说明
- ORACLE V$SQL视图说明
- v视图的授权
- 对视图V$SESSION_WAIT和V$PX_SESSION的部分字段解释
- V$session 视图相关字段说明
- 视图 v$sql,v$sqlarea,$sqltext,v$sqltext_with_newlines 的差异
- Oracle的v$动态视图
- V$License视图的内容。
- V$ACTIVE_SESSION_HISTORY视图的使用
- 将OpenGL代码移植成OpenGLES
- Android Service学习之IntentService 深入分析
- 理解对象、属性和方法
- 用switch判断月份
- Android音量调节两种方式
- 对V$OBJECT_DEPENDENCY视图的说明
- ABAP动态内标的实现和常见使用方法,问题。
- 波特率设置
- JDBC在ID自增的情况下的插入语句
- 当陷进慢性质的困难处境的时候,该如何做?
- 调用函数输出星号
- BOTTON_1
- Java和PHP在Web开发方面的比较
- 《Effective C++》 Reading Note 2