deletion will not reset the high water  . So you have to use truncate

解决方案 »

  1.   

    SQL> alter tablespace indx coalesce;Tablespace altered.Elapsed: 00:00:00.04
    SQL>
      

  2.   

    但是如果我用truncate 就会将表中数据全部删除了。有时候更多的是用delete删除没用的记录。
      

  3.   

    正如 black_snail 所说的,DELETE操作是不会释放数据占用的空间的,TRUNCATE的时候才会释放占用空间。前面2位只是做清理数据库空间碎片的操作。
      

  4.   

    如果删除记录多,保留记录少的话,泥可以这样:
    1、CREATE TABLE AS
       SELECT * FROM TAB WHERE [保留记录的条件];2、DROP TABLE TAB;
      

  5.   

    If this is not a Locally Managed TS, try: SQL> alter tablespace tablespace_name storage (pctincrease 1) SQL> alter tablespace tablespace_name coalesce SQL> alter tabelspace tablespace_name storage (pctincrease 0)