{"id":618,"date":"2012-12-20T17:41:25","date_gmt":"2012-12-20T14:41:25","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=618"},"modified":"2012-12-20T17:41:53","modified_gmt":"2012-12-20T14:41:53","slug":"show-data-files-size-in-oracle","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/show-data-files-size-in-oracle\/","title":{"rendered":"Show Data Files Size in Oracle"},"content":{"rendered":"<p>If you want to show tablespace and datafile size, you can use below query. Also, you can add to procedure with schedule job for notification as mail.<\/p>\n<blockquote><p>\nSELECT a.tablespace_name, a.file_name, a.bytes allocated_bytes,<br \/>\nb.free_bytes<br \/>\nFROM dba_data_files a,<br \/>\n(SELECT file_id, SUM(bytes) free_bytes<br \/>\nFROM dba_free_space b GROUP BY file_id) b<br \/>\nWHERE a.file_id=b.file_id<br \/>\nORDER BY a.tablespace_name;\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>If you want to show tablespace and datafile size, you can use below query. Also, you can add to procedure with schedule job for notification as mail. SELECT a.tablespace_name, a.file_name, a.bytes allocated_bytes, b.free_bytes FROM dba_data_files a, (SELECT file_id, SUM(bytes) free_bytes FROM dba_free_space b GROUP BY file_id) b WHERE a.file_id=b.file_id ORDER BY a.tablespace_name;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,6],"tags":[14,90,32],"class_list":["post-618","post","type-post","status-publish","format-standard","hentry","category-administration","category-oracle-sql","tag-database-administration","tag-oracle","tag-oracle-administration"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-9Y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=618"}],"version-history":[{"count":2,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/618\/revisions"}],"predecessor-version":[{"id":620,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/618\/revisions\/620"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}