Skip to content

Commit

Permalink
add ObjectName to db_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
misolt committed Jul 1, 2024
1 parent d09753e commit 3a66956
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
SELECT
A.con_id "ConId",
A.owner "Owner",
A.object_name "ObjectName",
A.object_type "ObjectType",
A.editionable "Editionable",
count(1) "Count"
Expand All @@ -24,12 +25,14 @@ WHERE A.owner NOT LIKE '%SYS'
GROUP BY
A.con_id,
A.owner,
A.object_name,
A.object_type,
A.editionable
UNION ALL (
SELECT
B.con_id "ConId",
'SYS' "Owner",
B.object_name "ObjectName",
'DIRECTORY' "ObjectType",
B.editionable "Editionable",
count(1) "Count"
Expand All @@ -40,13 +43,15 @@ UNION ALL (
GROUP BY
B.con_id,
B.owner,
B.object_name,
B.object_type,
B.editionable
)
UNION ALL (
SELECT
C.con_id "ConId",
C.owner "Owner",
C.object_name "ObjectName",
C.object_type "ObjectType",
C.editionable "Editionable",
count(1) "Count"
Expand All @@ -59,5 +64,6 @@ UNION ALL (
C.con_id,
C.owner,
C.editionable,
C.object_name,
C.object_type
)

0 comments on commit 3a66956

Please sign in to comment.