We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ba6761 commit 3978d95Copy full SHA for 3978d95
oracle_table_space_for_schema.sql
@@ -13,7 +13,9 @@
13
-- https://www.linkedin.com/in/HariSekhon
14
--
15
16
--- Oracle - Show Tables' Space Used vs Free and Percentage Percentage where they are at lease 20% utilized
+-- Oracle - Show Tables' Space Used vs Free and Percentage Percentage
17
+--
18
+-- for tables over 20% utilized in a given tablespace
19
20
-- Tested on Oracle 19c
21
@@ -46,7 +48,7 @@ WHERE
46
48
AND
47
49
t.num_rows > 0
50
- -- TUNE: currently only showing tables with over 20% free space
51
+ -- TUNE: currently only showing tables over 20% utilized
52
((t.blocks * 8 / 1024) - (t.num_rows * t.avg_row_len / 1024 / 1024)) / (t.blocks * 8 / 1024) > 0.2
53
54
t.owner = 'USERS' -- XXX: Change this to your owner schema
0 commit comments