Oracle数据库解決因为for update未提交断掉导致锁表的问题
来源:互联网 发布:4g移动网络接入点设置 编辑:程序博客网 时间:2024/05/29 11:29
当执行例如:select * from table1 for update语句,因为网络等问题导致未提交前断掉,下一次执行相同语句时资源正忙。
解决方案:第一步:--查询锁表
select b.owner,b.object_name,a.session_id,a.locked_mode
from v$locked_object a,dba_objects b
where b.object_id = a.object_id;
第二步: --查询导致锁表的session
select b.username,b.sid,b.serial#,logon_time
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time;
第三步:--杀session
在Command执行杀进程语句:
例:alter system kill session'470,23474';--470:sid;23474:serial#
- Oracle数据库解決因为for update未提交断掉导致锁表的问题
- 数据库 for update 锁表的问题
- 遇到了一个关于for update用索引锁行的问题,悬而未解
- 数据库oracle for update of 和for update的区别
- oracle事务锁导致事务无法提交的问题
- Oracle GoldenGate For SQL Server 未提交事务导致MSSQL日志不截断
- 解决中文PDF 因为未嵌入字体导致在某些环境下的乱码问题
- oracle的for update
- 事务未提交导致的异常
- 外键无索引导致oracle数据库锁的经典问题
- 数据库锁 for update
- oracle 的for update行锁语法
- Oracle 的for update行锁语法
- 数据库 oracle for update of 和 for update区别
- Oracle数据库:for update 和for update of
- 数据库oracle for update of和for update区别
- 数据库 oracle for update of 和 for update区别【经典】
- 数据库 oracle for update of 和 for update区别【经典】
- 修改UITableViewStyleGrouped形式的tableview的背景色 此博文包含图片(2013-09-10 11:11:57)转载▼ 分类: IOS笔记 在使用UITable
- 动态规划延伸 背包问题
- hdu1023 Train Problem II 卡特兰数
- Oracle数据库索引失效
- git操作基础:删除文件夹
- Oracle数据库解決因为for update未提交断掉导致锁表的问题
- 字体图标--Font Awesome
- cocos2dx 场景切换注意的问题
- c++STL map用法(转)
- 关于用户、角色与数据范围的一种设计方法
- Opencv——cvRodrigues2()函数
- 每天一个linux命令——alias
- Linux环境进程间通信(一) 管道
- Caffe Blobs