现在的位置: 首页 > 综合 > 正文

dba_dependencies视图的查询结果

2019年07月31日 ⁄ 综合 ⁄ 共 901字 ⁄ 字号 评论关闭
[oracle@rhel63single ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 13 09:11:24 2015

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


SQL> col owner format a15
SQL> col name format a15
SQL> col REFERENCED_NAME   format a30
SQL> col REFERENCED_OWNER format a16
SQL> col REFERENCED_LINK_NAME format a30
SQL> set line 200
SQL> select * from dba_dependencies where NAME LIKE '%V_SAL%';

OWNER           NAME            TYPE               REFERENCED_OWNER REFERENCED_NAME                REFERENCED_TYPE    REFERENCED_LINK_NAME           DEPENDENCY_TYPE 
--------------- --------------- ------------------ ---------------  ------------------------------ ------------------ ------------------------------ ---------------
SCOTT           V_SAL           VIEW               SCOTT            DEPT                           TABLE                                             HARD
SCOTT           V_SAL           VIEW               SCOTT            EMP                            TABLE                                             HARD
SYSTEM          SYN_V_SAL       SYNONYM            SCOTT            V_SAL                          VIEW                                              HARD

SQL> 

 

 

CREATE SYNONYM SYSTEM.SYN_V_SAL FOR SCOTT.V_SAL

 

 

抱歉!评论已关闭.