Common Trouble Solution--解决锁…
来源:互联网 发布:如何做淘宝客赚钱 编辑:程序博客网 时间:2024/06/06 20:19
解决锁表
1.以sys 用户登入查询哪些session 被锁
sql>selectt2.username,t2.sid,t2.serial#,t2.logon_time
fromv$locked_object t1,v$session t2
wheret1.session_id=t2.sid order by t2.logon_time;
2.根据sid查询该会话的具体sql语句
sql>select sql_text
fromv$session a ,v$sqltext_with_newlines b
where
DECODE(a.sql_hash_value,0 ,prev_hash_value,sql_hash_value)=b.hash_value
anda.sid=&sid order by piece;
3.可以记录 《2》中查询的sql语句,然后kill 该会话。
sql>alter system kill session'512,2186';
sql>selectt2.username,t2.sid,t2.serial#,t2.logon_time
2.根据sid查询该会话的具体sql语句
sql>select sql_text
3.可以记录 《2》中查询的sql语句,然后kill 该会话。
- Common Trouble Solution--解决锁…
- Common Trouble Solution--FRA OUT…
- Common Trouble Solution--CASE NE…
- Common Trouble Solution--处理引…
- Lesson 61 Trouble&nbsp…
- Solution for "Waiting for …
- Solution of Enable extension for…
- HDU 1423 Greatest Common Increas…
- HDOJ 4334 Trouble
- HDOJ 1019 Least Common Multipl…
- 解决 Android tex…
- Trouble shooting TNS-12560
- The Seven Percent Solution
- 解决:Some characters cannot be …
- Solution for "QAPABORT.dll is mi…
- Least Common Multiple
- 【RMQ&LCA】Nearest Common Ancest…
- 【RMQ&LCA】Closest Common Ancest…
- 人生不仅如此!
- 解决chm文档字体太小的问题
- About Trace Files
- 关于 adding a new disk or removi…
- recovery a read only tablespace
- Common Trouble Solution--解决锁…
- Common Trouble Solution--处理引…
- 三个参数对 redo、control文件位置…
- Common Trouble Solution--FRA OUT…
- Common Trouble Solution--CASE NE…
- ORADEBUG DOC <转载>
- 11gR2 新特性:Oracle Cluster Hea…
- 屌丝教你c++语言程序学习第一章
- 使RAC环境稳定运行的首要三件事 …