ORACLE数据库表解锁record is locked by another user
来源:互联网 发布:计算年龄的软件 编辑:程序博客网 时间:2024/05/17 05:12
转自 : https://www.cnblogs.com/xusweeter/p/5942852.html
今天同事在操作Oracle数据库表删数据时突然断网,再次连接的时候删数据就提示“record is locked by another user”,然后就百度找到了如下解决方案。
方案步骤:
1、查锁
select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time;
2、解锁(KILL)
--alter system kill session 'sid,serial#';
alter system kill session '151,14678'; --151是sid,14678是serial#
运行以上命令后,就可以解决此问题。
操作记录:
1、数据库表被锁;
2、查锁
select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time;
1 BCSA 64 40449 2016/10/9 15:38:052 BCSA 64 40449 2016/10/9 15:38:053 BCSA 64 40449 2016/10/9 15:38:054 BCSA 64 40449 2016/10/9 15:38:05
3、解锁
alter system kill session '64,40449';
阅读全文
0 0
- ORACLE数据库表解锁record is locked by another user
- Oracle 数据库 Record is locked by another user 问题解决办法
- Oracle 数据库 Record is locked by another user 问题解决办法
- Oracle 数据库 Record is locked by another user 问题解决办法
- Oracle 数据库 Record is locked by another user 问题解决办法
- Oracle 数据库 Record is locked by another user 问题解决办法
- oracle record is locked by another user
- Record is locked by another user --Oracle行锁解锁
- Record is locked by another user --Oracle行锁解锁
- Oracle 解锁Record is locked by another user?
- ORACLE解锁 record is locked by another user
- ORACLE解锁record is locked by another user
- Oracle操作报错:record is locked by another user
- Oracle Record is locked by another user 解决方法
- Oracle 解锁:Record is locked by another user
- ORACLE record is locked by another user?解锁
- ORACLE解锁record is locked by another user
- 关于 oracle record is locked by another user 问题解决办法
- 【HDU 1879】继续畅通工程
- Spring4 之 IOC & DI
- MyFirstMarkdown
- django学习——采用Q()方法进行查询
- html 样式添加方式及其优先级学习记录
- ORACLE数据库表解锁record is locked by another user
- Matlab实现图像阈值分割
- Loadrunner一般监测windows哪些性能指标
- SpringBoot 中文手册 --Part IV --34 验证
- 分布式系统中文件分段上传解决方案
- Apache httpd 2.4 访问控制
- 可视化篇:mapbox + echarts-gl 展示血脉交通
- Java反射机制
- 自己搭建SVN环境