Documente Academic
Documente Profesional
Documente Cultură
select tablespace_name,
segment_name,owner, sum(bytes)/1024/1024
from dba_segments
where segment_name like '%LOG%'
group by tablespace_name,segment_name,owner
order by 4 desc
______________________________________________________________
select distinct
'ALTER TABLE '||l.owner||'.'||l.table_name||' MOVE LOB ('||l.column_name||') store
as (tablespace TBS_NAMEN);'
from dba_segments s,dba_lobs l
where s.segment_name=l.segment_name
and s.owner=l.owner
and s.tablespace_name = 'TBS_NAME'
select '
alter database datafile '''||file_name||''' resize 768M;
alter database datafile '''||file_name||''' autoextend on next 128M maxsize
10240M;'
from dba_data_files
where tablespace_name ='TBS_NAME'
-- -- -- -- drop tablespace TBS_NAME INCLUDING CONTENTS AND DATAFILES