Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from smtp-ab.freelists.org (smtp-ab.freelists.org [34.228.148.125])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 8361A1002D842C
 for <oracle-l@orafaq.com>; Sat, 11 Nov 2023 01:10:17 +0100 (CET)
Received: from turing.freelists.org (turing [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-ab.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 7398840671;
 Sat, 11 Nov 2023 00:10:16 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 4C0FA3F778;
 Sat, 11 Nov 2023 00:10:16 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1699661416;
 bh=SpVKoBfliqMHoVzgyt4gAH+A5prGmnioI6nejqMu1qg=;
 h=From:Sender:Sender:From;
 b=X/mXnEbrzZWlH3LtyqZ4G5oyAYebDhGPb/DuIH20jhfAwUn60Q7Mc2NUmjCM1xnnw
	 7OV/ZEsOV4/cdrjmMLhXbpvUEX0eIauX8qraNInpLotsmjmmeGrGHzNBkVW7axA39n
	 M952a1rTu5Y1G25tOYg7XNvDkQNs6+xJNYIPEA8Y=
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 TFY_JVneadZ9; Sat, 11 Nov 2023 00:10:16 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 7773A3F769;
 Sat, 11 Nov 2023 00:09:30 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1699661414;
 bh=SpVKoBfliqMHoVzgyt4gAH+A5prGmnioI6nejqMu1qg=;
 h=From:Sender:Sender:From;
 b=tQcZo+pE0eHBfUaRdREpCEgH6YiYijbrNQZB9nDELEhhXCkbKHjLeDuqVU9Tatzw3
	 TSeEcF3t2/PGZZqpeJFTgKHRjcIV+XqxsltnH3uTB9TSBjsRXye3r1R1IndiRGhThL
	 fy8hLui6HqVwF+3hh7swEIExr73no6NLsXAY6jl0=
Received: with ECARTIS (v1.0.0; list oracle-l); Sat, 11 Nov 2023 00:08:45 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 7AA533F75D
 for <oracle-l@freelists.org>; Sat, 11 Nov 2023 00:08:45 +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=20230601 header.b=ClhlVuRM;
 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 Cd7sWSdCm5H0 for <oracle-l@freelists.org>;
 Sat, 11 Nov 2023 00:08:45 +0000 (UTC)
Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176])
 (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 4FE503F50B
 for <oracle-l@freelists.org>; Sat, 11 Nov 2023 00:08:45 +0000 (UTC)
Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2c4fdf94666so33098211fa.2
        for <oracle-l@freelists.org>; Fri, 10 Nov 2023 16:08:45 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1699661324; x=1700266124;
        h=to:subject:message-id:date:from:in-reply-to:references:mime-version
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
        bh=TphjU9dZHMTd6JeviapXIZEOVruY9efXHNZOU+TuW6c=;
        b=HA8q0+1kaSxJJ+P2gXk89aTrAEpFF5PlhXIzsauJaqViHEvmf+RxX3LFVRJ/aoah82
         YJWmpdxKBXSyXqI1Hq6KYiL3i8XaVR5o3PCcyLFa3YnPTOLVdXYs5T+NsP5o5nVcSNHJ
         q2kSwtlyt06razlXUzddUG4urOAiebSgLnkrLCYHMmiBAvK7yIywR0crufd2rqvcaShV
         Wa+bWEN40XgLOCVlsRTklMLBGoo8VTyHrNxVWhYVijz+kXrd7f8eJ8LMvA/YkSx+PkXy
         IvsjMqb52u4gnGuf6mhiFuMhOd061XzD3dA26kyAb2WOweNCbBKjnrVoBCD7bwsgT+wm
         WqYQ==
X-Gm-Message-State: AOJu0YyFFGBLJdGCHg16CWFTK/LQquYlIGZM8DKvqDZlxHt7eVwx6IPr
 cTnuLGipgnwauwQzYRCGe7Eiq7dwy69i2fDK5sYANVW0
X-Google-Smtp-Source: AGHT+IGS4qcyExpOApqoZR1Gok20nVw11N8/TB8lSN2+PvCyE1ma0wicYyNqrZout7zpRdGDmYgrN0OmkGFoyMMYH4M=
X-Received: by 2002:a05:651c:c85:b0:2c5:169f:ff03 with SMTP id
 bz5-20020a05651c0c8500b002c5169fff03mr662698ljb.5.1699661323652; Fri, 10 Nov
 2023 16:08:43 -0800 (PST)
MIME-Version: 1.0
References: <SN7PR14MB6470D41DF43F49D0BCB7CF5FE0A8A@SN7PR14MB6470.namprd14.prod.outlook.com>
 <CAGtsp8no7DNGXnJzsfBE-nGgt8UmVMzRPTLe8VFXxnEEuLWbig@mail.gmail.com>
 <SN7PR14MB647090B140548036B90FB20CE0AEA@SN7PR14MB6470.namprd14.prod.outlook.com>
 <CAGtsp8m=0qYLJp42hjNe_--YYb6YqNVysPjqjrcKhPC8WK7pCw@mail.gmail.com> <a608534c-8880-4098-ad2b-b54ffeeca6ff@gmail.com>
In-Reply-To: <a608534c-8880-4098-ad2b-b54ffeeca6ff@gmail.com>
From: Jonathan Lewis <jlewisoracle@gmail.com>
Date: Sat, 11 Nov 2023 00:08:31 +0000
Message-ID: <CAGtsp8mvK7Q+BGkZsLK5-Ju8-cEbwNbOm2YQMP+VLcqnzxGPkQ@mail.gmail.com>
Subject: Re: [EXTERNAL] Re: enq: TS - contention
To: oracle-l@freelists.org
Content-Type: multipart/alternative; boundary="0000000000006f53da0609d53d89"
X-archive-position: 84549
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: jlewisoracle@gmail.com
Precedence: normal
Reply-To: jlewisoracle@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
--0000000000006f53da0609d53d89
Content-Type: text/plain; charset="UTF-8"

Mostly the source would probably be in Oracle Core. If not then in the
notes on my laptop of tests I've done in the past.

The meaning of the parameters is listed in v$event_name (though some of the
descriptions may be a little out of date)  Enabling event 10704 at various
levels used to produce interesting traces of locks but from 11g you can
execute (e.g.): *alter session set events 'trace[ksq] disk=high'* then do
some things that require tablespace space management to see what TS enqueue
information appears in the trace files.

The note you've referenced is very old and has various bits of information
that are out of date, and links to other notes that are out of date or
wrong, so I wouldn't put much faith in it - despite "update dates" being in
the recent past.

Regards
Jonathan Lewis




On Fri, 10 Nov 2023 at 21:15, Mladen Gogala <gogala.mladen@gmail.com> wrote:

> On 11/10/23 15:58, Jonathan Lewis wrote:
>
> P1 = convert to hex = 0x5453 0003:  the top half is equivalent to 'TS';
> the 0003 is the v$lock mode (which means it's not about creating or
> dropping segments which require mode 6
>
> P2 = 0x0003 0003 -> the top half says it's con_id 3 (which usually means
> the first PDB after the seed - see v$pdbs to check), the bottom half is the
> tablespace id (ts# from v$tablespaces in the PDB).
>
> p3 is (should be) the tablespace relative block number, which means it's
> block 2 you're waiting for.
>
> A block number that low would have to come from the one file allocated to
> a "bigfile" tablespace, so if the tablespace isn't bigfile then there's
> another interpretation of p2 and p3 that I don't know about.
>
> Block 2 of the file is the "File Space Header" - so the next step is to
> find out why a session got stuck waiting for it ... possibly something to
> do with the file being extended and a process losing track of what was
> going on and not clearing a flag - or maybe space allocation from the O/S
> just took a very long time.  I don't have any further ideas at the moment.
> It does give you a pointer to questions you could ask of Oracle Support.
>
>
> Regards
> Jonathan Lewis
>
> Jonathan, can you please provide source for this? I found the reference
> note, but it doesn't contain the information about P1/2/3. Can you please
> post the document id?
>
> Regards
>
> --
> Mladen Gogala
> Database Consultant
> Tel: (347) 321-1217https://dbwhisperer.wordpress.com
>
>

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

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><br><div>Mostl=
y the source would probably be in Oracle Core. If not then in the notes on =
my laptop of tests I&#39;ve done in the past.</div><div>=C2=A0</div><div>Th=
e meaning of the parameters is listed in v$event_name (though some of the d=
escriptions may be a little out of date)=C2=A0 Enabling event 10704 at vari=
ous levels used to produce interesting traces of locks but from 11g you can=
 execute (e.g.):=C2=A0<b><i>alter session set events &#39;trace[ksq] disk=
=3Dhigh&#39;</i></b> then do some things that require tablespace space mana=
gement to see what TS enqueue information appears in the trace files.</div>=
<div><br></div><div>The note you&#39;ve referenced is very old and has vari=
ous bits of information that are out of date, and links to other notes that=
 are out of date or wrong, so I wouldn&#39;t put much faith in it - despite=
 &quot;update dates&quot; being in the recent past.=C2=A0</div><div><br></d=
iv><div>Regards</div><div>Jonathan Lewis</div><div><br></div><div><br></div=
><div>=C2=A0</div></div></div></div></div></div></div></div></div><br><div =
class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, 10 Nov =
2023 at 21:15, Mladen Gogala &lt;<a href=3D"mailto:gogala.mladen@gmail.com"=
 target=3D"_blank">gogala.mladen@gmail.com</a>&gt; wrote:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex"><u></u>

 =20
   =20
 =20
  <div>
    <div>On 11/10/23 15:58, Jonathan Lewis
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
      <div>P1 =3D convert to hex =3D 0x5453 0003:=C2=A0 the top half is
        equivalent to &#39;TS&#39;;=C2=A0 the 0003 is the v$lock mode (whic=
h means
        it&#39;s not about creating or dropping segments which require mode
        6</div>
      <div><br>
      </div>
      <div>P2 =3D 0x0003 0003 -&gt; the top half says it&#39;s con_id 3 (wh=
ich
        usually means the first PDB after the seed - see v$pdbs to
        check), the bottom half is the tablespace id (ts# from
        v$tablespaces in the PDB).</div>
      <div><br>
      </div>
      p3 is (should be) the tablespace relative block number, which
      means it&#39;s block 2 you&#39;re waiting for.
      <div><br>
      </div>
      <div>A block number that low would have to come from the one file
        allocated to a &quot;bigfile&quot; tablespace, so if the tablespace=
 isn&#39;t
        bigfile then there&#39;s another interpretation of p2 and p3 that I
        don&#39;t know about.</div>
      <div><br>
      </div>
      <div>Block 2 of the file is the &quot;File Space Header&quot; - so th=
e next
        step is to find out why a session got stuck waiting for it ...
        possibly something to do with the file being extended and a
        process losing track of what was going on and not clearing a
        flag - or maybe space allocation from the O/S just took a very
        long time.=C2=A0 I don&#39;t have any further ideas at the moment. =
It
        does give you a pointer to questions you could ask of Oracle
        Support.</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>Regards</div>
      <div>Jonathan Lewis</div>
    </blockquote>
    <p>Jonathan, can you please provide source for this? I found the
      reference note, but it doesn&#39;t contain the information about
      P1/2/3. Can you please post the document id?</p>
    <p>Regards<br>
    </p>
    <pre cols=3D"72">--=20
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
<a href=3D"https://dbwhisperer.wordpress.com" target=3D"_blank">https://dbw=
hisperer.wordpress.com</a>
</pre>
  </div>

</blockquote></div>

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


