Oracle中MAXTRANS失效了,在9i上我测试过了

本文对比了Oracle 9i与10g中MAXTRANS参数的行为差异。在9i中,该参数似乎不再生效,而10g则完全废弃了此设置,自动允许每个数据块最多255个并发更新事务。
Oracle中MAXTRANS失效了,在9i上我测试过了。

create table p (x int ) maxtrans 1;
但是查询
Connected to Personal Oracle9i Release 9.2.0.1.0
Connected as ncsrpt
 
SQL> select table_name,INI_TRANS,MAX_TRANS from user_tables where table_name='P';
 
TABLE_NAME                      INI_TRANS  MAX_TRANS
------------------------------ ---------- ----------
P                                       1          1


这个和网上一些人测试10G显示的结果不一样,在10G中

SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jun 26 11:59:20 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining Scoring Engine options

SQL> CREATE TABLE EYGLE_ITL
2 (C1 NUMBER,
3 C2 VARCHAR2(10)
4 )
5 INITRANS 1 MAXTRANS 1
6 /

Table created.

SQL> select table_name,INI_TRANS,MAX_TRANS from user_tables where table_name='EYGLE_ITL';

TABLE_NAME INI_TRANS MAX_TRANS
------------------------------ ---------- ----------
EYGLE_ITL 1 255


但是实际操作的结果是,9i中已经没有这个限制了

10G的文档中的提到:

Note:In earlier releases of Oracle Database, the MAXTRANS parameter limited the number of transaction entries that could concurrently use data in a data block. This parameter has been deprecated.

Oracle Database now automatically allows up to 255 concurrent update transactions for any data block, depending on the available space in the block.
The database ignores MAXTRANS when specified by users only for new objects created when the COMPATIBLE initialization parameter is set to 10.0 or greater.

 
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值