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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 路徑中./和../和/
- ../和./和/的區別
- not in 和 not exists 比較和用法
- xftp和xshell,xftp和xshell的下載和安裝FTP
- #和&
- !=和<>
- ABAP和Java的destination和JNDIJava
- @NotEmpty和@NotBlank和@NotNull小結Null
- 字首和與二維字首和
- ♻️同步和非同步;並行和併發;阻塞和非阻塞非同步並行
- XML基本操作-建立(DOM和LOINQ)和LINQ查詢和儲存XML
- workman 和swoole 區別 和異同
- 寬鬆相等和嚴格相等(==和===)
- 淺談mouseenter和mouseover,mouseout和mouseleave
- csv和excel讀取和下載Excel
- Cookie 和 Session 關係和區別CookieSession
- javafx 和swing_整合JavaFX和SwingJava
- 檔案路徑問題( ./ 和 ../ 和 @/ )
- 堆和棧的概念和區別
- ThymeleafViewResolver和SpringTemplateEngine和SpringResourceTemplateResolver的關係ViewSpring
- 尤拉計劃739:和的和
- 【-Flutter/Dart 語法補遺-】 sync* 和 async* 、yield 和yield* 、async 和 awaitFlutterDartAI
- if if和if else if
- ul和
- 字首和
- equals 和 ==
- Redis RDB和AOF取捨和選擇Redis
- ssr、ss和vpn介紹和區別
- 使用Jquery和JSON的州和城市列表jQueryJSON
- VM和Container 虛擬機器和容器AI虛擬機
- 和AI談倫理、道德和謊言AI
- 堆和棧的解釋和區別
- lodsb、stosb(和lodsw、stosw和lodsd、stosd指令)
- vue和react的相同點和不同點VueReact
- MySQL 裡的 find_in_set () 和 in () 和 likeMySql
- DOORS和Reqtify — 需求管理和需求追溯工具QT
- count (*) 和 count (1) 和 count (列名) 區別
- DOORS 和Reqtify — 需求管理和需求追溯工具QT
- Golang 陣列和切片 Slice 和 Map 使用Golang陣列