公告
财富商城
积分规则
提问
发文
2020-05-14 13:32发布
老娘就宠你
Is there a way to display all the views currently set on an oracle database via sql developer?
Thanks.
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
Open a new worksheet on the related instance (Alt-F10) and run the following query
(Alt-F10)
SELECT view_name, owner FROM sys.all_views ORDER BY owner, view_name
SELECT * FROM DBA_OBJECTS WHERE OBJECT_TYPE = 'VIEW'
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
最多设置5个标签!
for all views (you need dba privileges for this query)
for all accessible views (accessible by logged user)
for views owned by logged user
Open a new worksheet on the related instance
(Alt-F10)
and run the following queryYou 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: