关于表空间报错

--1、是否大字段的表空间
 select segment_name,sum(bytes)/1024/1024 from user_extents group by segment_name order by sum(bytes);
 select ff.s tablespace_name,
       ff.b total,
       (ff.b - fr.b) usage,
       fr.b free,
       round((ff.b - fr.b) / ff.b * 100) || '% ' usagep
  from (select tablespace_name s, sum(bytes) / 1024 / 1024 b
          from dba_data_files
         group by tablespace_name) ff,
       (select tablespace_name s, sum(bytes) / 1024 / 1024 b
          from dba_free_space
         group by tablespace_name) fr
 where ff.s = fr.s

======================================================================
--2
SELECT FILE_NAME,TABLESPACE_NAME,AUTOEXTENSIBLE FROM dba_data_files


create tablespace bslis  datafile 'f:\database\bslis.ora'  size 100m autoextend on next 100m;
:
1、是否大字段的表空间
 select segment_name,sum(bytes)/1024/1024 from user_extents group by segment_name
查询是那张表的clob导致:
select * from dba_segments where segment_name = 'SYS_LOB0000062893C00002$$';
select * from dba_lobs where segment_name like 'SYS_LOB0000062893C00002$$' ;


删除数据后

ALTER TABLE EMR_BL03 MOVE LOB(WDNR) STORE AS (TABLESPACE PHIS);

猜你喜欢

转载自www.cnblogs.com/thomasbc/p/9003740.html