oracle enable row movement,row movement is not enabled

Dear 788042,

You need to enable the row movement option for an object when you need to shrink the space or for instance flashback the relevant object.

Here is an explanation from Thomas Kyte;

http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:936216200346623192

+"+

+and we said...+

+allowing row movement is simply giving Oracle permission to modify a rows rowid.+

+In the beginning, a rowid was assigned to a row and was immutable. Starting in 8i, we allowed people to update a partition key in a partitioned table that would cause the row to move from partition A to partition B. In order to do that, we need to modify the rowid - but we had a documented implementation feature whereby a rowid was immutable. In order to permit this operation - we had to make it so that a DBA would consciously give us permission to do this.+

+So, row movement - needed for partition key modifications that move the row, needed for alter table t shrink space compact, needed for flashback table is just a "permission", it does not affect runtime performance at all+

+"+

I don't think there is an option or clause to enable the row movement for all tables in the database. PL/SQL block can handle this by executing multipte alter commands.

You do not have to touch the row movement option for a table after the operation. You can either disable or re-enable it as desired.

Regards.

Ogan

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值