---
title: "oracle 查询锁SQL"
author: "absolute"
date: "2009-07-23T15:55:42Z"
tags: []
slug: "oracle-sql"
draft: false
lastmod: "2009-07-23T15:55:42Z"
id: 431597
url: "https://absolute.iteye.com/blog/431597"
---

```
SELECT a.username,
a.machine,
a.program,
a.sid,
a.serial#,
a.status,
c.piece,
c.sql_text
FROM v$session a,
v$sqltext c
WHERE a.sid = 139
and a.sql_address=c.address(+)
ORDER BY c.piece
```