Entrar

OracleBR

Scripts

Inicial - Banco de Códigos

Tamanho das Tablespaces

Data de Inclusão: 02/09/2006 | Última Alteração: 02/09/2006
Tipo:Scripts | Enviada por: Moderador Oracle_br (moderador@oraclebr.com.br)


COL TOTAL FORMAT 999,999,999,999
COL SALDO FORMAT 999,999,999,999
COL UTILIZADO FORMAT 999,999,999,999

select t.Tablespace_name Tablespace, s.bytes Total, t.bytes Utilizado,
S.bytes - T.bytes Saldo
from v$datafile s
, (select file_id, tablespace_name, sum(bytes) bytes from dba_extents group by file_id, tablespace_name) t
where t.file_id=s.file#
order by s.file#