Skip to content

Instantly share code, notes, and snippets.

View PrabhaAnde's full-sized avatar

Prabha Ande PrabhaAnde

View GitHub Profile
@rakeshsingh
rakeshsingh / Oracle Script - Check Tablespace Size.sql
Last active August 19, 2020 13:42
Oracle Script - Check Tablespace Size
SELECT /* + RULE */
df.tablespace_name AS "Tablespace"
,df.bytes / (1024 * 1024 * 1024) AS "Size (GB)"
,Trunc(fs.bytes / (1024 * 1024 * 1024)) AS "Free (GB)"
FROM (
SELECT tablespace_name
,Sum(bytes) AS bytes
FROM dba_free_space
GROUP BY tablespace_name
) fs