简化/自动化数据文件可用磁盘空间回收
在 Oracle 版本 11g 上:
谷歌搜索后,我找不到删除表后回收可用空间的简单方法。
我找到了很多解释,讲述了数据文件如何变得碎片化,您必须运行一大堆无聊的查询才能移动数据文件末尾的“空白空间”(逐个表......即使您有200张桌子!?)。
然后您必须通过“猜测”可以减少多少来减少数据文件大小,或者您必须确切地知道您的“块大小”是多少......最后您不应该忘记“重建索引”。
例如,请参见: http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:54178027703899
是否有一个简单的 PL/SQL 过程,给定表空间名称或数据文件名称,会执行该作业吗?或者有类似的Oracle工具吗?
On Oracle version 11g:
After Googling, I can't find a simple way to reclaim free space after deleting a table.
I've found a lot of explanations, telling how the datafile becomes fragmented, the big stack of boring queries you have to run in order to move the "empty space" at end of the datafile (table by table... even when you have 200 tables !?).
Then you have to reduce the datafile size by "guessing" by how much you can reduce it, or you must know exactly what is your "block size"... And finally you should not forget to "rebuild the indexes".
See for example : http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:54178027703899
Is there a simple PL/SQL procedure which, given a tablespace name or datafile name, would to that job? Or any similar Oracle tool?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论