当前位置:网站首页>ORA-00054
ORA-00054
2022-07-17 21:47:00 【喝醉酒的小白】
问题
环境:RAC 11.2.0.4 主库
业务批处理任务中,归档数据表报错。
00054, 00000, "resource busy and acquire with NOWAIT specified or timeout expired"
// *Cause: Interested resource is busy.
// *Action: Retry if necessary or increase timeout.
原因
ora-00054是执行ddl操作时比较常见的错误,其主要原因就是无法获得TM lock。drop table、truncate table要获得独占的exclusive意向锁,只要表格中存在任何形态的TM lock,操作就无法满足,就会报告ora-00054错误。
解决方案
select * from v$lock where type='TM';
select owner,object_name from dba_objects where object_id in(id1);

模拟报错
create table test as select * from dba_objects;
delete from test where rownum < 2;
--select sid from v$mystat where rownum=1;
select userenv('sid') from dual;

select * from v$lock where sid=50;

会话2
truncate table test;

边栏推荐
- Cmake learning notes
- Minuterie logicielle à puce unique v2.0
- Classification of blocks
- Display module in pyGame
- 运行时加载 Objective-C
- Data consistency between redis and MySQL
- Force deduction 912 sorting array notes
- 2022 P gas cylinder filling examination practice questions simulated examination platform operation
- STM32 positioning hardfault location method and encountered situation in keil environment
- One article, teach you to achieve single sign on
猜你喜欢

抽象类与派生类

【MQTT从入门到提高系列 | 07】MQTT3.1.1之链路保活及断开

Classes abstraites et dérivées

Data consistency between redis and MySQL

One article, teach you to achieve single sign on

Explain the operation of C language file in detail

Wechat applet -- wxss template style
![[flask introduction series] exception handling](/img/88/7891be60098ab9b41a3c7e0f8cf9fc.png)
[flask introduction series] exception handling

状态机练习
![[flask introduction series] request hook and context](/img/a9/96e330525ee1337daab275b87db892.png)
[flask introduction series] request hook and context
随机推荐
Deployment principle
The TLS connection failed due to the incorrect configuration of privatekeyentry in the keystore file
Analysis of network communication flow of different containers on the same host
Explain C language dynamic memory management in detail
Manuel incomplet, comment tracer manuellement l'information de surveillance de tongweb?
The manual is not complete. How to manually dig out the monitoring information of tongweb?
抽象類與派生類
MySQL read / write separation
2、MYSQL介绍
P8346 最澄澈的空与海【无向图拓扑】
Classes abstraites et dérivées
AcWing 274. 移动服务【DP】
MySQL storage functions and triggers
AcWing 274. Mobile services [DP]
定时任务,vim直接创建修改用户
Use tongweb's hot deployment function with caution
SQL related time date type
TongWeb生产系统应急处理方案
MySQL index (II)
[port 3000 is already in use, solution to the problem of 3000 port being occupied]