【Oracle】ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
来源:互联网 发布:2016全明星数据 编辑:程序博客网 时间:2024/06/05 14:18
今天在修改表字段类型时出现错误:ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired,看报错应该是锁导致的。报错如下:
SQL> alter table a modify (x varchar2(10));alter table a modify (x varchar2(10)) *ERROR at line 1:ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired解决如下:
1. sys用户或者有dba权限的用户登录,查找锁等待情况。
SQL> select t2.username,t2.sid,t2.serial#,t2.logon_timefrom v$locked_object t1,v$session t2where t1.session_id=t2.sid order by t2.logon_time; USERNAME SID SERIAL# LOGON_TIM------------------------------ ---------- ---------- ---------SCOTT 27 19437 27-SEP-17SCOTT 27 19437 27-SEP-17
2. 查询等待SQL文本,查询过程中需要输入SID号。
SQL> select sql_text from v$session a,v$sqltext_with_newlines b where DECODE(a.sql_hash_value, 0, prev_hash_value, sql_hash_value)=b.hash_value and a.sid=&sid order by piece; Enter value for sid: 27old 3: and a.sid=&sid order by piecenew 3: and a.sid=27 order by pieceSQL_TEXT----------------------------------------------------------------select count(*) from a
SQL> alter system kill session '27,19437';System altered.
4. 再次修改表字段属性,不在报错。
SQL> alter table a modify (x varchar2(10));Table altered.
阅读全文
0 0
- Oracle中的ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- 【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解决方法
- ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- java.sql.SQLException: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- ddl_lock_timeout 与 ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- ddl_lock_timeout 与 ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- oracle ora-00054:resource busy and acquire with nowait specified
- ora-00054:resource busy and acquire with nowait specified解决方法
- ora-00054:resource busy and acquire with nowait specified解决方法
- ora-00054:resource busy and acquire with nowait specified解决方法
- Ora-00054 resource busy and acquire with nowait specified
- Ora-00054 resource busy and acquire with nowait specified
- ora-00054:resource busy and acquire with nowait specified解决方法
- ora-00054:resource busy and acquire with nowait specified解决方法
- PropertyPlaceholderConfigurer读取配置文件
- SpringMVC conflicts with existing, non-compatible bean definition of same name and class 的解决办法
- 如何实现windows命令提示符的tab补全
- 【Linux学习笔记】38:有关Linux进程家族树
- Spring入门之IOC,AOP
- 【Oracle】ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
- 线程正常终止pthread_exit,pthread_join,pthread_kill,pthread_cancel,sigwait,sigaddset
- 前端设计之鼠标悬停
- C# 读取ini配置文件
- JPA之@GeneratedValue注解
- 先验分布和后验分布
- python脚本验证Apache Tomcat Examples Directory Vulnerabilities
- MySQL的存储引擎
- 关键字的替换