Para obtermos o tamanho de um determinado schema utilizamos a seguinte query:
Â
Â
SELECT tablespace_name,
Sum(bytes)/1024/1024 AS total_size_mb
FROM dba_segments
WHERE owner = Upper(&User_Name)
GROUP BY owner, rollup(tablespace_name)
Â
Â
Esta query irá retornar o spaço ocupado em cada tablespace.
Â
Â
Â
Â
Para obtermos o espaço total utilizado por cada schema utilizamos a seguinte query:
Â
Â
SELECT OWNER,
SUM(BYTES)/1024/1024 AS TOTAL_SIZE_MB
FROM DBA_SEGMENTS
GROUP BY OWNER
ORDER BY OWNER
Â
Â
Leave a reply
You must be logged in to post a comment.