Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Advice on Date Range Partitioned Table

Re: Advice on Date Range Partitioned Table

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 27 Nov 2006 20:47:02 -0800
Message-ID: <1164689221.149733@bubbleator.drizzle.com>


Dereck L. Dietz wrote:
> Environment: Oracle 10g R2
>
> There is a large table where I work which is currently in 10 partitioned by
> a DATE field. The DATE field is also indexed.
>
> The person who is responsible for the table has complained that the index
> which is on the partition key isn't being used. He is convinced the reason
> is that the partition key is a DATE field and that it should instead be a
> contrived field of just the year.
>
> At a meeting today I was given the task of determining whether that was a
> sound idea or not and I'm not really sure where to start to either confirm
> it or not. I may be completely wrong but I can't see where using a
> contrived YEAR would be any different than a DATE.
>
> Can anybody offer any advice and/or point me in the right direction of where
> to look?
>
> Thanks.

I like what EscVector wrote but have you considered:

ALTER INDEX <index_name> MONITORING USAGE;

and then after some reasonable period of time ...

SELECT * FROM v$object_usage;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Mon Nov 27 2006 - 22:47:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US