真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

關(guān)于enq:TX-allocateITLentry等待事件

 當(dāng)表的ITL設(shè)置不能滿足并發(fā)事務(wù)的需求時(shí)會(huì)產(chǎn)生此等待。數(shù)據(jù)塊是oracle能夠發(fā)出的最小i/o單位。在數(shù)據(jù)塊中,數(shù)據(jù)塊每當(dāng)一個(gè)事務(wù)需要修改一個(gè)數(shù)據(jù)塊時(shí),需要在數(shù)據(jù)塊頭部獲得一個(gè)可用的ITL槽,其中記錄了當(dāng)前事務(wù)的id,使用的undo數(shù)據(jù)塊,還有對(duì)應(yīng)的scn,事務(wù)是否提交等信息。進(jìn)一步來說ITL槽的設(shè)置是由ini_trans,max_trans決定。在10g之后,nax_trans參數(shù)被忽略了。
SQL> create table trans_test(id number,name varchar2(100)) initrans 1 maxtrans 1;
Table created
SQL> select ini_trans,max_trans,table_name from user_tables a where a.table_name='TRANS_TEST';
 INI_TRANS  MAX_TRANS TABLE_NAME
---------- ---------- ------------------------------
         1        255 TRANS_TEST

In earlier releases, the MAXTRANS parameter determined the maximum number of concurrent update transactions allowed for each data block in the segment. This parameter has been deprecated. Oracle now automatically allows up to 255 concurrent update transactions for any data block, depending on the available space in the block.

公司主營(yíng)業(yè)務(wù):成都做網(wǎng)站、成都網(wǎng)站設(shè)計(jì)、移動(dòng)網(wǎng)站開發(fā)等業(yè)務(wù)。幫助企業(yè)客戶真正實(shí)現(xiàn)互聯(lián)網(wǎng)宣傳,提高企業(yè)的競(jìng)爭(zhēng)能力。創(chuàng)新互聯(lián)公司是一支青春激揚(yáng)、勤奮敬業(yè)、活力青春激揚(yáng)、勤奮敬業(yè)、活力澎湃、和諧高效的團(tuán)隊(duì)。公司秉承以“開放、自由、嚴(yán)謹(jǐn)、自律”為核心的企業(yè)文化,感謝他們對(duì)我們的高要求,感謝他們從不同領(lǐng)域給我們帶來的挑戰(zhàn),讓我們激情的團(tuán)隊(duì)有機(jī)會(huì)用頭腦與智慧不斷的給客戶帶來驚喜。創(chuàng)新互聯(lián)公司推出廣南免費(fèi)做網(wǎng)站回饋大家。

Existing objects for which a value of MAXTRANS has already been set retain that setting. However, if you attempt to change the value for MAXTRANS, Oracle ignores the new specification and substitutes the value 255 without returning an error.

對(duì)于ini_trans, max_trans的默認(rèn)值,表級(jí)為1,索引級(jí)為2.  一般來說不需要做特別的設(shè)置。可以根據(jù)業(yè)務(wù)的需要來配置。

以下設(shè)置可供參考:
對(duì)于大表,數(shù)據(jù)千萬(wàn)級(jí)以上的表,initrans建議設(shè)置為8~16
對(duì)于中級(jí)表,數(shù)據(jù)量在百萬(wàn)到千萬(wàn)級(jí),initrans建議設(shè)置為4~8
對(duì)于普通的表,initrans建議設(shè)置為1~4

對(duì)于此等待事件,解決思路有三種:

Increase INITRANS

1) Depending on the number of transactions in the table we need to alter the value of INITRANS.
here it has been changed to 50:

alter table INITRANS 50;


2) Then re-organize the table using move (alter table move;)

3) Then rebuild all the indexes of this table as below

alter index rebuild INITRANS 50;

 

Increase PCTFREE

If the issue is not resolved by increasing INITRANS then try increasing PCTFREE. Increasing PCTFREE holds more
space back and so spreads the same number of rows over more blocks. This means that there are more ITL slots
available overall :

1) Spreading rows into more number of blocks will also helps to reduce this wait event.

alter table PCTFREE 40;

2) Then re-organize the table using move (alter table service_T move;)

3) Rebuild index

alter index index_name  rebuild PCTFREE 40;

 

A Combination of increasing both INITRANS and PCTFREE


1) Set INITRANS to 50  pct_free to 40

alter table PCTFREE 40  INITRANS 50;


2) Re-organize the table using move (alter table move;)

3) Then rebuild all the indexes of the table as below

alter index  rebuild PCTFREE 40 INITRANS 50;


文章名稱:關(guān)于enq:TX-allocateITLentry等待事件
轉(zhuǎn)載源于:http://weahome.cn/article/iieejj.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部