您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
免费发信息

enq:TT–contention等待事件

2024/3/29 8:36:21发布6次查看
客户数据库删除表空间异常,说各种办法都尝试过,我也想好好跟踪下: 删除的时候出现等待事件 enq: tt contention等待事件 本来想跟踪先,看看等待事件问题,结果由于需要要重启数据库,重启后,表空间可以正常删除,感觉略微有点失落, 现对该等待时间做简
客户数据库删除表空间异常,说各种办法都尝试过,我也想好好跟踪下:
删除的时候出现等待事件
enq: tt – contention等待事件
本来想跟踪先,看看等待事件问题,结果由于需要要重启数据库,重启后,表空间可以正常删除,感觉略微有点失落,
现对该等待时间做简单分析:
tt 队列锁在官方文档中介绍为tt, temporary table,但是实际在版本8i之后该队列锁更多参与在表空间管理事务中。
也可以称enqueue tt为tablespace lock。
作用
该enqueue tt队列锁用以在各种类型的表空间操作执行过程中避免出现死锁dead lock。
该enqueue lock的 id2表明正在执行的操作种类,id1表明该操作对应的表空间号v$tablespace.ts#。
id1/ id2的含义
id1是tablespace number v$tablespace.ts#,id2表明执行中的操作类型。以下是操作类型对应代码;
0- 用以避免在drop tablespace和创建rollback segment之间发生死锁
1- 用以串行化在给定表空间上创建数据文件
2- 用以避免在tspitr tablespace point in time recovery期间发生其他类型操作
4- 用以在创建tablespace时锁住该tablespace id
8- 用以避免在alter tablespace期间发生死锁
16- 即16进制的0×10,用以同步 分配和回收盘区,allocation and deallocation of extents.
32+ 用在增加数据文件add datafile和创建表空间时,其中id2为 32(十进制的)+相对文件号relative file number
最常见的tt enqueue争用是 tt-00000x-0000010 即allocation and deallocation of extents.
如果10g以后遇到类似问题 , 建议先了解一下extent management、segment management(assm、mssm?)管理方式等,
是否打开了回收站recyclebin功能,以及该表空间上回收站对象的extent数量。
enqueue tt相关的一些bug列表如下:
bug 8313598 – ora-60 on tt enqueue from dbms_space.isdatafiledroppable_name [id 8313598.8]
bug 4732503 – self-deadlock on tt enqueue [id 4732503.8]
bug 6809093 – hang due to tt enqueue waits on an undo tablespace [id 6809093.8]
bug 14055559 system hang due to tt enqueue contention with bigfile tablespace resize
bug 3833893 smon may hold the tt enqueue preventing alter of temporary tablespace
sessions hang due to self deadlock on tt enqueue [id 948668.1]
bug 3397983 – sessions may hang waiting for tt enqueue [id 3397983.8]
bug 3467364 – adding datafiles serializes on the tt enqueue [id 3467364.8]
bug 8332021 – cannot add a datafiles when sessions reporting ora-1653 / tt enqueue contention between datafile addition and other segment extension operations [id 8332021.8]
bug 2272671 – deadlock possible on create index online (kgl lock v. tt enqueue) [id 2272671.8]
bug 6762619 : enqueue “tt” remains when accessing dba_free_space
bug 6858962 : tt and us enqueue deadlock
bug 9439759 : tt enqueue is not released when cancel query
bug 6265482 : tt enqueue remains after cancel “select * from dba_extents”
bug 7217723 : ora-00060 deadlock detected due to tt and us enqueue
bug 4732503 : self-deadlock tt enqueue on 9.2.0.7 similar to 3425298
bug 9403168 : wait for tt-enqueue for insert to bascifiles during adding datafile to same tbs
bug 9451566 : deadlock on tt-enqueue
bug 3833893 : smon gets “tt enqueue” of temp if datefile of temp doesn’t exist.
bug 9948775 : self-deadlock on tt enqueue
the tt portion of the wait event name stands for temporary table and typically indicates issues with the temporary tablespace or related storage.
look for other process that are manipulating temporary tablespaces or tempfiles during the time when these waits were noticed.
solutions
if an alter database tempfile drop hangs due to a tt enqueue that is retained by the smon process in oracle 9.2.0.6 or lower, oracle bug 3833893 is responsible. this problem has been solved in oracle 9.2.0.7. for more information, see note 867681.
longer waits for the tt enqueue are generally caused by oracle bugs. if you experience problems with this enqueue type, you should contact oracle support for further assistance.
http://www.itpub.net/forum.php?mod=viewthread&tid=1136919&highlight=【应急解决办法】【有问题不可以过早重启,不然很难跟踪到根本原因】
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录