Error reporting about tablespaces

--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. Whether the table space of large fields
 select segment_name,sum(bytes)/1024/1024 from user_extents group by segment_name
The query is caused by the clob of that table:
select * from dba_segments where segment_name = 'SYS_LOB0000062893C00002$$';
select * from dba_lobs where segment_name like 'SYS_LOB0000062893C00002$$' ;


after deleting data

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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325674489&siteId=291194637