Skip to content

Commit a69fc87

Browse files
authored
Create 5-monitor-with-user-annotations-usage.sql
1 parent a52d28d commit a69fc87

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
REM Script for 23c: 5-monitor-with-user-annotations-usage.sql
2+
REM Use USER_ANNOTATIONS_USAGE to track the list of annotations and their usage across your schema objects
3+
4+
-- If the annotation is specified for a table column, view column, or domain column, the name of the column, filter on the column name otherwise on NULL
5+
-- in our case to obtain object-level annotations for table, index, domain and view, we filter on NULL
6+
7+
set lines 200
8+
set pages 200
9+
col object_name format a25
10+
col object_type format a15
11+
col annotation_name format a15
12+
col annotation_value format a25
13+
col column_name format a20
14+
15+
select object_name, object_type, annotation_name, annotation_value
16+
from user_annotations_usage
17+
where column_name is null order by 2,1;

0 commit comments

Comments
 (0)