Find out session ID of blocked processes and kill it
来源:互联网 发布:沟通误区 知乎 编辑:程序博客网 时间:2024/06/06 14:16
Find out session ID with below script:
select spid 被锁进程ID,
blocked 锁进程ID,
status 被锁状态,
SUBSTRING(SUSER_SNAME(sid),1,30) 被锁进程登陆帐号,
SUBSTRING(hostname,1,12) 被锁进程用户机器名称,
SUBSTRING(DB_NAME(a.dbid),1,10) 被锁进程数据名称,
cmd 被锁进程命令,
waittype 被锁进程等待类型,b.text SQL
FROM master..sysprocesses a
CROSS APPLY sys.dm_exec_sql_text(a.sql_handle) b
WHERE blocked>0 AND spid<>blocked
Kill session ID:
Kill <session ID>
- Find out session ID of blocked processes and kill it
- find out deadlock processid and kill it
- Rational AppScan Standard has detected it is out-of-session and is trying to re-login
- Process ID and special processes
- [乐意黎转载]Adobe Flash has been blocked because it's out of date
- Kill session of oracle10g
- Communications of Processes and Threads
- A discussion of Dead Connection Detection, Resource Limits, V$SESSION, V$PROCESS and OS processes
- "killall" to kill a group of processes on linux
- How to create and kill processes on remote PC
- Display Locks and Gives the SID and Serial Number of the session to kill
- Oracle EBS R12 - SQL to find session ID of the running request from request ID
- adb server is out of date.kill...
- Out of memory: Kill process 问题
- 解锁 kill blocked spids
- ERROR-Agent is blocked. Blocked reason is: Agent is out-of-sync with repository
- Kill Child Processes
- Weblogic 10g: How to find out JNDI name of EJB Session Bean
- C# 文件操作必须要掌握的几个类(一)
- 图像采集卡
- 给DEDE织梦评论增加加粗,加色,图片,链接
- 开题前思
- WebService基于SoapHeader实现安全认证
- Find out session ID of blocked processes and kill it
- 懂了就简单
- javascript实现页面跳转
- C#中索引器的概述
- 关于WinInet HttpSendRequest使用的事项
- 我的第一个博客
- 灵感之源
- 踏青 扫墓
- 杀毒软件介绍