Posted by David Platt on Monday, May 16, 2011,
In :
SQLScripts
A useful script for checking the size of tablespacesSET PAGESIZE 100COL "Tablespace" FOR a22COL "Used MB" FOR 99,999,999COL "Free MB" FOR 99,999,999COL "Total MB" FOR 99,999,999SELECT df.tablespace_name "Tablespace", totalusedspace "Used MB", (df.totalspace - tu.totalusedspace) "Free MB", df.totalspace "Total MB", round(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace)) "Pct. Free" FROM (SELECT tablespace_name, round(sum(bytes) / 1048576) To... Continue reading ...