---
title: "ORACLE10G清除死锁进程 "
author: "caowei3047"
date: "2011-09-15T10:10:03Z"
tags: []
categories: ["数据库"]
slug: "oracle10g"
draft: false
lastmod: "2011-09-15T10:10:03Z"
id: 1172244
url: "https://caowei3047.iteye.com/blog/1172244"
---

select Distinct 'alter system kill session '||chr(39)||b.sid||','||b.serial#||chr(39)||';'As 组装语句在RAC执行时区分节点,b.username,b.logon\_time

from v$locked\_object a,v$session b

where a.session\_id=b.sid

order by b.logon\_time;;