Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Can I find out what SQL a trascation try to exec ?

Re: Can I find out what SQL a trascation try to exec ?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Wed, 19 Jan 2000 14:09:51 GMT
Message-ID: <3885c537.6896726@news.demon.nl>


On Wed, 19 Jan 2000 19:01:43 +0800, "Ken Gibson" <kengibz_at_singnet.com.sg> wrote:

>Hi,
> Base a trascantion id, can I find the SQL that the transaction try to
>exec ? Can I find it in V$SQL ?
>
>
>--
>Best Regard
>
>Ken
>
>

You need to join v$session and v$sqltext_with_newline. The join columns are the sql_addr(ess) and the hash_value. I always use the sid and the serial# to locate the session, sid and serial are without doubt in v$lock and the like.

Hth,

Sybrand Bakker, Oracle DBA Received on Wed Jan 19 2000 - 08:09:51 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US