Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from smtp-aa.freelists.org (smtp-aa.freelists.org [23.23.80.81])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id E67021002BF951
 for <oracle-l@orafaq.com>; Mon, 25 Oct 2021 11:42:39 +0200 (CEST)
Received: from turing.freelists.org (ip-10-0-0-164.ec2.internal [10.0.0.164])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by smtp-aa.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 7F3E141669;
 Mon, 25 Oct 2021 09:42:37 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 692C03F97C;
 Mon, 25 Oct 2021 09:42:37 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1635154957;
 bh=wc/9G0hSjRbbFVWN3xo0p+x1lHKJYZDmKcK1fTCU8OI=;
 h=From:Sender:Sender:From;
 b=kNKCiLT6Xd6PpnYxQ5hjYuBoX+emhEfFwowebOrrQPjSZeS33FSx15zV2nifKcNFj
	 cFf+86+M4W7MBDkI0B8vbTgX2PLyikPbx+JDhC1X80Bu8hrOQgrLveFJ1ORrn1x4W2
	 4hybNVQm4HFkedhNMGiOExZ3Z7dHpBAUpF7255p8=
X-Virus-Scanned: by FreeLists 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 Dzo_kpILMwxC; Mon, 25 Oct 2021 09:42:37 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 79F953F97E;
 Mon, 25 Oct 2021 09:42:34 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1635154955;
 bh=wc/9G0hSjRbbFVWN3xo0p+x1lHKJYZDmKcK1fTCU8OI=;
 h=From:Sender:Sender:From;
 b=DaRCM2LOLnV44S3sdKXTgPUPZlYTk/Dz77p1qolIlFt593R462ulOwrjOO0NRAJX1
	 TPZaRSvZAdRFFWMFRTEBHfmetPwZlaoxse8/McPZJuG97wmiB5eMC2GvewooBZXirR
	 H86AZczABNc/zNKMA3iUnbD/KfNG6oCylW+JazYw=
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 25 Oct 2021 09:42:33 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 06FFF3F97B
 for <oracle-l@freelists.org>; Mon, 25 Oct 2021 09:42:33 +0000 (UTC)
Authentication-Results: turing.freelists.org;
 dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ii8T1Edf;
 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 peGRMLjyQaOj for <oracle-l@freelists.org>;
 Mon, 25 Oct 2021 09:42:32 +0000 (UTC)
Received: from mail-ua1-f46.google.com (mail-ua1-f46.google.com [209.85.222.46])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by turing.freelists.org (Postfix) with ESMTPS id E8B2B3F97A
 for <oracle-l@freelists.org>; Mon, 25 Oct 2021 09:42:32 +0000 (UTC)
Received: by mail-ua1-f46.google.com with SMTP id o12so16676813uap.0
        for <oracle-l@freelists.org>; Mon, 25 Oct 2021 02:42:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=j09aauxjuuPkaTUL/58lmpsUvOqfLjiB/ovwzCGEhXk=;
        b=JoDCm6wrHhqBsAlt5Vo96tp+4LyAn6tvBRJUyVUUcABv3+hnaQcjWWPCDYFVBcS67r
         JF/tjBh1OH38D2l7THef7PTKgB4CMflGQLsNk4kancbbCXHzI6mBQNET2Fe5FmgXdvy4
         pIYvHWzK4jxUYk6EwFffmHicubfOpWvnGT+PzZUdEyx9SYvvNJGA/hJJ9q9WfLhmnV5u
         O1kAz9QbBotU9oPTzaPuiQ31426geqQD15EkSAneOudQao26u6ePTU4jir8WAOKvrPfx
         iFI5At0hJpS6Ml2Ro0e90gAtD6wz9qfpmKPu/QGC556n1X0kkp3YSxiogPbzghUlnxm8
         Y0vA==
X-Gm-Message-State: AOAM5329ODxBYmbE1yETpD4qFq2ZCovn7kiHA21ETRdB2Dx1DuqxRjPw
 eHLmZDCx92+5S5XbZfTBpmJf6SlefgUOyFtrj0j1HXbqkpo=
X-Google-Smtp-Source: ABdhPJyvVuYBNOImd/NzMHCY/rs/9mYXhFGX7SSYtkcm8e0WdTcsKPZpA/a5T8OjT8mXb4lnQ5XtHCA0I13pPLmMp24=
X-Received: by 2002:ab0:494a:: with SMTP id a10mr13141515uad.90.1635154952307;
 Mon, 25 Oct 2021 02:42:32 -0700 (PDT)
MIME-Version: 1.0
From: Pap <oracle.developer35@gmail.com>
Date: Mon, 25 Oct 2021 15:12:21 +0530
Message-ID: <CAEjw_fgM4ap9hSyy+k_PodiKT7EMeefzOqqhXLNKvowpGnEX3g@mail.gmail.com>
Subject: Question on concurrency waits
To: Oracle L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="00000000000015c65c05cf2a2e40"
X-archive-position: 81227
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: oracle.developer35@gmail.com
Precedence: normal
Reply-To: oracle.developer35@gmail.com
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: <https://www.freelists.org/archive/oracle-l>
X-list: oracle-l
--00000000000015c65c05cf2a2e40
Content-Type: text/plain; charset="UTF-8"

Hi,  It's 11.2.0.4 Oracle database. We are suddenly seeing many application
sql queries running slow and are showing 'library cache lock'. And checking
the ASH for the exact time period when the issue started and the wait event
appeared, we found few SYS sessions were doing 'ALTER USER' from program
'passchng.exe' and we are not able to see exact statement from sql_text for
this (which may be because of its DDL and for DDL the AWR doesn't capture
the text as of 11.2.0.4). So I wanted to understand if the ALTER USER
command can cause such locking issues?

And also I see in the initial few minutes this session(Alter user session)
was showing 'library cache lock' and I don't know how to get more
information from the value of "handle address" but after some time, that
session was showing the 'row cache lock' with cache_id pointing to the
below cache objects. Are these can cause concurrency / "library cache lock"
for other application queries?

kqlsubheap_object

extensible security user and rol

extensible security principal pa

extensible security UID to princ

extensible security principal na

extensible security principal ne

XS security class privilege

qmtmrctp_cache_entries

qmtmrciq_cache_entries

--00000000000015c65c05cf2a2e40
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><p style=3D"font-family:&quot;Oracle Sans&quot;;word-break=
:break-word;line-height:inherit;color:rgb(85,90,98);font-size:16px;box-sizi=
ng:border-box;padding:0px;margin:8px 0px 16px;border:0px;vertical-align:bas=
eline;outline:0px;text-overflow:ellipsis;white-space:pre-wrap">Hi, =C2=A0It=
&#39;s 11.2.0.4 Oracle database. We are suddenly seeing many application sq=
l queries running slow and are showing &#39;library cache lock&#39;. And ch=
ecking the ASH for the exact time period when the issue started and the wai=
t event appeared, we found few SYS sessions were doing &#39;ALTER USER&#39;=
 from program &#39;passchng.exe&#39; and we are not able to see exact state=
ment from sql_text for this (which may be because of its DDL and for DDL th=
e AWR doesn&#39;t capture the text as of 11.2.0.4). So I wanted to understa=
nd if the ALTER USER command can cause such locking issues?</p><p style=3D"=
font-family:&quot;Oracle Sans&quot;;word-break:break-word;line-height:inher=
it;color:rgb(85,90,98);font-size:16px;box-sizing:border-box;padding:0px;mar=
gin:8px 0px 16px;border:0px;vertical-align:baseline;outline:0px;text-overfl=
ow:ellipsis;white-space:pre-wrap">And also I see in the initial few minutes=
 this session(Alter user session) was showing &#39;library cache lock&#39; =
and I don&#39;t know how to get more information from the value of &quot;ha=
ndle address&quot; but after some time, that session was showing the &#39;r=
ow cache lock&#39; with cache_id pointing to the below cache objects. Are t=
hese can cause concurrency / &quot;library cache lock&quot; for other appli=
cation queries?</p><p style=3D"font-family:&quot;Oracle Sans&quot;;word-bre=
ak:break-word;line-height:inherit;color:rgb(85,90,98);font-size:16px;box-si=
zing:border-box;padding:0px;margin:8px 0px 16px;border:0px;vertical-align:b=
aseline;outline:0px;text-overflow:ellipsis;white-space:pre-wrap">kqlsubheap=
_object<br></p><p style=3D"font-family:&quot;Oracle Sans&quot;;word-break:b=
reak-word;line-height:inherit;color:rgb(85,90,98);font-size:16px;box-sizing=
:border-box;padding:0px;margin:8px 0px 16px;border:0px;vertical-align:basel=
ine;outline:0px;text-overflow:ellipsis;white-space:pre-wrap">extensible sec=
urity user and rol</p><p style=3D"font-family:&quot;Oracle Sans&quot;;word-=
break:break-word;line-height:inherit;color:rgb(85,90,98);font-size:16px;box=
-sizing:border-box;padding:0px;margin:8px 0px 16px;border:0px;vertical-alig=
n:baseline;outline:0px;text-overflow:ellipsis;white-space:pre-wrap">extensi=
ble security principal pa</p><p style=3D"font-family:&quot;Oracle Sans&quot=
;;word-break:break-word;line-height:inherit;color:rgb(85,90,98);font-size:1=
6px;box-sizing:border-box;padding:0px;margin:8px 0px 16px;border:0px;vertic=
al-align:baseline;outline:0px;text-overflow:ellipsis;white-space:pre-wrap">=
extensible security UID to princ</p><p style=3D"font-family:&quot;Oracle Sa=
ns&quot;;word-break:break-word;line-height:inherit;color:rgb(85,90,98);font=
-size:16px;box-sizing:border-box;padding:0px;margin:8px 0px 16px;border:0px=
;vertical-align:baseline;outline:0px;text-overflow:ellipsis;white-space:pre=
-wrap">extensible security principal na</p><p style=3D"font-family:&quot;Or=
acle Sans&quot;;word-break:break-word;line-height:inherit;color:rgb(85,90,9=
8);font-size:16px;box-sizing:border-box;padding:0px;margin:8px 0px 16px;bor=
der:0px;vertical-align:baseline;outline:0px;text-overflow:ellipsis;white-sp=
ace:pre-wrap">extensible security principal ne</p><p style=3D"font-family:&=
quot;Oracle Sans&quot;;word-break:break-word;line-height:inherit;color:rgb(=
85,90,98);font-size:16px;box-sizing:border-box;padding:0px;margin:8px 0px 1=
6px;border:0px;vertical-align:baseline;outline:0px;text-overflow:ellipsis;w=
hite-space:pre-wrap">XS security class privilege</p><p style=3D"font-family=
:&quot;Oracle Sans&quot;;word-break:break-word;line-height:inherit;color:rg=
b(85,90,98);font-size:16px;box-sizing:border-box;padding:0px;margin:8px 0px=
 16px;border:0px;vertical-align:baseline;outline:0px;text-overflow:ellipsis=
;white-space:pre-wrap">qmtmrctp_cache_entries</p><p style=3D"font-family:&q=
uot;Oracle Sans&quot;;word-break:break-word;line-height:inherit;color:rgb(8=
5,90,98);font-size:16px;box-sizing:border-box;padding:0px;margin:8px 0px 16=
px;border:0px;vertical-align:baseline;outline:0px;text-overflow:ellipsis;wh=
ite-space:pre-wrap">qmtmrciq_cache_entries</p><p style=3D"font-family:&quot=
;Oracle Sans&quot;;word-break:break-word;line-height:inherit;color:rgb(85,9=
0,98);font-size:16px;box-sizing:border-box;padding:0px;margin:8px 0px 16px;=
border:0px;vertical-align:baseline;outline:0px;text-overflow:ellipsis;white=
-space:pre-wrap">

</p></div>

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


