设为首页 加入收藏

TOP

比较Oracle中的alter table t move和alter table t shrink space(三)
2014-11-24 07:39:12 来源: 作者: 【 】 浏览:9
Tags:比较 Oracle alter table move shrink space

----------
1

tony@ORA11GR2> alter table t enable row movement;

Table altered.

tony@ORA11GR2> alter table t shrink space;

Table altered.

tony@ORA11GR2> delete from chained_rows;

1 row deleted.

tony@ORA11GR2> analyze table t list chained rows;

Table analyzed.

tony@ORA11GR2> select count(*) from chained_rows;

COUNT(*)
----------
0

tony@ORA11GR2> update t set y = rpad('*',2000,'*') where x = 2;

1 row updated.

tony@ORA11GR2> analyze table t list chained rows;

Table analyzed.

tony@ORA11GR2> select count(*) from chained_rows;

COUNT(*)
----------
1

tony@ORA11GR2> alter table t move;

Table altered.

tony@ORA11GR2> delete from chained_rows;

1 row deleted.

tony@ORA11GR2> analyze table t list chained rows;

Table analyzed.

tony@ORA11GR2> select count(*) from chained_rows;

COUNT(*)
----------
0


摘自 NowOrNever
首页 上一页 1 2 3 下一页 尾页 3/3/3
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇分析oracle索引空间使用情况,以.. 下一篇ORA-15032 & ORA-15033解决办法

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·HyperText Transfer (2025-12-26 07:20:48)
·半小时搞懂 HTTP、HT (2025-12-26 07:20:42)
·CPython是什么?PyPy (2025-12-26 06:50:09)
·Python|如何安装seab (2025-12-26 06:50:06)
·python要学习数据分 (2025-12-26 06:50:03)