Received: (qmail 29613 invoked from network); 9 Sep 2012 13:51:15 -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:51:13 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7925AEE7A79;
 Sun,  9 Sep 2012 14:51:07 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1347216667; bh=zGxiNQIyafoPd44fJF6UTtctMKGcC0W3kJaFgXHw
 PXY=; h=MIME-Version:In-Reply-To:References:Date:Message-ID:Subject:
	 From:To:Cc:Content-type:Content-Transfer-Encoding:Sender:Reply-To:
	 List-help:List-unsubscribe:List-Id:List-subscribe:List-owner:
	 List-post:List-archive; b=dY2KJePQieyTNxK680dnjYGAupr+a7iFj1p7vf8C
 VKQtxyqGzbA+Gy+/KfarIw1N3OLA8ApVC0VLs/OwHR4rq+DDTLE6FpahyQtK1Lp5XoV
 M1alj8IjDlyYQMEBMDPnIFYra1HjR2x2YV43IqSPTz8aIkY4+N8VZCFvpMwt34QI=
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 BPCuoNGgM7mF; Sun,  9 Sep 2012 14:51:07 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D19B2EE791D;
 Sun,  9 Sep 2012 14:50:24 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 09 Sep 2012 14:49:43 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 538A9EE74C1
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 14:49:43 -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 MSz2HrPO-hoz for <oracle-l@freelists.org>;
 Sun,  9 Sep 2012 14:49:43 -0400 (EDT)
Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D0E7FEE751E
 for <oracle-l@freelists.org>; Sun,  9 Sep 2012 14:49:41 -0400 (EDT)
Received: by pbbro8 with SMTP id ro8so1214479pbb.10
        for <oracle-l@freelists.org>; Sun, 09 Sep 2012 11:49:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :cc:content-type;
        bh=285dHel0kuy3bXUXlrNOy7qav0ll0AOcqyNdw2d+xCI=;
        b=oQgC8JxJQT3BK1cshGq1M96eJMt+kYVZnZQAD5nR4gclqHlfMRNnlMFVoU8U2ArEhJ
         zjf69SIRZdRZbLzeadtaJex7ssxlY8s4RtwR86/XbM0EzBLujnPUNB1wzXuVt3dni0gu
         J51PrPQDI1QSsCMMOq1c4yKX2eux5T0+V7haa0ah64iEl3I+Heqir8SgoyoLsa96Wh/0
         4I7N+0G39G86rGZOop857G0PS9lQ0PCnXQ8FNiknI8pRcL7touFn651tOIJFCovcAMCi
         odJ8srMNj5NvlU7yaQgcw+jGBYfjIRmuI0KXIUAoptj3jF8yP8Ecgg0DJxXTW1TBRQye
         UYVg==
MIME-Version: 1.0
Received: by 10.68.134.228 with SMTP id pn4mr1493365pbb.147.1347216580641;
 Sun, 09 Sep 2012 11:49:40 -0700 (PDT)
Received: by 10.66.253.3 with HTTP; Sun, 9 Sep 2012 11:49:40 -0700 (PDT)
Received: by 10.66.253.3 with HTTP; Sun, 9 Sep 2012 11:49:40 -0700 (PDT)
In-Reply-To: <CADrzpjGbETZ7OerqEaYngTChihB2Xo5QqzK8v5aA+ip4GpkRJQ@mail.gmail.com>
References: <CADrzpjGbETZ7OerqEaYngTChihB2Xo5QqzK8v5aA+ip4GpkRJQ@mail.gmail.com>
Date: Sun, 9 Sep 2012 20:49:40 +0200
Message-ID: <CAFsgGrwNVkrK7_2NwDFLaiMRGS+ekiYWtVWAxnZGEcfPQKEY=A@mail.gmail.com>
Subject: Re: Function Based Index
From: Stefano Cislaghi <s.cislaghi@gmail.com>
To: puravc@gmail.com
Cc: oracle-l@freelists.org
Content-type: text/plain
Content-Transfer-Encoding: 8bit
X-archive-position: 44713
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: s.cislaghi@gmail.com
Precedence: normal
Reply-To: s.cislaghi@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

Hi,
Try to force the use of the FBI with an hint and compare plans. Maybe the
use of FBI produces a worser plan and CBO avoids to use it.

Ste
On 9 Sep 2012 20:36, "Purav Chovatia" <puravc@gmail.com> wrote:

> 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
>
>
>


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


