Display all views on oracle database

2020-05-14 13:32发布

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

Thanks.

4条回答
Rolldiameter
2楼-- · 2020-05-14 14:11

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
查看更多
可以哭但决不认输i
3楼-- · 2020-05-14 14:20

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
查看更多
够拽才男人
4楼-- · 2020-05-14 14:28
SELECT * 
FROM DBA_OBJECTS  
WHERE OBJECT_TYPE = 'VIEW'
查看更多
唯我独甜
5楼-- · 2020-05-14 14:29

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 
查看更多
登录 后发表回答