Received: (qmail 28709 invoked from network); 9 Sep 2012 13:36:55 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-85-25-126-90.inaddr.ip-pool.com with SMTP; 9 Sep 2012 13:36:52 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id BAF2DEE627F;
 Sun,  9 Sep 2012 14:36:51 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1347215811; bh=rYUVjSAX+LPzG7wFslynYckeHrh3RUO2lPVnlEhl
 Tg4=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-type:
	 Content-Transfer-Encoding:Sender:Reply-To:List-help:
	 List-unsubscribe:List-Id:List-subscribe:List-owner:List-post:
	 List-archive; b=uYq+ZR48AxqTSTjno3RMiidr+LiUkN+P8YW+LZQmPt7iDJaqik
 deo1aldRWYtxLli0cRLz+6YCVm2v24+gomm0ZJwjOy5qlXLzPT7OOCuL64U7nnVjBly
 YxhsPO/HNbeSGdO7OaWZayk5rL3V0FPYzibuEIVCtuK9yp/lZ+SiWI=
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
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 GnxqSzijg7G4; Sun,  9 Sep 2012 14:36:51 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 68DD9EE5ECA;
 Sun,  9 Sep 2012 14:36:09 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 09 Sep 2012 14:35:27 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8BA35EE1CD3
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 14:35:27 -0400 (EDT)
Authentication-Results: turing.freelists.org; dkim=pass (2048-bit key) header.i=@gmail.com
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 zOYWV3vJLZ5l for <oracle-l@freelists.org>;
 Sun,  9 Sep 2012 14:35:27 -0400 (EDT)
Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id B7929EDB667
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 14:35:25 -0400 (EDT)
Received: by lbao2 with SMTP id o2so624480lba.10
        for <oracle-l@freelists.org>; Sun, 09 Sep 2012 11:35:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:date:message-id:subject:from:to:content-type;
        bh=Z2M2HaxuK0WI7VsvyaH9A8lETC6u45FCOxawZRdqPh0=;
        b=E++ngPBo5csLxe1fzNK6yzYWjKCEO7kc/FU1fSGcQ+n7DebC/h5BjsnpFH99EoJMpN
         9pCw5/k9P93oqvprVF+PZVRK+RZ4gPyAsCP0HtP1mWUW/athkG/HaPCBgbwRoxMCO8oL
         HR2XMb9MeLkDpNqhcxv/KXV1SKQM8i3EvvFCzy9MJd64A/i4YxfsaRBY1SpmmQYDUQuW
         OnFws8rvbvskY9PcmL1/Aq6wCdvB9TKI/P5yol/s04wg0cLZmSvEutZ8JVIsy5fJrjc8
         NIBoPJWQ3UkXT0QTFrU/RM1Av5+hV0uCic5JFYApUqIMA8YCWm8whMhFlPBOU0qFKb/f
         /xOg==
MIME-Version: 1.0
Received: by 10.112.28.4 with SMTP id x4mr4014174lbg.105.1347215725231; Sun,
 09 Sep 2012 11:35:25 -0700 (PDT)
Received: by 10.114.3.198 with HTTP; Sun, 9 Sep 2012 11:35:25 -0700 (PDT)
Date: Mon, 10 Sep 2012 00:05:25 +0530
Message-ID: <CADrzpjGbETZ7OerqEaYngTChihB2Xo5QqzK8v5aA+ip4GpkRJQ@mail.gmail.com>
Subject: Function Based Index
From: Purav Chovatia <puravc@gmail.com>
To: oracle-l@freelists.org
Content-type: text/plain
Content-Transfer-Encoding: 8bit
X-archive-position: 44712
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: puravc@gmail.com
Precedence: normal
Reply-To: puravc@gmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <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: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

Hello everybody,
I have a function based index but the CBO is not using it. The DML that I
expect to have a plan with index range scan is doing a FTS. Its a simple
DML that deletes 1000 rows at a time in a loop and is based on the column
on which the FBI is created. The DML is executed as a part of a batch job
at eod.

'Explain plan for' for the DML with the same values, shows an index range
scan as expected. hence 10053 would also show the same, I guess.

This is 10205 on solaris x86 and optimizer statistics are gathered for the
table, index and the virtual/hidden column.

How do I find out why is the CBO not using the FBI.

Surprisingly, neither AWR nor statspack report show the DML which should
have appeared because another DML that has a much lesser elapsed time or
has comparatively less number of executions appears in the report.
Yesterday I enabled a 10046 trace and then confirmed via tkprof that it is
indeed doing a FTS and not index range scan.

Thanks.


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


