Display all views on oracle database

安稳与你 提交于 2019-12-03 02:59:02

问题


Is there a way to display all the views currently set on an oracle database via sql developer?

Thanks.


回答1:


for all views (you need dba privileges for this query)

select view_name from dba_views

for all accessible views (accessible by logged user)

select view_name from all_views

for views owned by logged user

select view_name from user_views



回答2:


Open a new worksheet on the related instance (Alt-F10) and run the following query

SELECT view_name, owner
FROM sys.all_views 
ORDER BY owner, view_name



回答3:


SELECT * 
FROM DBA_OBJECTS  
WHERE OBJECT_TYPE = 'VIEW'



回答4:


You should definitely look at standard INFORMATION_SCHEMA views (they exists in any RDBMS, eg. Oracle, MySQL, SQL Server...), there are lot of information about your database.

Select names of all your views:

SELECT TABLE_NAME 
FROM INFORMATION_SCHEMA.VIEWS 


来源:https://stackoverflow.com/questions/13742717/display-all-views-on-oracle-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!