Toad 如何通过 pressiong F4 从包中找到所有依赖项?

Toad how to find all dependencies from package by pressiong F4?

我使用此脚本从 my_package:

中查找所有依赖项
select * from all_dependencies where NAME='PK_PACKAGE'

但它 returns 就是这样 :

NAME    TYPE    REFERENCED_OWNER    REFERENCED_NAME REFERENCED_TYPE REFERENCED_LINK_NAME    DEPENDENCY_TYPE
PK_PACKAGE  PACKAGE SYS STANDARD    PACKAGE HARD    

但是当我在 TOAD 上的包上按 F4 时,它会带来所有依赖项。那么蟾蜍如何找到它们。其中 table?

提前致谢

PK_package 最有可能是 PK_PACKAGE(全部大写)。

[编辑,经过一些研究]

如果您 - 在 TOAD 中 - 转到 [数据库菜单 - 假脱机 SQL - 假脱机 SQL 到屏幕],然后单击该包上模式浏览器中的 "Deps (uses)" 选项卡,您会得到这样的东西:

Session: SCOTT@ORCL
Timestamp: 09:45:50.824
Select a.object_id, a.object_type, a.object_name,
  b.owner ref_owner, b.object_type ref_type, b.object_name ref_name, b.object_id ref_id, b.status ref_status
from   sys.ALL_OBJECTS a,
       sys.ALL_OBJECTS b,
      (Select object_id, referenced_object_id
       from   (select object_id, referenced_object_id
               from   public_dependency
               where  referenced_object_id <> object_id) pd
       start with  object_id = :ObjID
       connect by  prior referenced_object_id =  object_id) c
where a.object_id = c.object_id
and   b.object_id = c.referenced_object_id
and   a.owner not in ('SYS', 'SYSTEM')
and   b.owner not in ('SYS', 'SYSTEM')
and   a.object_name <> 'DUAL'
and   b.object_name <> 'DUAL'
:ObjID(INTEGER,IN/OUT)=2357633

那将是 鼠标点击后的查询 所以 - 看看它,也许您会发现有用的东西。