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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Is range partitioning possible on part of varchar2 column ??????

Re: Is range partitioning possible on part of varchar2 column ??????

From: Igor Neyman <ineyman_at_perceptron.com>
Date: Thu, 13 Mar 2003 14:18:59 -0800
Message-ID: <F001.00569A12.20030313141859@fatcity.com>


No, I think you will have to add a column to store 'YYYY' separately in order to partition on it.

Igor Neyman, OCP DBA
ineyman_at_perceptron.com

> Dear List,
>
> I have a table of size approx 10gig, and I need to partition based on the
> YEAR. I have column in the table, REPORT_CYCLE_CD with VARCHAR2(7). The
> data in the column of format "MONYYYY" . I need to partition the table
based
> on the year YYYY, that is, substr(report_cycle_cd, 4,4).
>
> Substr function doesn't seem to be permitted in the partitioning syntax
and
> so am getting errors. Only TO_DATE function seems to be permitted. Since
it
> is not a date column, I would like to know if there is a way to RANGE
> partition the table, instead of HASH partitioning.
>
> Appreciate any suggestions.
>
> Thanks,
> -- Babu
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Janardhana Babu Donga
> INET: jbdonga_at_ucdavis.edu
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Igor Neyman
  INET: ineyman_at_perceptron.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Mar 13 2003 - 16:18:59 CST

Original text of this message

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