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: Partitioning by first digit of VARCHAR column data

RE: Partitioning by first digit of VARCHAR column data

From: <Surendra.Tirumala_at_ky.gov>
Date: Fri, 27 Aug 2004 07:46:07 -0400
Message-ID: <063F65E6A14D0C47A5E9954B3C32354407E51939@agency31.state.ky.us>


Thank you Connor!!
We have just decided to go for range on year and hash on varchar2.

Thanks again.
Surendra

-----Original Message-----
From: Connor McDonald [mailto:hamcdc_at_yahoo.co.uk] Sent: Thursday, August 26, 2004 10:51 PM To: oracle-l_at_freelists.org
Subject: Re: Partitioning by first digit of VARCHAR column data

Bang a trigger on to populate a new column and partition on that.

Alternatively, use dbms_utility.get_hash_value to see how your varchar2 map out across 4
partitions. You might be able to get away with just a range on year and hash on varchar2.

Connor


Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions" ISBN: 1590592174 web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

Coming Soon! "Oracle Insight - Tales of the OakTable"

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"


                                  
___________________________________________________________ALL-NEW Yahoo!
Messenger - all new features - even more fun! http://uk.messenger.yahoo.com

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Aug 27 2004 - 07:19:14 CDT

Original text of this message

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