我想知道通常如何从 Oracle 9i DBMS 中删除数据,这实际上释放了磁盘空间。在过去的场景中,我们遇到过这样的情况,即清除 1-2 百万行数据并不会转化为磁盘空间使用量的减少。
设想:
sqlplus > delete from audit_log where date_created between today and the day before;
sqlplus > 2 million records deleted.
bash$: du -sh (after issuing the delete above)
Run Code Online (Sandbox Code Playgroud)
结果不会改变磁盘空间使用情况。
这也让我想到了一个问题,是否需要刷新表,以便 oracle 完全删除所有应该被删除 DML 删除的数据