是否有Oracle视图将列出给定视图,过程或函数的DDL引用的所有数据库对象?
因此,如果视图定义为:
CREATE OR REPLACE VIEW_B AS SELECT * FROM TABLE_A INNER JOIN VIEW_A
在此系统视图上运行查询:
SELECT REF_OBJECT_NAME,REF_OBJECT_TYPE FROM V$XXX WHERE OBJECT_NAME='VIEW_B'
会列出类似的东西:
REF_OBJECT_NAME REF_OBJECT_TYPE TABLE_A TABLE VIEW_A VIEW
尝试:
select * from dba_dependencies where owner = 'view owner' and name = 'view name';