对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"
ColumnDatatypeDescriptionFROM_ADDRESSRAW(4 | 8)Address of a procedure, package, or cursor that is currently loaded in the shared poolFROM_HASHNUMBERHash 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 onTO_ADDRESSRAW(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_HASHNUMBERHash 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_TYPENUMBERType 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


0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 17个月宝宝夜奶怎么办 小孩吃积食了吐怎么办 11个宝宝不会爬怎么办 5岁宝宝严重挑食怎么办 孩子吃菜口味重怎么办? 孩子挑食不吃菜不吃肉怎么办 微信新的朋友回复频繁怎么办 忘了闺蜜生日怎么办 把闺蜜生日忘了怎么办 忘了闺蜜的生日怎么办 一岁宝宝不吃菜怎么办 幼儿园教案虫子爬进耳朵怎么办 鼻子出血怎么办幼儿说课 英语记不住发音不准怎么办 幼儿园孩子拼音记不住怎么办 孩子总是记不住东西怎么办 走丢了怎么办小班教案 走丢了怎么办小班社会 数学加减个十分不清怎么办 孩子b和d分不清怎么办 小孩b和d分不清怎么办 高一的数学不会怎么办 农村小孩到市里上学怎么办 和外国人打官司输了怎么办 碰见爱说你的领导怎么办 小孩脾气爆一句话就生气怎么办 小孩眼睛哭肿了怎么办 大人吵架吓到宝宝了怎么办 小孩晚上睡觉不踏实怎么办 二宝美籍大宝怎么办 小孩一洗澡就哭怎么办 孩子去外地上学学籍怎么办 非婚生子父亲想要孩子怎么办 非婚生子孩子父亲找不到了怎么办 3岁半宝宝认字怎么办 上课注意力不集中老是发呆怎么办 海绵宝宝吃了会怎么办 宝宝误吞李子核怎么办 24个月宝宝不愿意说话怎么办 孩子凉着肚子吐怎么办 教宝宝说话不会说怎么办