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 C6E89100316EA5
 for <oracle-l@orafaq.com>; Thu, 26 Aug 2021 10:00:40 +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 7D5DF4088D;
 Thu, 26 Aug 2021 08:00:35 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 6A2B54141E;
 Thu, 26 Aug 2021 08:00:35 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1629964835;
 bh=xxigGg7wm2a2sreimjENNtQ48yD0Gm7L/Mt5hcsc6Eg=;
 h=From:Sender:Sender:From;
 b=M3fQsfa3HRhJ8N+gK0015OoJeM6NKMCePqcomX2KdPUORUA5cJKZRdoeO7LMTAatn
	 HCeZZyJ7GBR0yVWdTiQeOrEPUXBYjRwAIqiQHQvMD1CyEyxtXzFujPftniGUK6UXgR
	 GEDnVPLj7zakmdBG+JsrwhD7moeTf4tJg+U0p6IY=
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 7f7_rIa1GAGq; Thu, 26 Aug 2021 08:00:35 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 52A4C4141F;
 Thu, 26 Aug 2021 08:00:32 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1629964833;
 bh=xxigGg7wm2a2sreimjENNtQ48yD0Gm7L/Mt5hcsc6Eg=;
 h=From:Sender:Sender:From;
 b=uClqXnJOBWlssVNo2DyPoTK1zYiJnX4WZVhiozL3ZFyLwS85a8rlyCkOvneuwWTAt
	 9HyF972ulqL6DFm5ziiirZkXytyaqnjetV8Bc5fvsYygedjxMNT4rSUiEE9/1DlZ1c
	 0ES8DGQcHD3uGYzB87nyE3W3IbferZVmITxotRuA=
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 26 Aug 2021 08:00:30 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id A97BE4141D
 for <oracle-l@freelists.org>; Thu, 26 Aug 2021 08:00:30 +0000 (UTC)
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 rq7Dwa7m2qrH for <oracle-l@freelists.org>;
 Thu, 26 Aug 2021 08:00:30 +0000 (UTC)
Received: from vimdzmsp-mail06.bluewin.ch (vimdzmsp-mail06.bluewin.ch [195.186.227.122])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Postfix) with ESMTPS id 42D604141C
 for <oracle-l@freelists.org>; Thu, 26 Aug 2021 08:00:30 +0000 (UTC)
Received: from vimdzmsp-rich13.bluewin.ch ([195.186.122.145])
 by vimdzmsp-mail06.bluewin.ch Swisscom AG with ESMTP
 id JAJImI0CmQQaKJAJIm8yLj; Thu, 26 Aug 2021 10:00:28 +0200
X-Bluewin-Spam-Analysis: v=2.4 cv=e8Bl9Yl/ c=1 sm=1 tr=0 ts=61274a1d
 a=aFbsJ4lmEbDsG/izSui5Pg==:117 a=MhDmnRu9jo8A:10 a=pGLkceISAAAA:8
 a=D_VmOLqjAAAA:8 a=yPCof4ZbAAAA:8 a=Gj8dnitCAAAA:8 a=4qEjKKPKAAAA:8
 a=DXzvs9fi5Nx7Z8F6U6AA:9 a=QEXdDO2ut3YA:10 a=4Ax8a3yNAAAA:8
 a=RHYnxk84dB4WNNI69KEA:9 a=04Wl5mEj4-WJvlaw:21 a=d_xflH664_jzgZDB7q-c:22
 a=VzkFtbJgvWz0uMt2ml5n:22 a=osbS6WoqMCpc9yocYKA6:22 a=u_dTPGf-M_uITx4KRomd:22
X-Bluewin-Spam-Score: 0.00
Received: from vimdzmsp-rich13.bluewin.ch (localhost.bluewin.ch [127.0.0.1])
 by vimdzmsp-rich13.bluewin.ch (Postfix) with ESMTP id DBD49C02811;
 Thu, 26 Aug 2021 10:00:28 +0200 (CEST)
Date: Thu, 26 Aug 2021 10:00:28 +0200 (CEST)
From: "l.flatz@bluewin.ch" <l.flatz@bluewin.ch>
To: loknath.73@gmail.com
Cc: oracle-l@freelists.org
Message-ID: <261226719.8338.1629964828902@bluewin.ch>
In-Reply-To: <CAKna9VYM447VjW4LkU+K5+k1mAwE77w591oLoG84gwd6ZnBPjg@mail.gmail.com>
References: <CAKna9VZWC+XvuFsFAV8qqeX_ooYnLc0r56M5mNbYcXxv5cKh7A@mail.gmail.com> <CAOVevU7RH9OZMZ529tKc-ED8qUZkbrVUAtOjRC5akCDSbVy8Jg@mail.gmail.com> <079b01d799bd$b1e03ad0$15a0b070$@rsiz.com> <CAKna9VYvqP_c=BZuGXKLxmg-d0hD=sJLJzJ+zaUHDnmS1=RnbA@mail.gmail.com> <080c01d799d5$6b9b1b90$42d152b0$@rsiz.com> <a77414ad-7b49-f20c-55de-673fda6aa02b@bluewin.ch> <CAKna9VYM447VjW4LkU+K5+k1mAwE77w591oLoG84gwd6ZnBPjg@mail.gmail.com>
Subject: Re: Re: Fixing Performance issue with less selective columns
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="----=_Part_8337_98656429.1629964828896"
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-UID: 153454
X-CP-REPLY-ALL-PATH: INBOX
X-CP-REPLY-ALL-PATH: INBOX
X-CP-REPLY-ALL-PATH: INBOX
X-CP-REPLY-ALL-PATH: 
X-CP-REPLY-ALL-PATH: 
X-CP-REPLY-ALL-PATH: 
X-CP-REPLY-ALL-PATH: 
X-CP-REPLY-ALL-PATH: 
X-CP-REPLY-ALL-PATH: 
X-CP-REPLY-ALL-PATH: 
X-FXIT-IP: IPv4[92.60.13.196] Epoch[1629964828898]
X-CMAE-Envelope: MS4xfAHuA0oQL9EKWlQpMHtzueTdFPk2NZy777nWuEduJeK5ey/9F6jQ5sRMXDV0wvo6bjR91GETRG1AHxm8xr/xIE+8bb+DfY0cC1g8mTDb648tkWBObYZP
 A5Pa3PVnc1/VgNhTGXGddjm/ROZOYK14JjdviZHPpgDH5PTkDGQa33WoRY+60IRkiRrxRGYrBLran8ewtGQKAbgx/moOuAZ72X+BJPbLRWo8a7lXiZWfaSQe
 Jjja4J/ztq4tM+3ZDToBmQ==
X-archive-position: 80816
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: l.flatz@bluewin.ch
Precedence: normal
Reply-To: l.flatz@bluewin.ch
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
------=_Part_8337_98656429.1629964828896
Content-Type: multipart/alternative; 
 boundary="----=_Part_8336_1533411668.1629964828896"
------=_Part_8336_1533411668.1629964828896
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Lok,
I have to say that I lost track of which columns are how selective.
So what I would do is the classical bitmap use, which are single column Bit=
map which can be combined.
Maybe n=C3=B3t the best way, but the most flexible.
For all column where <> and not null is used, you should create a bitmap in=
dex.=20
Thus we have one bitmap on  NVL (I.MA_FLG, 'N') and one on  NVL (I.D_UNMTCH=
, 'N'). For not <> only bitmap would work.
For is null and is not null we can also make a single column bitmap index.
It all depends how often this table is inserted and how often the columns a=
re updated. How much is too much is hard to decide and quite often the trut=
h will show only at runtime. There is some risk on bimap in an OLTP, always=
.
For all the other columns you can create a combined B*Tree index.
There is an other option like creating a big combined B*Tree with the colum=
ns compare with =3D in the leading positions.
You can use the other columns as filter . This is a low risk option
E.g. something like this (in that sequence)  TRIM(I.M_TXT) , PT_Code, DC_CO=
DE, D_CUR_CODE, ED_AMT, PR_CTGRY, NVL (I.MA_FLG, 'N'), NVL (I.D_UNMTCH, 'N'=
), WOF_DATE, PE,  PT_MCODE.
How good this index is will show in the combined selectivity of the =3D com=
pared columns.
You can check this by :=20
select count(*) from (
select distinct TRIM(I.M_TXT) , PT_Code, DC_CODE, D_CUR_CODE, ED_AMT, PR_CT=
GRY
from  PP_IN_TAB)
;
I the selectivity is not good enough, you can increase the selektivity by u=
sing a transformation like Mark described it.=20
Regards
Lothar
----Urspr=C3=BCngliche Nachricht----
Von : loknath.73@gmail.com
Datum : 25/08/2021 - 21:33 (MS)
An : l.flatz@bluewin.ch
Cc : oracle-l@freelists.org
Betreff : Re: Fixing Performance issue with less selective columns
 Thank you Lothar. Actually this is an OLTP kind of database and I do see U=
PDATE queries on these table columns. Need to see in detail about the frequ=
ency of those and how concurrent they are. I am Not very familiar with the =
usage of bitmap indexes , so trying to understand what exact column you are=
 suggesting for the bitmap index to help this query?
=20
  On Wed, Aug 25, 2021 at 11:45 PM Lothar Flatz <
  l.flatz@bluewin.ch> wrote:
 =20
=20
=20
 =20
  =20
    This scenario cries for bitmap indexes.
   =20
 Bitmap Indexes can deal with "not equal" as well as "is null".
   =20
 The columns seems to be low cardinality too.
   =20
 The only open question is how often these columns get updated. (
    https://asktom.oracle.com/pls/apex/asktom.search?tag=3Dbitmap-indexes-a=
nd-locking).
   =20
   =20
 Regards
   =20
   =20
 Lothar
   =20
   =20
 Am 25.08.2021 um 19:19 schrieb Mark W. Farnham:
   =20
  =20
  =20
   =20
    =20
unfortunately you keep nearly all the rows of both MA_FLG and D_UNMTCH, so =
this query is the opposite of those indexes being useful.
    =20
=20
    =20
IF you were looking for =E2=80=98Y=E2=80=99 instead of not =E2=80=98Y=E2=80=
=99 on either one it would be extremely good. I didn=E2=80=99t see initiall=
y that these two columns are extremely inclusive.
    =20
=20
    =20
I think Sayan was checking that in his query request. MA_FLG could reject a=
t most about 6 million rows, so that=E2=80=99s pretty worthless.
    =20
=20
    =20
From: Lok P [mailto:loknath.73@gmail.com]=20
Sent: Wednesday, August 25, 2021 1:09 PM
To: Mark W. Farnham
Cc: Sayan Malakshinov; Oracle L
Subject: Re: Fixing Performance issue with less selective columns
    =20
=20
    =20
     =20
Thank You Mark.=20
     =20
      =20
I may be wrong but in this situation I was unable to think of any other way=
 we could make this query faster , so I was thinking of creating a new inde=
x. If there exists any other way to make this query faster without creating=
 any new index that would really be helpful.
     =20
     =20
      =20
=20
     =20
     =20
      =20
I am not able to get your point fully, If you can help me understand it a b=
it more here please. Below is the data pattern for MA_FLG and D_UNMTCH.=20
     =20
     =20
      =20
=20
     =20
     =20
      =20
Thus , in this query condition " NVL (I.MA_FLG, 'N') <> 'Y' results in ~105=
million and  NVL (I.D_UNMTCH, 'N') <> 'Y' results in ~111million. So how sh=
ould I create index or modify code to make it the best access/filter criter=
ia so as to make the query faster?
     =20
     =20
      =20
=20
     =20
     =20
      =20
=20
     =20
     =20
      =20
       =20
        =20
         =20
MA_FLG
         =20
Count(*)
        =20
        =20
         =20
N
         =20
105228656
        =20
        =20
         =20
Y
         =20
6000938
        =20
        =20
         =20
=20
         =20
643566
        =20
       =20
      =20
     =20
     =20
      =20
=20
     =20
     =20
      =20
       =20
        =20
         =20
D_UNMTCH
         =20
Count(*)
        =20
        =20
         =20
Y
         =20
13715
        =20
        =20
         =20
=20
         =20
111859445
        =20
       =20
      =20
     =20
     =20
      =20
=20
     =20
     =20
      =20
=20
     =20
    =20
    =20
=20
    =20
     =20
      =20
On Wed, Aug 25, 2021 at 8:00 PM Mark W. Farnham <mwf@rsiz.com> wrote:
     =20
     =20
      =20
       =20
        =20
The other thing, for flag values like AND NVL (I.MA_FLG, 'N') <> 'Y'       =
AND NVL (I.D_UNMTCH, 'N') <> 'Y'
        =20
=20
        =20
if you=E2=80=99re thinking about adding an index, and even if you need a vi=
rtual column to do this because you have too much code depending on values =
=E2=80=98N=E2=80=99 and =E2=80=98Y=E2=80=99, define the final status (the o=
ne where nearly all of them land) as NULL, being the ones you are NOT inter=
ested in most of the time. In both these cases it looks like =E2=80=98Y=E2=
=80=99 would then be NULL, so
        =20
=20
        =20
i.ma_flg_v is defined decoding Y to NULL and anything else to N and your co=
de becomes and  i.ma_flg_v =3D =E2=80=98N=E2=80=99 and you deal with variab=
ility in non-nulls that are not =E2=80=98Y=E2=80=99 on the original,
        =20
or
        =20
i.ma_flg_v decodes Y to NULL, NULL to =E2=80=98N=E2=80=99 and anything else=
 unchanged and your code becomes i.ma_flg_v is NOT NULL,
        =20
or
        =20
you make a functional index on i.ma_flg that does the equivalent.
        =20
=20
        =20
I can=E2=80=99t remember off the top of my head whether either way gives yo=
u a real advantage over the other in stats collections and the CBO doing so=
mething smart and that probably changed over the releases. That might be in=
 one of my papers.
        =20
=20
        =20
When you then index that column the nulls disappear, leaving you with a ver=
y tiny index to prune your result set immediately to very small and you can=
 usually filter the rest fast without an index.
        =20
=20
        =20
Remember, ORACLE cannot assign a value to NULL in anything they do. But YOU=
 can.
        =20
=20
        =20
When this is appropriate, it is one of the neatest and easiest =E2=80=9Cmag=
ic tricks=E2=80=9D in the Oracle kit.
        =20
=20
        =20
Good luck,
        =20
=20
        =20
mwf
        =20
=20
        =20
From:oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] O=
n Behalf Of Sayan Malakshinov
Sent: Wednesday, August 25, 2021 9:40 AM
To: Lok P
Cc: Oracle L
Subject: Re: Fixing Performance issue with less selective columns
        =20
=20
        =20
         =20
          =20
Hi Lok,
          =20
           =20
=20
          =20
          =20
           =20
> SUBSTR(:B8,0.50)
          =20
          =20
           =20
Looks like this query should be analyzed and tested better.
          =20
          =20
           =20
You haven't provided histograms and bind values statistics, so not enough i=
nfo to analyze it properly.=20
          =20
          =20
           =20
For now it looks like "I.WOF_DATE IS NULL" is one of the most selective pre=
dicates - it gives only 83154 nulls.
          =20
          =20
           =20
In addition to histogram statistics(dba_tab_histograms) and most often bind=
s values, I would like also to see what does return this query:
          =20
          =20
           =20
select=20
   NVL(I.MA_FLG, 'N'),NVL(I.D_UNMTCH, 'N'),I.DC_CODE,count(*)
 FROM PP_IN_TAB I
 group by NVL(I.MA_FLG, 'N'),NVL(I.D_UNMTCH, 'N'),I.DC_CODE;
          =20
          =20
           =20
=20
          =20
          =20
           =20
=20
          =20
         =20
         =20
=20
         =20
          =20
           =20
On Wed, Aug 25, 2021 at 4:14 PM Lok P <loknath.73@gmail.com> wrote:
          =20
          =20
           =20
            =20
Hello , This database has version 11.2.0.4 of Oracle. We have the below que=
ry which is executed thousands of times. It's used in a plsql function whic=
h in turn gets called from a procedure. And this procedure gets called from=
 java thousands of times.  And I see from dba_hist_sqlstat , for most of th=
e runs this below query results in zero rows. We see from the active sessio=
n history for the overall process this query is consuming most time/resourc=
es and making the process run longer. So wanted to understand if we can mak=
e this individual query execution faster which would  eventually make the p=
rocess faster?
 The base table- PP_IN_TAB is holding ~111million rows and is ~43GB in size=
. Column PP_ID is the primary key here. The filter predicates used in this =
query are below. Many of them were not very selective in nature. So I am no=
t able to conclude if any composite index is going to help us here. Can you=
 please guide me , what is the correct approach to tune this process in suc=
h a scenario?
 Below is the column data pattern used as filter predicate in this query. M=
ost of these are less selective in nature.
            =20
             =20
=20
            =20
            =20
             =20
              =20
               =20
                =20
TABLE_NAME
                =20
COLUMN_NAME
                =20
NUM_DISTINCT
                =20
NUM_NULLS
               =20
               =20
                =20
PP_IN_TAB
                =20
EF_ID
                =20
39515
                =20
6151686
               =20
               =20
                =20
PP_IN_TAB
                =20
PE
                =20
103074806
                =20
647050
               =20
               =20
                =20
PP_IN_TAB
                =20
PT_Code
                =20
24
                =20
0
               =20
               =20
                =20
PP_IN_TAB
                =20
PT_MCODE
                =20
20
                =20
0
               =20
               =20
                =20
PP_IN_TAB
                =20
D_CUR_CODE
                =20
13
                =20
592784
               =20
               =20
                =20
PP_IN_TAB
                =20
ED_AMT
                =20
320892
                =20
6
               =20
               =20
                =20
PP_IN_TAB
                =20
WOF_DATE
                =20
2572
                =20
83154
               =20
               =20
                =20
PP_IN_TAB
                =20
PR_CTGRY
                =20
2
                =20
86
               =20
               =20
                =20
PP_IN_TAB
                =20
PDE_RSN_CAT
                =20
6
                =20
0
               =20
               =20
                =20
PP_IN_TAB
                =20
MA_FLG
                =20
2
                =20
648172
               =20
               =20
                =20
PP_IN_TAB
                =20
M_TXT
                =20
29460248
                =20
9118572
               =20
               =20
                =20
PP_IN_TAB
                =20
D_UNMTCH
                =20
1
                =20
111766716
               =20
              =20
             =20
            =20
            =20
             =20
=20
             =20
              =20
=20
             =20
             =20
              =20
SELECT   NVL (I.PP_ID, 0)
   FROM PP_IN_TAB I
  WHERE     TRIM(I.M_TXT) =3D TRIM (SUBSTR ( :B8, 0.50))       AND I.PT_Cod=
e =3D :B7
        AND NVL ( :B6, I.PT_MCODE) =3D NVL ( :B6, :B5)       AND I.DC_CODE =
=3D :B4
        AND I.D_CUR_CODE =3D :B3       AND I.ED_AMT =3D :B2
        AND I.PR_CTGRY =3D :B1       AND I.PE IS NOT NULL
        AND I.EF_ID IS NULL       AND I.WOF_DATE IS NULL
        AND NVL (I.MA_FLG, 'N') <> 'Y'       AND NVL (I.D_UNMTCH, 'N') <> '=
Y'
        AND ROWNUM =3D 1;
  =20
Global Information
 ------------------------------
  Status              :  DONE (ALL ROWS)          =20
  Instance ID         :  1                        =20
  SQL Execution ID    :  16777216                 =20
  Execution Started   :  08/25/2021 03:53:25      =20
  First Refresh Time  :  08/25/2021 03:53:25      =20
  Last Refresh Time   :  08/25/2021 03:53:28      =20
  Duration            :  3s                       =20
  Module/Action       :  SQL*Plus/-               =20
  Program             :  sqlplus.exe              =20
  Fetch Calls         :  1                        =20
 Global Stats
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 | Elapsed |   Cpu   |    IO    | Application | Fetch | Buffer | Read  | Re=
ad  |  Cell   |
 | Time(s) | Time(s) | Waits(s) |  Waits(s)   | Calls |  Gets  | Reqs  | By=
tes | Offload |
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 |    3.30 |    1.15 |     2.15 |        0.00 |     1 |     6M | 44379 |  4=
3GB |  99.99% |
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 SQL Plan Monitoring Details (Plan Hash Value=3D1096440065)
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 | Id |          Operation           |       Name       |  Rows   | Cost | =
  Time    | Start  | Execs |   Rows   | Read  | Read  |  Cell   |  Mem  | A=
ctivity |      Activity Detail      |
 |    |                              |                  | (Estim) |      | =
Active(s) | Active |       | (Actual) | Reqs  | Bytes | Offload | (Max) |  =
 (%)    |        (# samples)        |
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 |  0 | SELECT STATEMENT             |                  |         |      | =
          |        |     1 |          |       |       |         |       |  =
        |                           |
 |  1 |   COUNT STOPKEY              |                  |         |      | =
          |        |     1 |          |       |       |         |       |  =
        |                           |
 |  2 |    TABLE ACCESS STORAGE FULL | PP_IN_TAB        |       1 | 128K | =
        3 |     +2 |     1 |        0 | 44379 |  43GB |  99.99% |    6M |  =
 100.00 | cell smart table scan (3) |
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D  =20
 Predicate Information (identified by operation id):
 ---------------------------------------------------
    1 - filter(ROWNUM=3D1)
    2 - storage("I"."WOF_DATE" IS NULL AND "I"."EF_ID" IS NULL AND "I"."PT_=
Code"=3D:B7 AND "I"."D_CUR_CODE"=3D:B3 AND "I"."PR_CTGRY"=3D:B1 AND
               "I"."DC_CODE"=3D:B4 AND "I"."ED_AMT"=3DTO_NUMBER(:B2) AND
               NVL(:B6,"I"."PT_MCODE")=3DNVL(:B6,:B5) AND TRIM("I"."M_TXT")=
=3DTRIM(SUBSTR(:B8,0.50))
                AND "I"."PE" IS NOT NULL AND NVL("I"."MA_FLG",'N')<>'Y' AND
               NVL("I"."D_UNMTCH",'N')<>'Y')
        filter("I"."WOF_DATE" IS NULL AND "I"."EF_ID" IS NULL AND "I"."PT_C=
ode"=3D:B7 AND "I"."D_CUR_CODE"=3D:B3 AND "I"."PR_CTGRY"=3D:B1 AND
               "I"."DC_CODE"=3D:B4 AND "I"."ED_AMT"=3DTO_NUMBER(:B2) AND NV=
L(:B6,"I"."PT_MCODE")=3DNVL(:B6,:B5) AND TRIM("I"."M_TXT")=3DTRIM(SUBSTR(:B=
8,0.50))
                AND "I"."PE" IS NOT NULL AND NVL("I"."MA_FLG",'N')<>'Y' AND=
  NVL("I"."D_UNMTCH",'N')<>'Y')
             =20
            =20
           =20
          =20
         =20
         =20
         =20
          =20
=20
         =20
         =20
--=20
         =20
          =20
           =20
            =20
             =20
              =20
Best regards,
 Sayan Malakshinov
             =20
             =20
Oracle performance tuning engineer
             =20
              =20
Oracle ACE Associate
http://orasql.org
             =20
            =20
           =20
          =20
         =20
        =20
       =20
      =20
     =20
    =20
   =20
  =20
  =20
 =20
=20

------=_Part_8336_1533411668.1629964828896
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div>Hi Lok,</div><div><br></div><div>I have to say that I lost track of wh=
ich columns are how selective.</div><div>So what I would do is the classica=
l bitmap use, which are single column Bitmap which can be combined.</div><d=
iv>Maybe n=C3=B3t the best way, but the most flexible.</div><div>For all co=
lumn where &lt;&gt; and not null is used, you should create a bitmap index.=
 <br></div><div>Thus we have one bitmap on  NVL (I.MA_FLG, 'N') and one on&=
nbsp; <span style=3D"font-size: 14.0pt;font-family: Calibri , sans-serif;co=
lor: rgb(31,73,125);"></span>NVL (I.D_UNMTCH, 'N'). For not &lt;&gt; only b=
itmap would work.</div><div>For is null and is not null we can also make a =
single column bitmap index.</div><div>It all depends how often this table i=
s inserted and how often the columns are updated. How much is too much is h=
ard to decide and quite often the truth will show only at runtime. There is=
 some risk on bimap in an OLTP, always.<br></div><div><br></div><div>For al=
l the other columns you can create a combined B*Tree index.</div><div><br><=
/div><div>There is an other option like creating a big combined B*Tree with=
 the columns compare with =3D in the leading positions.</div><div>You can u=
se the other columns as filter . This is a low risk option<br></div><div><b=
r></div><div>E.g. something like this (in that sequence)&nbsp; TRIM(I.M_TXT=
) , PT_Code, DC_CODE, D_CUR_CODE, ED_AMT, PR_CTGRY, NVL (I.MA_FLG, 'N'), NV=
L (I.D_UNMTCH, 'N'), WOF_DATE, PE,  PT_MCODE.</div><div>How good this index=
 is will show in the combined selectivity of the =3D compared columns.</div=
><div><br></div><div>You can check this by : <br></div><div>select count(*)=
 from (<br></div><div>select distinct TRIM(I.M_TXT) , PT_Code, DC_CODE, D_C=
UR_CODE, ED_AMT, PR_CTGRY</div><div>from&nbsp; <span>PP_IN_TAB)</span></div=
><div><span>;</span></div><div><span><br></span></div><div><span>I the sele=
ctivity is not good enough, you can increase the selektivity by using a tra=
nsformation like Mark described it. <br></span></div><div><span><br></span>=
</div><div>Regards</div><div><br></div><div>Lothar<br></div><blockquote sty=
le=3D"margin-right: 0px; margin-left:15px;">----Urspr=C3=BCngliche Nachrich=
t----<br>Von : loknath.73@gmail.com<br>Datum : 25/08/2021 - 21:33 (MS)<br>A=
n : l.flatz@bluewin.ch<br>Cc : oracle-l@freelists.org<br>Betreff : Re: Fixi=
ng Performance issue with less selective columns<br><br><div dir=3D"ltr">
 Thank you Lothar. Actually this is an OLTP kind of database and I do see U=
PDATE queries on these table columns. Need to see in detail about the frequ=
ency of those and how concurrent they are. I am Not very familiar&nbsp;with=
 the usage of bitmap indexes , so trying&nbsp;to understand what exact colu=
mn you are suggesting for the bitmap index&nbsp;to help&nbsp;this query?
</div>
<br>
<div class=3D"gmail_quote">
 <div dir=3D"ltr" class=3D"gmail_attr">
  On Wed, Aug 25, 2021 at 11:45 PM Lothar Flatz &lt;
  <a style=3D"cursor:pointer; text-decoration:underline; color:blue" onclic=
k=3D"javascript:handleMailto('mailto:l.flatz@bluewin.ch');">l.flatz@bluewin=
.ch</a>&gt; wrote:
  <br>
 </div>
 <blockquote class=3D"gmail_quote" style=3D"margin: 0.0px 0.0px 0.0px 0.8ex=
;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
  <div>
   <div>
    This scenario cries for bitmap indexes.
    <br> Bitmap Indexes can deal with "not equal" as well as "is null".
    <br> The columns seems to be low cardinality too.
    <br> The only open question is how often these columns get updated. (
    <a href=3D"https://asktom.oracle.com/pls/apex/asktom.search?tag=3Dbitma=
p-indexes-and-locking">https://asktom.oracle.com/pls/apex/asktom.search?tag=
=3Dbitmap-indexes-and-locking</a>).
    <br>
    <br> Regards
    <br>
    <br> Lothar
    <br>
    <br> Am 25.08.2021 um 19:19 schrieb Mark W. Farnham:
    <br>
   </div>
   <blockquote type=3D"cite">
    <div>
     <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-family: C=
alibri , sans-serif;color: rgb(31,73,125);">unfortunately you keep nearly a=
ll the rows of both MA_FLG and D_UNMTCH, so this query is the opposite of t=
hose indexes being useful.<u></u><u></u></span></p>
     <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-family: C=
alibri , sans-serif;color: rgb(31,73,125);"><u></u>&nbsp;<u></u></span></p>
     <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-family: C=
alibri , sans-serif;color: rgb(31,73,125);">IF you were looking for =E2=80=
=98Y=E2=80=99 instead of not =E2=80=98Y=E2=80=99 on either one it would be =
extremely good. I didn=E2=80=99t see initially that these two columns are e=
xtremely inclusive.<u></u><u></u></span></p>
     <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-family: C=
alibri , sans-serif;color: rgb(31,73,125);"><u></u>&nbsp;<u></u></span></p>
     <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-family: C=
alibri , sans-serif;color: rgb(31,73,125);">I think Sayan was checking that=
 in his query request. MA_FLG could reject at most about 6 million rows, so=
 that=E2=80=99s pretty worthless.<u></u><u></u></span></p>
     <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-family: C=
alibri , sans-serif;color: rgb(31,73,125);"><u></u>&nbsp;<u></u></span></p>
     <p class=3D"MsoNormal"><b><span style=3D"font-size: 10.0pt;font-family=
: Tahoma , sans-serif;">From:</span></b><span style=3D"font-size: 10.0pt;fo=
nt-family: Tahoma , sans-serif;"> Lok P [<a style=3D"cursor:pointer; text-d=
ecoration:underline; color:blue" onclick=3D"javascript:handleMailto('mailto=
:loknath.73@gmail.com');">mailto:loknath.73@gmail.com</a>] <br><b>Sent:</b>=
 Wednesday, August 25, 2021 1:09 PM<br><b>To:</b> Mark W. Farnham<br><b>Cc:=
</b> Sayan Malakshinov; Oracle L<br><b>Subject:</b> Re: Fixing Performance =
issue with less selective columns<u></u><u></u></span></p>
     <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
     <div>
      <p class=3D"MsoNormal">Thank You Mark.&nbsp;<u></u><u></u></p>
      <div>
       <p class=3D"MsoNormal">I may be wrong but in this situation&nbsp;I w=
as unable to think of any other way we could make this&nbsp;query faster , =
so I was thinking of creating a new index. If there exists any other way&nb=
sp;to make this query faster without creating&nbsp;any new index that would=
 really be helpful.<u></u><u></u></p>
      </div>
      <div>
       <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
      </div>
      <div>
       <p class=3D"MsoNormal">I am not able to get your point fully, If you=
 can help me understand&nbsp;it a bit more here please. Below is the data p=
attern for MA_FLG and D_UNMTCH.&nbsp;<u></u><u></u></p>
      </div>
      <div>
       <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
      </div>
      <div>
       <p class=3D"MsoNormal">Thus , in this query condition " NVL (I.MA_FL=
G, 'N') &lt;&gt; 'Y' results in ~105million and&nbsp;<span style=3D"font-si=
ze: 14.0pt;font-family: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;=
</span>NVL (I.D_UNMTCH, 'N') &lt;&gt; 'Y' results in ~111million. So how sh=
ould I create index or modify code to make it the best access/filter criter=
ia so&nbsp;as to make the query&nbsp;faster?<u></u><u></u></p>
      </div>
      <div>
       <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
      </div>
      <div>
       <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
      </div>
      <div>
       <table style=3D"width: 290.0pt;border-collapse: collapse;" width=3D"=
483" cellspacing=3D"0" cellpadding=3D"0" border=3D"0">
        <tbody>
         <tr style=3D"height: 12.75pt;">
          <td style=3D"width: 148.0pt;border: 1.0pt solid windowtext;paddin=
g: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=3D"247" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">MA_FLG<u></u><u></u></span></p></td>
          <td style=3D"width: 142.0pt;border-top: 1.0pt solid windowtext;bo=
rder-right: 1.0pt solid windowtext;border-bottom: 1.0pt solid windowtext;bo=
rder-left: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=3D"237=
" valign=3D"bottom" nowrap=3D""><p class=3D"MsoNormal"><span style=3D"font-=
size: 10.0pt;font-family: Arial , sans-serif;color: black;">Count(*)<u></u>=
<u></u></span></p></td>
         </tr>
         <tr style=3D"height: 12.75pt;">
          <td style=3D"border-right: 1.0pt solid windowtext;border-bottom: =
1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-top: none=
;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D=
""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Ari=
al , sans-serif;color: black;">N<u></u><u></u></span></p></td>
          <td style=3D"border-top: none;border-left: none;border-bottom: 1.=
0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0.75pt 0=
.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=3D"Mso=
Normal" style=3D"text-align: right;" align=3D"right"><span style=3D"font-si=
ze: 10.0pt;font-family: Arial , sans-serif;color: black;">105228656<u></u><=
u></u></span></p></td>
         </tr>
         <tr style=3D"height: 12.75pt;">
          <td style=3D"border-right: 1.0pt solid windowtext;border-bottom: =
1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-top: none=
;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D=
""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Ari=
al , sans-serif;color: black;">Y<u></u><u></u></span></p></td>
          <td style=3D"border-top: none;border-left: none;border-bottom: 1.=
0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0.75pt 0=
.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=3D"Mso=
Normal" style=3D"text-align: right;" align=3D"right"><span style=3D"font-si=
ze: 10.0pt;font-family: Arial , sans-serif;color: black;">6000938<u></u><u>=
</u></span></p></td>
         </tr>
         <tr style=3D"height: 12.75pt;">
          <td style=3D"border-right: 1.0pt solid windowtext;border-bottom: =
1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-top: none=
;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D=
""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Ari=
al , sans-serif;color: black;">&nbsp;<u></u><u></u></span></p></td>
          <td style=3D"border-top: none;border-left: none;border-bottom: 1.=
0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0.75pt 0=
.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=3D"Mso=
Normal" style=3D"text-align: right;" align=3D"right"><span style=3D"font-si=
ze: 10.0pt;font-family: Arial , sans-serif;color: black;">643566<u></u><u><=
/u></span></p></td>
         </tr>
        </tbody>
       </table>
      </div>
      <div>
       <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
      </div>
      <div>
       <table style=3D"width: 290.0pt;border-collapse: collapse;" width=3D"=
483" cellspacing=3D"0" cellpadding=3D"0" border=3D"0">
        <tbody>
         <tr style=3D"height: 12.75pt;">
          <td style=3D"width: 148.0pt;border: 1.0pt solid windowtext;paddin=
g: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=3D"247" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">D_UNMTCH<u></u><u></u></span></p></td=
>
          <td style=3D"width: 142.0pt;border-top: 1.0pt solid windowtext;bo=
rder-right: 1.0pt solid windowtext;border-bottom: 1.0pt solid windowtext;bo=
rder-left: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=3D"237=
" valign=3D"bottom" nowrap=3D""><p class=3D"MsoNormal"><span style=3D"font-=
size: 10.0pt;font-family: Arial , sans-serif;color: black;">Count(*)<u></u>=
<u></u></span></p></td>
         </tr>
         <tr style=3D"height: 12.75pt;">
          <td style=3D"border-right: 1.0pt solid windowtext;border-bottom: =
1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-top: none=
;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D=
""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Ari=
al , sans-serif;color: black;">Y<u></u><u></u></span></p></td>
          <td style=3D"border-top: none;border-left: none;border-bottom: 1.=
0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0.75pt 0=
.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=3D"Mso=
Normal" style=3D"text-align: right;" align=3D"right"><span style=3D"font-si=
ze: 10.0pt;font-family: Arial , sans-serif;color: black;">13715<u></u><u></=
u></span></p></td>
         </tr>
         <tr style=3D"height: 12.75pt;">
          <td style=3D"border-right: 1.0pt solid windowtext;border-bottom: =
1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-top: none=
;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D=
""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Ari=
al , sans-serif;color: black;">&nbsp;<u></u><u></u></span></p></td>
          <td style=3D"border-top: none;border-left: none;border-bottom: 1.=
0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0.75pt 0=
.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=3D"Mso=
Normal" style=3D"text-align: right;" align=3D"right"><span style=3D"font-si=
ze: 10.0pt;font-family: Arial , sans-serif;color: black;">111859445<u></u><=
u></u></span></p></td>
         </tr>
        </tbody>
       </table>
      </div>
      <div>
       <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
      </div>
      <div>
       <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
      </div>
     </div>
     <p class=3D"MsoNormal"><u></u>&nbsp;<u></u></p>
     <div>
      <div>
       <p class=3D"MsoNormal">On Wed, Aug 25, 2021 at 8:00 PM Mark W. Farnh=
am &lt;<a style=3D"cursor:pointer; text-decoration:underline; color:blue" o=
nclick=3D"javascript:handleMailto('mailto:mwf@rsiz.com');">mwf@rsiz.com</a>=
&gt; wrote:<u></u><u></u></p>
      </div>
      <blockquote style=3D"border-top: none;border-right: none;border-botto=
m: none;border-left: 1.0pt solid rgb(204,204,204);padding: 0.0in 0.0in 0.0i=
n 6.0pt;margin-left: 4.8pt;margin-right: 0.0in;">
       <div>
        <div>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">The other thing, for flag v=
alues like AND NVL (I.MA_FLG, 'N') &lt;&gt; 'Y'&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; AND NVL (I.D_UNMTCH, 'N') &lt;&gt; 'Y'</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">if you=E2=80=99re thinking =
about adding an index, and even if you need a virtual column to do this bec=
ause you have too much code depending on values =E2=80=98N=E2=80=99 and =E2=
=80=98Y=E2=80=99, define the final status (the one where nearly all of them=
 land) as NULL, being the ones you are NOT interested in most of the time. =
In both these cases it looks like =E2=80=98Y=E2=80=99 would then be NULL, s=
o</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">i.ma_flg_v is defined decod=
ing Y to NULL and anything else to N and your code becomes and&nbsp; i.ma_f=
lg_v =3D =E2=80=98N=E2=80=99 and you deal with variability in non-nulls tha=
t are not =E2=80=98Y=E2=80=99 on the original,</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">or</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">i.ma_flg_v decodes Y to NUL=
L, NULL to =E2=80=98N=E2=80=99 and anything else unchanged and your code be=
comes i.ma_flg_v is NOT NULL,</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">or</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">you make a functional index=
 on i.ma_flg that does the equivalent.</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">I can=E2=80=99t remember of=
f the top of my head whether either way gives you a real advantage over the=
 other in stats collections and the CBO doing something smart and that prob=
ably changed over the releases. That might be in one of my papers.</span><u=
></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">When you then index that co=
lumn the nulls disappear, leaving you with a very tiny index to prune your =
result set immediately to very small and you can usually filter the rest fa=
st without an index.</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">Remember, ORACLE cannot ass=
ign a value to NULL in anything they do. But YOU can.</span><u></u><u></u><=
/p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">When this is appropriate, i=
t is one of the neatest and easiest =E2=80=9Cmagic tricks=E2=80=9D in the O=
racle kit.</span><u></u><u></u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">Good luck,</span><u></u><u>=
</u></p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">mwf</span><u></u><u></u></p=
>
         <p class=3D"MsoNormal"><span style=3D"font-size: 14.0pt;font-famil=
y: Calibri , sans-serif;color: rgb(31,73,125);">&nbsp;</span><u></u><u></u>=
</p>
         <p class=3D"MsoNormal"><b><span style=3D"font-size: 10.0pt;font-fa=
mily: Tahoma , sans-serif;">From:</span></b><span style=3D"font-size: 10.0p=
t;font-family: Tahoma , sans-serif;"><a style=3D"cursor:pointer; text-decor=
ation:underline; color:blue" onclick=3D"javascript:handleMailto('mailto:ora=
cle-l-bounce@freelists.org');">oracle-l-bounce@freelists.org</a> [mailto:<a=
 style=3D"cursor:pointer; text-decoration:underline; color:blue" onclick=3D=
"javascript:handleMailto('mailto:oracle-l-bounce@freelists.org');">oracle-l=
-bounce@freelists.org</a>] <b>On Behalf Of </b>Sayan Malakshinov<br><b>Sent=
:</b> Wednesday, August 25, 2021 9:40 AM<br><b>To:</b> Lok P<br><b>Cc:</b> =
Oracle L<br><b>Subject:</b> Re: Fixing Performance issue with less selectiv=
e columns</span><u></u><u></u></p>
         <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
         <div>
          <div>
           <p class=3D"MsoNormal">Hi Lok,<u></u><u></u></p>
           <div>
            <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal">&gt;&nbsp;<span style=3D"font-family: &q=
uot;Courier New&quot;;">SUBSTR(:B8,0<b>.50</b>)</span><u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal">Looks like this query should be analyzed=
 and tested better.<u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal">You haven't provided histograms and bind=
 values statistics, so&nbsp;not enough&nbsp;info to analyze it properly.&nb=
sp;<u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal">For now it looks like "I.WOF_DATE IS NUL=
L" is one of the most selective predicates - it gives only&nbsp;<span style=
=3D"font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">83154 =
nulls.</span><u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fa=
mily: Arial , sans-serif;color: black;">In addition to histogram statistics=
(</span>dba_tab_histograms<span style=3D"font-size: 10.0pt;font-family: Ari=
al , sans-serif;color: black;">) and most often binds values, I would like =
also to see what does return this query:</span><u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal">select <br> &nbsp; NVL(I.MA_FLG, 'N'),NV=
L(I.D_UNMTCH, 'N'),I.DC_CODE,count(*)<br> FROM PP_IN_TAB I<br> group by NVL=
(I.MA_FLG, 'N'),NVL(I.D_UNMTCH, 'N'),I.DC_CODE;<u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
           </div>
           <div>
            <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
           </div>
          </div>
          <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
          <div>
           <div>
            <p class=3D"MsoNormal">On Wed, Aug 25, 2021 at 4:14 PM Lok P &l=
t;<a style=3D"cursor:pointer; text-decoration:underline; color:blue" onclic=
k=3D"javascript:handleMailto('mailto:loknath.73@gmail.com');">loknath.73@gm=
ail.com</a>&gt; wrote:<u></u><u></u></p>
           </div>
           <blockquote style=3D"border-top: none;border-right: none;border-=
bottom: none;border-left: 1.0pt solid rgb(204,204,204);padding: 0.0in 0.0in=
 0.0in 6.0pt;margin: 5.0pt 0.0in 5.0pt 4.8pt;">
            <div>
             <p class=3D"MsoNormal">Hello , This database has version 11.2.=
0.4 of Oracle. We have the below query which is executed thousands of times=
. It's used in a plsql function which in turn gets called from a procedure.=
 And this procedure gets called from java thousands of times.&nbsp; And I s=
ee&nbsp;from dba_hist_sqlstat , for most of the runs this below query resul=
ts in zero rows. We see from the active session history for the overall pro=
cess this query is consuming most time/resources and making the process run=
 longer. So wanted to understand if we can make this individual query execu=
tion faster which would&nbsp; eventually make the process faster?<br><br> T=
he base table- PP_IN_TAB is holding ~111million rows and is ~43GB in size. =
Column PP_ID is the primary key here. The filter predicates used in this qu=
ery are below. Many of them were not very selective in nature. So I am not =
able to conclude if any composite index is going to help us here. Can you p=
lease guide me , what is the correct approach to tune this process in such =
a scenario?<br><br> Below is the column data pattern used as filter predica=
te in this query. Most of these are less selective in nature.<u></u><u></u>=
</p>
             <div>
              <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
             </div>
             <div>
              <table style=3D"width: 295.0pt;border-collapse: collapse;" wi=
dth=3D"492" cellspacing=3D"0" cellpadding=3D"0" border=3D"0">
               <tbody>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"width: 71.0pt;border: 1.0pt solid windowtext;=
padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=3D"118" valign=3D"bott=
om" nowrap=3D""><p class=3D"MsoNormal"><b><span style=3D"font-size: 10.0pt;=
font-family: Arial , sans-serif;color: black;">TABLE_NAME</span></b><u></u>=
<u></u></p></td>
                 <td style=3D"width: 81.0pt;border-top: 1.0pt solid windowt=
ext;border-right: 1.0pt solid windowtext;border-bottom: 1.0pt solid windowt=
ext;border-left: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=
=3D"135" valign=3D"bottom" nowrap=3D""><p class=3D"MsoNormal"><b><span styl=
e=3D"font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">COLUM=
N_NAME</span></b><u></u><u></u></p></td>
                 <td style=3D"width: 78.0pt;border-top: 1.0pt solid windowt=
ext;border-right: 1.0pt solid windowtext;border-bottom: 1.0pt solid windowt=
ext;border-left: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=
=3D"130" valign=3D"bottom" nowrap=3D""><p class=3D"MsoNormal"><b><span styl=
e=3D"font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">NUM_D=
ISTINCT</span></b><u></u><u></u></p></td>
                 <td style=3D"width: 65.0pt;border-top: 1.0pt solid windowt=
ext;border-right: 1.0pt solid windowtext;border-bottom: 1.0pt solid windowt=
ext;border-left: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" width=
=3D"108" valign=3D"bottom" nowrap=3D""><p class=3D"MsoNormal"><b><span styl=
e=3D"font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">NUM_N=
ULLS</span></b><u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">EF_ID</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">39515</spa=
n><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">6151686</s=
pan><u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">PE</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">103074806<=
/span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">647050</sp=
an><u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">PT_Code</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">24</span><=
u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">0</span><u=
></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">PT_MCODE</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">20</span><=
u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">0</span><u=
></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">D_CUR_CODE</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">13</span><=
u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">592784</sp=
an><u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">ED_AMT</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">320892</sp=
an><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">6</span><u=
></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">WOF_DATE</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">2572</span=
><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">83154</spa=
n><u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">PR_CTGRY</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">2</span><u=
></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">86</span><=
u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">PDE_RSN_CAT</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">6</span><u=
></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">0</span><u=
></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">MA_FLG</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">2</span><u=
></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">648172</sp=
an><u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">M_TXT</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">29460248</=
span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">9118572</s=
pan><u></u><u></u></p></td>
                </tr>
                <tr style=3D"height: 12.75pt;">
                 <td style=3D"border-right: 1.0pt solid windowtext;border-b=
ottom: 1.0pt solid windowtext;border-left: 1.0pt solid windowtext;border-to=
p: none;padding: 0.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" no=
wrap=3D""><p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-fami=
ly: Arial , sans-serif;color: black;">PP_IN_TAB</span><u></u><u></u></p></t=
d>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal"><span style=3D"font-size: 10.0pt;font-family: Arial , sans-s=
erif;color: black;">D_UNMTCH</span><u></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">1</span><u=
></u><u></u></p></td>
                 <td style=3D"border-top: none;border-left: none;border-bot=
tom: 1.0pt solid windowtext;border-right: 1.0pt solid windowtext;padding: 0=
.75pt 0.75pt 0.0in;height: 12.75pt;" valign=3D"bottom" nowrap=3D""><p class=
=3D"MsoNormal" style=3D"text-align: right;" align=3D"right"><span style=3D"=
font-size: 10.0pt;font-family: Arial , sans-serif;color: black;">111766716<=
/span><u></u><u></u></p></td>
                </tr>
               </tbody>
              </table>
             </div>
             <div>
              <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
              <div>
               <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
              </div>
              <div>
               <p class=3D"MsoNormal">SELECT &nbsp; NVL (I.PP_ID, 0)<br> &n=
bsp; FROM PP_IN_TAB I<br> &nbsp;WHERE &nbsp; &nbsp; TRIM(I.M_TXT) =3D TRIM =
(SUBSTR ( :B8, 0.50)) &nbsp; &nbsp; &nbsp; AND I.PT_Code =3D :B7<br> &nbsp;=
 &nbsp; &nbsp; &nbsp;AND NVL ( :B6, I.PT_MCODE) =3D NVL ( :B6, :B5) &nbsp; =
&nbsp; &nbsp; AND I.DC_CODE =3D :B4<br> &nbsp; &nbsp; &nbsp; &nbsp;AND I.D_=
CUR_CODE =3D :B3 &nbsp; &nbsp; &nbsp; AND I.ED_AMT =3D :B2<br> &nbsp; &nbsp=
; &nbsp; &nbsp;AND I.PR_CTGRY =3D :B1 &nbsp; &nbsp; &nbsp; AND <a href=3D"h=
ttp://I.PE">I.PE</a> IS NOT NULL<br> &nbsp; &nbsp; &nbsp; &nbsp;AND I.EF_ID=
 IS NULL &nbsp; &nbsp; &nbsp; AND I.WOF_DATE IS NULL<br> &nbsp; &nbsp; &nbs=
p; &nbsp;AND NVL (I.MA_FLG, 'N') &lt;&gt; 'Y' &nbsp; &nbsp; &nbsp; AND NVL =
(I.D_UNMTCH, 'N') &lt;&gt; 'Y'<br> &nbsp; &nbsp; &nbsp; &nbsp;AND ROWNUM =
=3D 1;<br> &nbsp; <br><br><span>Global Information<br> --------------------=
----------<br> &nbsp;Status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
;: &nbsp;DONE (ALL ROWS) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp;Inst=
ance ID &nbsp; &nbsp; &nbsp; &nbsp; : &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br> &nbsp;SQL Execu=
tion ID &nbsp; &nbsp;: &nbsp;16777216 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp;<br> &nbsp;Execution Started &nbsp; : &nbsp;08/25/=
2021 03:53:25 &nbsp; &nbsp; &nbsp; <br> &nbsp;First Refresh Time &nbsp;: &n=
bsp;08/25/2021 03:53:25 &nbsp; &nbsp; &nbsp; <br> &nbsp;Last Refresh Time &=
nbsp; : &nbsp;08/25/2021 03:53:28 &nbsp; &nbsp; &nbsp; <br> &nbsp;Duration =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: &nbsp;3s &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp;Modu=
le/Action &nbsp; &nbsp; &nbsp; : &nbsp;SQL*Plus/- &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp;Program &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; : &nbsp;sqlplus.exe &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; <br> &nbsp;Fetch Calls &nbsp; &nbsp; &nbsp; &nbsp; : &nbsp;1 &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; <br><br> Global Stats<br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
<br> | Elapsed | &nbsp; Cpu &nbsp; | &nbsp; &nbsp;IO &nbsp; &nbsp;| Applica=
tion | Fetch | Buffer | Read &nbsp;| Read &nbsp;| &nbsp;Cell &nbsp; |<br> |=
 Time(s) | Time(s) | Waits(s) | &nbsp;Waits(s) &nbsp; | Calls | &nbsp;Gets =
&nbsp;| Reqs &nbsp;| Bytes | Offload |<br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D<br> | &nbsp; &nbsp;3.30 | &nbsp; &nbsp;1.15 | &nbsp; &nbsp; 2.=
15 | &nbsp; &nbsp; &nbsp; &nbsp;0.00 | &nbsp; &nbsp; 1 | &nbsp; &nbsp; 6M |=
 44379 | &nbsp;43GB | &nbsp;99.99% |<br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D<br><br> SQL Plan Monitoring Details (Plan Hash Value=3D1096440065=
)<br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br> | Id | &nbsp; &nbsp; &nbsp; &nb=
sp; &nbsp;Operation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbs=
p; Name &nbsp; &nbsp; &nbsp; | &nbsp;Rows &nbsp; | Cost | &nbsp; Time &nbsp=
; &nbsp;| Start &nbsp;| Execs | &nbsp; Rows &nbsp; | Read &nbsp;| Read &nbs=
p;| &nbsp;Cell &nbsp; | &nbsp;Mem &nbsp;| Activity | &nbsp; &nbsp; &nbsp;Ac=
tivity Detail &nbsp; &nbsp; &nbsp;|<br> | &nbsp; &nbsp;| &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=
| (Estim) | &nbsp; &nbsp; &nbsp;| Active(s) | Active | &nbsp; &nbsp; &nbsp;=
 | (Actual) | Reqs &nbsp;| Bytes | Offload | (Max) | &nbsp; (%) &nbsp; &nbs=
p;| &nbsp; &nbsp; &nbsp; &nbsp;(# samples) &nbsp; &nbsp; &nbsp; &nbsp;|<br>=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br> | &nbsp;0 | SELECT STATEMENT &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nb=
sp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp;| &nbs=
p; &nbsp; 1 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | &n=
bsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |<br> | &nbsp;1 | &nbsp;=
 COUNT STOPKEY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nb=
sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; =
&nbsp; | &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | &nbsp; =
&nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; 1 | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|=
 &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; =
| &nbsp; &nbsp; &nbsp; | &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; |<br> | &nbsp;2 | &nbsp; &nbsp;TABLE ACCESS STORAGE FULL | PP_IN_TAB &nbs=
p; &nbsp; &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; 1 | 128K | &nbsp; &nbsp; &nbs=
p; &nbsp; 3 | &nbsp; &nbsp; +2 | &nbsp; &nbsp; 1 | &nbsp; &nbsp; &nbsp; &nb=
sp;0 | 44379 | &nbsp;43GB | &nbsp;99.99% | &nbsp; &nbsp;6M | &nbsp; 100.00 =
| cell smart table scan (3) |<br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D &nbsp=
; <br><br> Predicate Information (identified by operation id):<br> --------=
-------------------------------------------<br><br> &nbsp; &nbsp;1 - filter=
(ROWNUM=3D1)<br> &nbsp; &nbsp;2 - storage("I"."WOF_DATE" IS NULL AND "I"."E=
F_ID" IS NULL AND "I"."PT_Code"=3D:B7 AND "I"."D_CUR_CODE"=3D:B3 AND "I"."P=
R_CTGRY"=3D:B1 AND<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "I"=
."DC_CODE"=3D:B4 AND "I"."ED_AMT"=3DTO_NUMBER(:B2) AND<br> &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; &nbsp; NVL(:B6,"I"."PT_MCODE")=3DNVL(:B6,:B5) AND=
 TRIM("I"."M_TXT")=3DTRIM(SUBSTR(:B8,0.50))<br> &nbsp; &nbsp; &nbsp; &nbsp;=
 &nbsp; &nbsp; &nbsp; &nbsp;AND "I"."PE" IS NOT NULL AND NVL("I"."MA_FLG",'=
N')&lt;&gt;'Y' AND<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NVL=
("I"."D_UNMTCH",'N')&lt;&gt;'Y')<br> &nbsp; &nbsp; &nbsp; &nbsp;filter("I".=
"WOF_DATE" IS NULL AND "I"."EF_ID" IS NULL AND "I"."PT_Code"=3D:B7 AND "I".=
"D_CUR_CODE"=3D:B3 AND "I"."PR_CTGRY"=3D:B1 AND<br> &nbsp; &nbsp; &nbsp; &n=
bsp; &nbsp; &nbsp; &nbsp; "I"."DC_CODE"=3D:B4 AND "I"."ED_AMT"=3DTO_NUMBER(=
:B2) AND NVL(:B6,"I"."PT_MCODE")=3DNVL(:B6,:B5) AND TRIM("I"."M_TXT")=3DTRI=
M(SUBSTR(:B8,0.50))<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &n=
bsp;AND "I"."PE" IS NOT NULL AND NVL("I"."MA_FLG",'N')&lt;&gt;'Y' AND &nbsp=
;NVL("I"."D_UNMTCH",'N')&lt;&gt;'Y')</span><u></u><u></u></p>
              </div>
             </div>
            </div>
           </blockquote>
          </div>
          <p class=3D"MsoNormal"><br clear=3D"all"><u></u><u></u></p>
          <div>
           <p class=3D"MsoNormal">&nbsp;<u></u><u></u></p>
          </div>
          <p class=3D"MsoNormal">-- <u></u><u></u></p>
          <div>
           <div>
            <div>
             <div>
              <div>
               <p class=3D"MsoNormal">Best regards,<br> Sayan Malakshinov<u=
></u><u></u></p>
              </div>
              <p class=3D"MsoNormal"><span style=3D"font-size: 10.0pt;">Ora=
cle performance tuning engineer</span><u></u><u></u></p>
              <div>
               <p class=3D"MsoNormal">Oracle ACE Associate<br><a href=3D"ht=
tp://orasql.org">http://orasql.org</a><u></u><u></u></p>
              </div>
             </div>
            </div>
           </div>
          </div>
         </div>
        </div>
       </div>
      </blockquote>
     </div>
    </div>
   </blockquote>
   <br>
  </div>
 </blockquote>
</div><br></blockquote><br><p></p>
------=_Part_8336_1533411668.1629964828896--

------=_Part_8337_98656429.1629964828896--
--
http://www.freelists.org/webpage/oracle-l


