Create get_users_objects.sql

This commit is contained in:
Yacine31
2023-05-05 22:50:59 +02:00
parent 93400d204e
commit 6dc2ad67a9

21
get_users_objects.sql Normal file
View File

@@ -0,0 +1,21 @@
set pages 999 lines 200
col owner for a30
select * from
(select owner, object_type ,count(*) as object_count from dba_objects group by owner, object_type order by owner, object_type)
pivot
(
max(object_count)
for object_type in (
'TABLE',
'VIEW',
'INDEX',
'FUNCTION',
'LOB',
'PACKAGE',
'PROCEDURE',
'TRIGGER',
'SYNONYM'
)
)
order by owner;