DBA_DEPENDENCIES视图

最近有客户询问我某个表有没有在使用,有没有被别的对象使用到过,这个表不是很熟悉,而且命名规则看起来像是一个临时使用的表,通过PL/SQL DEVELOPER的referenced by查看确实没有。这是通过ui工具来查看,如果没有这些了工具该如何查看了,嘿嘿,oracle已经有了这样的系统表提供给我们了DBA_DEPENDENCIES。

SQL> select * from v$version;

BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for Linux: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production

SQL> desc dba_dependencies;
Name Type Nullable Default Comments
-------------------- ------------- -------- ------- ----------------------------------------------------------
OWNER VARCHAR2(30) Owner of the object
NAME VARCHAR2(30) Name of the object
TYPE VARCHAR2(17) Y Type of the object
REFERENCED_OWNER VARCHAR2(30) Y Owner of referenced object (remote owner if remote object)
REFERENCED_NAME VARCHAR2(64) Y Name of referenced object
REFERENCED_TYPE VARCHAR2(17) Y Type of referenced object
REFERENCED_LINK_NAME VARCHAR2(128) Y Name of dblink if this is a remote object
DEPENDENCY_TYPE VARCHAR2(4) Y

SQL>

咋样?一目了然了吧!

-The End-

你可能感兴趣的:(dba)