Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from puck1183.startdedicated.com (localhost [127.0.0.1])
 by puck1183.startdedicated.com (Postfix) with ESMTP id 49A9A19600DD
 for <oracle-l@orafaq.com>; Fri,  9 Sep 2016 15:47:44 +0200 (CEST)
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by puck1183.startdedicated.com (Postfix) with ESMTPS
 for <oracle-l@orafaq.com>; Fri,  9 Sep 2016 15:47:44 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D4DCD2CC0F;
 Fri,  9 Sep 2016 09:47:42 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id C8kuvWxJY-rv; Fri,  9 Sep 2016 09:47:42 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E0CBB2CBF7;
 Fri,  9 Sep 2016 09:47:29 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 09 Sep 2016 09:46:08 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EB5BB2CBCF
 for <oracle-l@freelists.org>; Fri,  9 Sep 2016 09:46:07 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 4VUEXoAatoHR for <oracle-l@freelists.org>;
 Fri,  9 Sep 2016 09:46:07 -0400 (EDT)
Received: from smtp.demon.co.uk (mdfmta001.mxout.tch.inty.net [91.221.169.42])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 696212CBCB
 for <oracle-l@freelists.org>; Fri,  9 Sep 2016 09:46:07 -0400 (EDT)
Received: from mdfmta001.tch.inty.net (unknown [127.0.0.1])
 by mdfmta001.tch.inty.net (Postfix) with ESMTP id 7C1FA874070
 for <oracle-l@freelists.org>; Fri,  9 Sep 2016 14:46:05 +0100 (BST)
Received: from mdfmta001.tch.inty.net (unknown [127.0.0.1])
 by mdfmta001.tch.inty.net (Postfix) with ESMTP id 3388C87406B
 for <oracle-l@freelists.org>; Fri,  9 Sep 2016 14:46:05 +0100 (BST)
Received: from HVUT01.thus.corp (unknown [91.221.168.140])
 (using TLSv1 with cipher AES128-SHA (128/128 bits))
 (No client certificate requested)
 by mdfmta001.tch.inty.net (Postfix) with ESMTP
 for <oracle-l@freelists.org>; Fri,  9 Sep 2016 14:46:05 +0100 (BST)
Received: from EXMBX05.thus.corp ([169.254.5.129]) by HVUT01.thus.corp
 ([192.168.70.41]) with mapi id 14.03.0158.001; Fri, 9 Sep 2016 14:43:53 +0100
From: Jonathan Lewis <jonathan@jlcomp.demon.co.uk>
To: Oracle-l Digest Users <oracle-l@freelists.org>
Subject: RE: Holder query in lock
Thread-Topic: Holder query in lock
Date: Fri, 9 Sep 2016 13:42:06 +0000
Message-ID: <CE70217733273F49A8A162EE074F64D9015033B8AC@exmbx05.thus.corp>
References: <1986011603.1839367.1473428242320.ref@mail.yahoo.com>,<1986011603.1839367.1473428242320@mail.yahoo.com>
In-Reply-To: <1986011603.1839367.1473428242320@mail.yahoo.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [86.191.150.53]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MDF-HostID: 14
X-archive-position: 66180
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: jonathan@jlcomp.demon.co.uk
Precedence: normal
Reply-To: jonathan@jlcomp.demon.co.uk
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:mark.bobak@proquest.com>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

=0A=
But a single transaction could be made up of multiple DML statements, and m=
ultiple statements from the same transaction might have modified the same t=
able, and multiple copies of the same statement might have modified the sam=
e table, and recursive statements (e.g. from "on delete cascade") might be =
responsible for the actual block rather than the statement that the client =
program ran.=0A=
=0A=
If Oracle were to implement a way to track which SQL_ID was the blocking st=
atement they would actually need to record FOR EVERY ROW MODIFIED by a tran=
saction which execution of which statement blocked that row, and which stat=
ement(s) - if any -  was the parent of of the blocking statement.=0A=
=0A=
=0A=
Regards=0A=
Jonathan Lewis=0A=
http://jonathanlewis.wordpress.com=0A=
@jloracle=0A=
=0A=
________________________________________=0A=
From: oracle-l-bounce@freelists.org [oracle-l-bounce@freelists.org] on beha=
lf of Yong Huang [dmarc-noreply@freelists.org]=0A=
Sent: 09 September 2016 14:37=0A=
To: Oracle-l Digest Users=0A=
Cc: lsantos@pobox.com=0A=
Subject: Re: Holder query in lock=0A=
=0A=
> But is there a simple way (without any trace) to discover to the=0A=
> SQL_ID that locked the rows related to blocker lock?=0A=
=0A=
This is a feature Oracle should have provided a long time ago because so ma=
ny people have asked for it. I filed a feature request. (For those who can =
see, it is: "Severity 4 SR 3-12200129251 : Request for ID of SQL responsibl=
e for transaction to be added to v$transaction") As far as I know, unless y=
ou trace or audit the session from at least the point the transaction start=
s, or using LogMiner (as Stefan and Dominic suggested), there's no reliable=
 way to find the initial DML SQL that creates the transaction. I have check=
ed data dictionary for any possible view that contains both SCN and SQL col=
umns, and all events related to transactions.=0A=
=0A=
Yong Huang=0A=
--=0A=
http://www.freelists.org/webpage/oracle-l=0A=
=0A=
=0A=
--
http://www.freelists.org/webpage/oracle-l


