Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id D7A071002C0611
 for <oracle-l@orafaq.com>; Sun,  2 Feb 2020 19:28:18 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E413325F10;
 Sun,  2 Feb 2020 13:28:16 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1580668097;
 bh=wmTle9aWlWssBpoA8JjVVremIGBvujNxSGmUns6QLLs=;
 h=From:Sender:Sender:From;
 b=w1vRMhaLSjvTdMnoyCr35RCS6oU9XjZV6ieYuwBEGjgkz5KBMTOzomjI61SghqKkK
	 AcwFcRQGYyh688mwxZxUp+X7zkT7uvq2oIqqqm9SC0ZKCv8XDwGMChhO/rSbm566Xb
	 qh8KozVbGFjNOu9N+ErLeydaKmGyN+VQ5iVOmP3Y=
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 I-ud4WmYytpv; Sun,  2 Feb 2020 13:28:16 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A9BAD25EC7;
 Sun,  2 Feb 2020 13:27:29 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1580668094;
 bh=wmTle9aWlWssBpoA8JjVVremIGBvujNxSGmUns6QLLs=;
 h=From:Sender:Sender:From;
 b=OF+Zv0v/aNPAXtIyWp1w6SQNb5JC4TtO9tE6jOjXzAo4ocspcvjFaq5i/ckiwAp/5
	 Uq9bouh7LoMw46WDHU/rgGyYvd6fbvWsVQmYZvjKQpnHuAWW1KoF9GUvXM42wGDKBh
	 IafC7T6f4zo1HAiYvmC4KgCsK7d4c0nuhBt5P9aY=
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 02 Feb 2020 13:26:44 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4F9D625E98
 for <oracle-l@freelists.org>; Sun,  2 Feb 2020 13:26:44 -0500 (EST)
Authentication-Results: turing.freelists.org;
 dkim=pass (1024-bit key; unprotected) header.d=jlcompdemononcascade.onmicrosoft.com header.i=@jlcompdemononcascade.onmicrosoft.com header.b="XroZ8ksn";
 dkim-atps=neutral
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 r0C-FZKqSoXi for <oracle-l@freelists.org>;
 Sun,  2 Feb 2020 13:26:44 -0500 (EST)
Received: from GBR01-LO2-obe.outbound.protection.outlook.com (mail-eopbgr100077.outbound.protection.outlook.com [40.107.10.77])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id DA1E725E92
 for <oracle-l@freelists.org>; Sun,  2 Feb 2020 13:26:43 -0500 (EST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=CWKCtqNt9ce1wcvINnzN4HjxXgrWAjbMf80xm0QbfbqOYCwzRrlWailG+z8Q5zOVvurhbaQhAySVbsk4wQnTyVUI2glxDpqEI6JKQpb01cc9i8Avr3SYC3+jznfL8pVx2Lx8MBG6c0f3qu/a4RZ+2GJNteopNpEfpiGpFbiWijNHrhOQ/IawxVjnuV6v2YscxN8Ov2ST/i5kzn72oG8f2A1RrUZ3/I/Zvi2oZuqJbtCQL+MSkWrbXoJaRqiILrlYEfP1fgdudzDp1/KzJK9smwpjINjYtEfQRAITUmVs9anKOHCNaeUIEjQNTwCLRJyfeG4J/xjCBku/dOcesq+v1g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=eKL+7fqXOmFsXuFAy7rhMGRYyPwmlD9R6KpSw7h4dRU=;
 b=IkUH8uVeM8thj5P2O1maQ6j+ooHHhJezByZ7c3B9pvepbcHqVQAPc32F4sHF/eOsBjk2CdXMm9hHZz0pV5kRHzE7WF4PDg54O9hXEq6aWd1q8KCWpSiY+iSkJ9ALZfKTbh09htB3EWpOF4UU75OCNU3jKZJ1D/jPnsd6n+c0oVbjDF8fvIk63xV+lYmfCpQ+GO3AMHag7UXbC9fXg79Ynkfl6h5oTwhqnI9zvJI/X/2rS5d7IId6yZbh/AdnZEMjLTxEWEdWEZ+ZsFXh8bZpjiFmgKQIw297PRacxE0O+L7TUPCSWnYl6lZX41qiIg75IqG780C2ApUGps1hwZPM5w==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=jlcomp.demon.co.uk; dmarc=pass action=none
 header.from=jlcomp.demon.co.uk; dkim=pass header.d=jlcomp.demon.co.uk;
 arc=none
Received: from LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM (20.176.130.21) by
 LNXP265MB0107.GBRP265.PROD.OUTLOOK.COM (10.166.180.22) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.2686.27; Sun, 2 Feb 2020 18:26:40 +0000
Received: from LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM
 ([fe80::d5:ae78:8c0e:c207]) by LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM
 ([fe80::d5:ae78:8c0e:c207%6]) with mapi id 15.20.2686.031; Sun, 2 Feb 2020
 18:26:40 +0000
From: Jonathan Lewis <jonathan@jlcomp.demon.co.uk>
To: ORACLE-L <oracle-l@freelists.org>
Subject: Re: wait event name for deferred constraints
Thread-Topic: wait event name for deferred constraints
Date: Sun, 2 Feb 2020 18:26:40 +0000
Message-ID: 
 <LNXP265MB15626E7073F643E153F0CB21A5010@LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM>
References: 
 <BN8PR04MB5569E846C3D81A7CDAC45ED0DD070@BN8PR04MB5569.namprd04.prod.outlook.com>
In-Reply-To: 
 <BN8PR04MB5569E846C3D81A7CDAC45ED0DD070@BN8PR04MB5569.namprd04.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is )
 smtp.mailfrom=jonathan@jlcomp.demon.co.uk; 
x-originating-ip: [86.140.148.162]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: bf9848c7-7dbd-4ba5-6d8f-08d7a80d727c
x-ms-traffictypediagnostic: LNXP265MB0107:
x-microsoft-antispam-prvs: 
 <LNXP265MB01077E60375F7A727AE55EE6A5010@LNXP265MB0107.GBRP265.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0301360BF5
x-forefront-antispam-report: 
 SFV:NSPM;SFS:(10009020)(396003)(376002)(136003)(346002)(39830400003)(366004)(189003)(199004)(53546011)(6506007)(8676002)(5660300002)(81166006)(81156014)(76116006)(52536014)(8936002)(71200400001)(66476007)(66556008)(64756008)(66446008)(9686003)(66946007)(26005)(7696005)(316002)(55016002)(86362001)(2906002)(33656002)(186003)(6916009)(508600001);DIR:OUT;SFP:1101;SCL:1;SRVR:LNXP265MB0107;H:LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:0;
received-spf: None (protection.outlook.com: jlcomp.demon.co.uk does not
 designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 
 ef8N+80BeKDEbbwyfRd9hzfIBFfTmjKyDa0mt38m+Gyp2F1Fs29EHjoSgRCC+iRkRWEr/P2+w4tz/UaGvKOGw/5yOmpXqPwN70A0jeUW9/7jEh1nKdKqC/OUyB8vtQgcAyPgbBZTN4CZF23DkQgN+cPZG/MgXjV6ucLRPH0SRsYcIz2X136IVKv8ArC5GcTRxIxWTGNfOBNtNvvLA3RGoM1gM/OE5R9s+Mij76iQyfALT5ILPJRInGs/becipnG3/CenIPzXtmvAq/mdi6T+3Ekq3bubN2EzECI9Q8Dp2CMQBzbaFGfCjchGNOJU8Lwbqd0h/iYMFnBapFw0asZ64SZ9tHlEYNP0eN1DRMPVP1tK0Xw4k6gOUICnM5eCYxIPWAh3yIeIOujJaFHk9gdX1aL+9GNgj6+HC4vPQqDIlUF5H4ttwvVahijZO+/veb0P
x-ms-exchange-antispam-messagedata: 
 R2sPTCEetye8jR2F8y/AarCF+83WMNJwh1t/T+hyJwttMs+f1RsISxS3uzWNAxQq6pxlX/o4SSW8vHR4btZ0a+WGPDorfaaI7H/3AWkRFaAUDPwp9gW4K817le4WOoKLsyJnRW4ZiWSlQfbaEbOYng==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: jlcomp.demon.co.uk
X-MS-Exchange-CrossTenant-Network-Message-Id: bf9848c7-7dbd-4ba5-6d8f-08d7a80d727c
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2020 18:26:40.4373
 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: c5ec3dea-08bd-405e-942c-f61dff9a4831
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6g5GoR5gpOn/QBVZjnaF7efv0c6Fc6TuTF5agpO0IH9mKKVT4GP6uz1vT2OrJmCdA469GPA1OulOWfSHIWoVXtW5KtgQElhrebT8dnl/R8g=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LNXP265MB0107
X-archive-position: 76135
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: <mailto: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: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

I don't think you'll see any special wait event relating to deferreable con=
straints and concurrent activity. I think the last time I took a (casual) l=
ook if you had two sessions which had set their constraints to deferred and=
 then tried to execute SQL that produced collisions the waits that appeared=
 where essentially the same as they would have been if the constraints had =
not been deferrable.

e.g. inserting the same PK value from TWO sessions at the same time when th=
e value was already present as a committed row  - the first session would b=
e allowed to insert the row but the second would wait for the first on the =
(normal) "enq: TX - row lock contention".  If you then try to commit the fi=
rst transaction Oracle rolls back the first session with the duplicate key =
error and the second session succeeds in its attempt to insert the duplicat=
e .... until it tries to commit and gets rolled back.

There may be combinations of actions and deferrability that could result in=
 something different happening, but I would be a little surprised if there =
were. I didn't try and catalogue and test all the possible  combinations, t=
hough.

Regards
Jonathan Lewis


________________________________________
From: oracle-l-bounce@freelists.org <oracle-l-bounce@freelists.org> on beha=
lf of McPeak, Matt (Consultant) <vxsmimmcp@subaru.com>
Sent: 31 January 2020 18:30
To: ORACLE-L
Subject: wait event name for deferred constraints

If I have =93FAST REFRESH ON COMMIT=94 materialized view, multiple sessions=
 causing refreshes may experience an =93enq: JI =96 contention=94 wait even=
t.

I assume a similar serialization has to happen to enforce deferred constrai=
nts?  If that is true, does anyone know what the wait event would be?

Thanks!
Matt

--
http://www.freelists.org/webpage/oracle-l


