PROMPT Espacio utilizado en los segmentos temporales
SELECT tablespace_name,
total_blocks,
used_blocks,
free_blocks,
total_blocks*16/1024 as total_MB,
used_blocks*16/1024 as used_MB,
free_blocks*16/1024 as free_MB
FROM v$sort_segment;
PROMPT Uso de los segmentos temporales por parte de las sesiones
SELECT b.TABLESPACE,
b.segfile#,
b.segblk#,
b.blocks,
b.blocks*p.value/1024/1024 as MB,
a.SID,
a.serial#,
a.status
FROM v$session a,
v$sort_usage b,
(select value from v$parameter where name='db_block_size') p
WHERE a.saddr = b.session_addr
ORDER BY b.TABLESPACE,
b.segfile#,
b.segblk#,
b.blocks;
No hay comentarios:
Publicar un comentario