ORA-00054 resource busy and acquire with NOWAIT specified Cause 错误解决方法
1.查询被锁对象:
select object_name,machine,s.sid,s.serial#
from v$locked_object l,dba_objects o ,v$session s
where l.object_id = o.object_id and l.session_id=s.sid;
2.将查找的被锁会话结束:
alter system kill session '130,5946'; (其中24,111分别是上面查询出的sid,serial#)
---------------
【注】以上两步,可以通过Oracle的管理控制台或plSql来执行。
----------------------------------------
如果在执行上面步骤时提示ORA-00031的提示时,请执行下面操作
3.如果利用上面的命令杀死一个进程后,进程状态被置为"killed",但是锁定的资源很长时间没有被释放,那么可以在数据库服务器上再杀死相应的进程(线程),首先执行下面的语句获得进程(线程)号:
select spid, osuser, s.program
from v$session s,v$process p
where s.paddr=p.addr and s.sid=130(130是上面的sid)
4.在OS上杀死这个进程(线程):
(1)在linux上,用root身份执行命令:
kill -9 12345(即第3步查询出的spid)
(2)在windows(unix也适用)用orakill杀死线程,orakill是oracle提供的一个可执行命令,语法为:
orakill sid thread
其中:
sid:表示要杀死的进程属于的实例名
thread:是要杀掉的线程号,即第3步查询出的spid。
例:c:>orakill orcl 12345
转载于:https://www.cnblogs.com/maomaoBlog/archive/2010/11/10/1873885.html
ORA-00054 resource busy and acquire with NOWAIT specified Cause 错误解决方法相关推荐
- oracle之 RA-00054: resource busy and acquire with NOWAIT specified or timeout expired
1. truncate 表报 ORA-00054 ,标明有事务正在操作该表 SQL> truncate table alldm.DM_XQKD_YUJING_D; truncate table ...
- resource busy and acquire with nowait specified解决方法
http://blog.csdn.net/wbj1234566/article/details/4156147 resource busy and acquire with nowait specif ...
- ora-00054:resource busy and acquire with nowait specified解决方法
当某个数据库用户在数据库中插入.更新.删除一个表的数据,或者增加一个表的主键时或者表的索引时,常常会出现ora-00054:resource busy and acquire with nowait ...
- ora-00054:resource busy and acquire with nowait specified
当某个数据库用户在数据库中插入.更新.删除一个表的数据,或者增加一个表的主键时或者表的索引时,常常会出现ora-00054:resource busy and acquire with nowait ...
- 【Oracle】ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
今天在修改表字段类型时出现错误:ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired,看报错应该是 ...
- No resource identifier found for attribute 'headerLayout' in package错误解决方法
我在使用NavigationView这个控件的时候出现了以下的错误: Error:(2) No resource identifier found for attribute 'headerLayou ...
- Maven在pom文件中添加资源插件后,src/main/resource目录中的文件编译后不拷贝解决方法。
在pom文件中添加以下资源插件后 <!--添加的资源插件--> <build><resources><resource><directory> ...
- oracle错误ORA 01031,ORA-01031: insufficient privileges错误解决方法
ORA-01031: insufficient privileges错误解决方法 今天测试一下新功能.10g的. 通过一个linux客户端访问一个linux下的orace 10g数据库. 服务器:19 ...
- 删除K8S集群的/var/lib/kubelet目录报Device or resource busy错误解决方法
无法删除/var/lib/kubelet目录 [root@k8s-node2 k8s_node]# rm -rf /var/lib/kubelet rm: cannot remove '/var/li ...
最新文章
- P1086 花生采摘
- pandas使用shift函数对数数据进行向上偏移(-1)或者向下偏移(1)、索引不移动,移动之后无值的赋值为NaN、将原数据列与偏移后的数据列相加生成新的数据列
- 地址总线与数据传送机制
- MacOS使用Charles抓去HTTPS数据
- 数据中心巡检实操之UPS及电池
- 最优化算法python实现篇(3)——无约束一维极值(黄金分割法)
- 南工院C语言试卷答案,南工院11-12-1C期末B试卷 附答案.doc
- 漫谈CGI FastCGI WSGI
- 位运算 —— 一个数二进制形式尾端为 0 的个数
- Atitit.web ui 组件化 vs mvc
- js操作多选框checkBox
- 利用java制作桌面应用程序_Java桌面应用
- 那些简历造假拿 Offer 的程序员,后来都怎样了?
- 聚宽API获取沪深300股票
- 计算机自动关机启机唤醒设置,电脑设置自动关机和自动开机
- 预防颈椎病之颈椎保健操图解--超有效
- python文件后缀切割_python如何去除文件后缀
- 计算机房通气换气次数,地下制冷机房,水泵房,配电房的排风量按多少换气次数计算...
- 中国高端制造进展神速,又一项新科技产品即将取得全球第一!
- 【统计计算】关于Jackknife的理解和推导