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.
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);;
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'
可看到設定情況
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'
可看到設定情況
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-84961/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- What is INITRANS and MAXTRANS
- Oracle中INITRANS和MAXTRANS引數Oracle
- 【轉】Oracle學習筆記:INITRANS和MAXTRANS引數的作用Oracle筆記
- INITRANS引數
- TX:ITL LOCK(INITRANS,MAXINTRANS)
- The value (30) of MAXTRANS parameter ignored. 問題分析
- [20130325]表Initrans的數量.txt
- ../和./和/的區別
- 路徑中./和../和/
- !=和<>
- #和&
- linux中/bin和/sbin和/usr/bin和/usr/sbinLinux
- redis的安裝和啟動和檢測和停止Redis
- 深度解析 Delegate 和 Notification 和 KVO
- ♻️同步和非同步;並行和併發;阻塞和非阻塞非同步並行
- xftp和xshell,xftp和xshell的下載和安裝FTP
- 找工作學習筆記1------=和==、&和&&、|和||的區別筆記
- workman 和swoole 區別 和異同
- @NotEmpty和@NotBlank和@NotNull小結Null
- 檔案路徑問題( ./ 和 ../ 和 @/ )
- csv和excel讀取和下載Excel
- Cookie 和 Session 關係和區別CookieSession
- 堆和棧的概念和區別
- js中的typeof和instanceof和===JS
- hbase和zookeeper的安裝和部署
- JSF和Struts、Tiles Portlets和TapestryJS
- oracle中關於in和exists,not in 和 not existsOracle
- js == 和 ===JS
- 字首和
- XML基本操作-建立(DOM和LOINQ)和LINQ查詢和儲存XML
- 函式fgets和fputs、fread和fwrite、fscanf和fprintf用法小結函式
- DOORS和Reqtify — 需求管理和需求追溯工具QT
- Golang 陣列和切片 Slice 和 Map 使用Golang陣列
- count (*) 和 count (1) 和 count (列名) 區別
- DOORS 和Reqtify — 需求管理和需求追溯工具QT
- MySQL 裡的 find_in_set () 和 in () 和 likeMySql
- 淺談mouseenter和mouseover,mouseout和mouseleave
- 和AI談倫理、道德和謊言AI