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 88ED2100315740
 for <oracle-l@orafaq.com>; Tue, 21 Dec 2021 16:39:39 +0100 (CET)
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 85700416F3;
 Tue, 21 Dec 2021 15:39:38 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 70EB240327;
 Tue, 21 Dec 2021 15:39:38 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1640101178;
 bh=IG68Pcm3G3YxS/9R1edpmTL4C9M+lNOYRm2e6EmY0yA=;
 h=From:Sender:Sender:From;
 b=LJjDgeLZ9F5FDVe6dxqCrzPEESFinqM4qxQKsiEwCqtL6+w3p2qNEMD7TIm208w3l
	 jx868Mb3PcvFj2oYOE4dJ5h8fgFZgVyv38p1vX4eD2dklW2fr5m8EodAySSTKMUELu
	 JLMMRApud8TMBykTo6wan8HZBD9xy0Nyf7PxMi9I=
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 BzCSi_BPDs4x; Tue, 21 Dec 2021 15:39:38 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 67EB540340;
 Tue, 21 Dec 2021 15:39:35 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1640101176;
 bh=IG68Pcm3G3YxS/9R1edpmTL4C9M+lNOYRm2e6EmY0yA=;
 h=From:Sender:Sender:From;
 b=qot9zbTlUkzzl8M8+6DDw5gMgIsoPeXajqc5gyyMvssxtYu6u04NBnnsA4M8ODt1s
	 AVJCfG/Q7Kt8g6QJ9FOsgOedpn8Suf7bctQEy29WP0ax8A1YSHkLSDdoedRiXQcPWg
	 dvcXNYgc7h8/4R7AlDpgbGdCZViW/2YE0SiXKxF8=
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 21 Dec 2021 15:39:33 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id D2E3B40106
 for <oracle-l@freelists.org>; Tue, 21 Dec 2021 15:39: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=XGRsdrQJ;
 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 JVW8sLNysBrw for <oracle-l@freelists.org>;
 Tue, 21 Dec 2021 15:39:33 +0000 (UTC)
Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178])
 (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 C0E8E400B0
 for <oracle-l@freelists.org>; Tue, 21 Dec 2021 15:39:33 +0000 (UTC)
Received: by mail-pg1-f178.google.com with SMTP id v25so7569764pge.2
        for <oracle-l@freelists.org>; Tue, 21 Dec 2021 07:39:33 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:cc;
        bh=ULHGAs29N9YF65DPs/osKkoKuB37CCAZH4XZ0s17XeQ=;
        b=3yh5ZTL/7sbkVfCUg46HbjlqRLaXbFVvHh1ymHd+OZBqvjlfCjBVlf4w0ZBo7JtqYw
         /hpaNvMwrPWzbdGd166x2bf36nMrLr5pJGFXGNXEyYVNiZL97bDZR11xWa6e83Y2y0KG
         xvXy9DHaAxlUY92AG5DXy10Crni1MwE8B8TJ0chjES84aihIqTg/uyscfKZspTaIs24F
         bLbTnEeVxSyA93sBIG/5Qjgj/VsoTj3qwqXpkyd6avd+i8gDBzsTJ6OF4W2Oa7U69uvF
         8vJOwIexBH0GKRdOE3aBJe0mgosBLmc6faVv46WaHtnwKxhHDehYNCoGXHi12rBk+2Mm
         PBbQ==
X-Gm-Message-State: AOAM533pJshsVJ1GzRdZMopBETrq08f6WtxkJ+mL0vWkzJRVGWgeBi6t
 m1ydy93Nn8cC7T009kidUOxXId90p3V2S107eVNZIofMBvfimpJzf44=
X-Google-Smtp-Source: ABdhPJy88xvttt3Qgad6iiumYgayHOkawrDEYBWH+rd7k5MtNwUtVPnWurww9Ac3UzN0xUiVqAp9Cbi4qyXCssTT/GI=
X-Received: by 2002:a65:5c47:: with SMTP id v7mr3459091pgr.64.1640101172865;
 Tue, 21 Dec 2021 07:39:32 -0800 (PST)
MIME-Version: 1.0
References: <CAJueESpT3UG4s1z1brZ248qCH+vOYEa3CmSgsjcc=9zfK0OAnA@mail.gmail.com>
 <6fb22582-0639-8533-a754-552069bb846d@gmail.com>
In-Reply-To: <6fb22582-0639-8533-a754-552069bb846d@gmail.com>
From: Sayan Malakshinov <xt.and.r@gmail.com>
Date: Tue, 21 Dec 2021 18:39:21 +0300
Message-ID: <CAOVevU5drLSzG5XjM7y1bdHJgkk46Cqs_y4w36PKN9ivw1z47Q@mail.gmail.com>
Subject: Re: sql_trace filtering
To: Mladen Gogala <gogala.mladen@gmail.com>
Cc: ORACLE-L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="000000000000cdef3e05d3a9cfd7"
X-archive-position: 81609
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: xt.and.r@gmail.com
Precedence: normal
Reply-To: xt.and.r@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
--000000000000cdef3e05d3a9cfd7
Content-Type: text/plain; charset="UTF-8"

Hi Adric,

Yes, of course, for example, you can specify a filter by process: ospid or
orapid or pname:

{process:  ospid           <string>[20],
           orapid          <ub4>,
           pname           <string>[20],
           con_id          <ub8> }


http://orasql.org/2021/05/20/oracle-diagnostic-events-cheat-sheet/

http://orasql.org/files/events/doc/event/filter/oradebug-doc-event-filter-process.php



On Tue, Dec 21, 2021 at 6:30 PM Gogala, Mladen <gogala.mladen@gmail.com>
wrote:

> *CAUTION: This email has originated from an extremely suspect and
> sometimes very grumpy sender. Proceed with extreme caution and use the
> Force.*
> On 12/21/2021 10:14 AM, Adric Norris wrote:
>
> Is it possible to add a filter for user ID/name as well? I've been
> searching, but can't seem to find any examples of this if so.
>
> Thanx!
>
> Hi Adric!
>
> You can create on logon trigger for the specified user and use "ALTER
> SESSION" instead of "ALTER SYSTEM".
>
> Regards
> --
> Mladen Gogala
> Oracle DBA
> Tel: (347) 321-1217
> Blog: https://dbwhisperer.wordpress.com
>


-- 
Best regards,
Sayan Malakshinov
Oracle performance tuning engineer
Oracle ACE
http://orasql.org

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

<div dir=3D"ltr">Hi Adric,<div><br></div><div>Yes, of course, for example, =
you can specify a filter by process:=C2=A0ospid or orapid or pname:</div><d=
iv><br></div><div><pre style=3D"color:rgb(0,0,0)"><code>{process:  ospid   =
        &lt;string&gt;[20],
           orapid          &lt;ub4&gt;,
           pname           &lt;string&gt;[20],
           con_id          &lt;ub8&gt; }</code></pre></div><div><br></div><=
div><a href=3D"http://orasql.org/2021/05/20/oracle-diagnostic-events-cheat-=
sheet/">http://orasql.org/2021/05/20/oracle-diagnostic-events-cheat-sheet/<=
/a><br></div><div><br></div><div><a href=3D"http://orasql.org/files/events/=
doc/event/filter/oradebug-doc-event-filter-process.php">http://orasql.org/f=
iles/events/doc/event/filter/oradebug-doc-event-filter-process.php</a><br><=
/div><div><br></div><div><br></div></div><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">On Tue, Dec 21, 2021 at 6:30 PM Gogala, =
Mladen &lt;<a href=3D"mailto:gogala.mladen@gmail.com">gogala.mladen@gmail.c=
om</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
">
 =20
   =20
 =20
  <div>
    <p><u><b><font color=3D"blue">CAUTION: This email has originated from
            an extremely suspect and sometimes very grumpy sender.
            Proceed with extreme caution and use the Force.</font></b></u><=
br>
    </p>
    <div>On 12/21/2021 10:14 AM, Adric Norris
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
      <div>Is it possible to add a filter for user ID/name as well? I&#39;v=
e
        been searching, but can&#39;t seem to find any examples of this if
        so.</div>
      <div><br>
      </div>
      <div>Thanx!</div>
    </blockquote>
    <p>Hi Adric!<br>
    </p>
    <p>You can create on logon trigger for the specified user and use
      &quot;ALTER SESSION&quot; instead of &quot;ALTER SYSTEM&quot;.</p>
    <p>Regards<br>
    </p>
    <div>-- <br>
      Mladen Gogala<br>
      Oracle DBA<br>
      Tel: (347) 321-1217<br>
      Blog: <a href=3D"https://dbwhisperer.wordpress.com" target=3D"_blank"=
>https://dbwhisperer.wordpress.com</a></div>
  </div>
</blockquote></div><br clear=3D"all"><div><br></div>-- <br><div dir=3D"ltr"=
 class=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div>Best=
 regards,<br>Sayan Malakshinov</div><span style=3D"font-size:13.6px">Oracle=
 performance tuning engineer</span><br style=3D"font-size:13.6px"><div>Orac=
le ACE<br><a href=3D"http://orasql.org" target=3D"_blank">http://orasql.org=
</a></div></div></div></div></div>

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


