Segment Shrink
Consiste nel recuperare spazio sopra e sotto l'hwm (high-water mark), liberando spazio e resettando il valore di hwm. Poiché vengono mosse le righe e cambiano i ROWIDs occorre abilitare la tabella alla modalità row movement e il tablespace di appartenenza deve eesere gestito in modalità ASSM (automatic segment space management). SQL > alter table .... enable row movement; Inoltre occorre disabilitare trigger, dml e query basati sul rowid. Può essere eseguita on line pertanto durante lo shrink vengono bloccate le dml che operano su quei segmenti mentre gli indici risultano utilizzabili. Può essere usato per i seguenti oggetti. - Heap tables - Index-organized tables and their overflow segments - LOBs and LOB segments - Materialized views and materialized view logs - Indexes - Partitions and subpartitions select SEGMENT_NAME, BLOCKS ,bytes from dba_segments where segment_type='TABLE' and TABLESPACE_NAME= 'TS_PEPT_DATA' and segment_name