SELECT TABLESPACE_NAME,TO_CHAR(SUM(NVL(BYTES,0))/1024/1024/1024, '99,999,990.99') AS "USED SPACE(IN GB)"
FROM USER_SEGMENTS
GROUP BY TABLESPACE_NAME
El valor de espacio libre disponible se obtiene con (sustuir 'MyDbName' con lo que corresponda):FROM USER_SEGMENTS
GROUP BY TABLESPACE_NAME
SELECT TABLESPACE_NAME,SUM(BYTES)/1024/1024 "FREE SPACE(MB)"
FROM USER_FREE_SPACE
where TABLESPACE_NAME in ('MyDbName')
GROUP BY TABLESPACE_NAME;
FROM USER_FREE_SPACE
where TABLESPACE_NAME in ('MyDbName')
GROUP BY TABLESPACE_NAME;