* UndoSpace is the number of undo blocks
* UR is UNDO_RETENTION in seconds
* UPS is undo blocks for each second = 50
* overhead is the small overhead for metadata (transaction tables, bitmaps, and so forth)
set linesize 200
col retention_segs format a15
col management format a10
col TABLESPACE_NAME format a30
select tablespace_name,
(select value from v$parameter where name = 'undo_management') management,
Cuando tenemos que saber cuanto espacio reservar para una tabla de la cual tenemos la ddl o la tabla creada.
select
(sum(data_lenght)*&cantidad de registros* 1.2*1.05)/1024/1024 "Espacio a reservar en Mb"
from dba_tab_columns
where owner = &owner
and table_name = &table_name;
Para saber cuanto espacio ocupa cada tabla de la base de datos en disco
col owner format a30
col tabla format a30
col mb format 999999.99
col tablespace format a30
set linesize 200
select owner, segment_name tabla, sum(bytes)/1024/1024 mb, tablespace_name tablespace
from dba_segments