- 原因
从dbatables查询导不出的表,会发现他们不占用空间,segmentcreated=‘NO‘ - 解决办法
查询出来这些表,执行
alert table xxx move;
即可
declare
tbl varchar2(100);
s varchar2(1000);
cursor c is
select t.TABLENAME from dbatables t where t.OWNER=‘MES‘ and t.SEGMENTCREATED = ‘NO‘ and t.TABLENAME!=‘SQLNEXPLAINPLAN‘ and t.TABLE_NAME! =‘Sheet1$‘;
begin
open c;
fetch c into tbl;
while(c%FOUND)loop
s := ‘alter table ‘ || tbl || ‘ move ‘;
execute immediate s;
fetch c into tbl;
end loop;
close c;
end;
时间: 2024-10-13 01:45:57