initrans和maxtrans


initrans和maxtrans

下面是个测试方法
The interested transaction list is an array that keeps track of (some of) the most recent transactions on a block. The size of this array is specified by the initrans parameter when an object is created. If more entries are needed in the ITL and if there is enough space in the block, the array can grow up to maxtrans.
This can be demonstrated with 3 sessions:
First session;
create table t_ (a number) initrans 1 maxtrans 2;
insert into t_ values (1);
insert into t_ values (2);
insert into t_ values (3);
commit;

update t_ set a = 101 where a = 1;
Second session:
update t_ set a = 102 where a = 2;
Third session:
update t_ set a = 103 where a = 3;
This third session hangs until one of the other session commits or rolls back.

oracle默认initrans就是2,maxtrans是255;initrans可以单独设,maxtrans是要和initrans参数是要同时用的,否则设不成功
10g的maxtrans默认就是255。
select table_name,ini_trans,max_trans from user_tables where table_name ='TNAME'
可看到设置情况
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值