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: has partitioning on a number

Re: has partitioning on a number

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 23 Jun 2005 16:34:38 -0700
Message-ID: <1119569691.557516@yasure>


tq wrote:
> Does anybody know how to predict which hash partition a value will fall
> into if the hash-partitioned column is a number? I know
> dbms_utility.get_hash_value works for strings, but I'm trying to find a
> way with numbers.
>
> Thanks.

Why?

Anyway ...

SELECT ORA_HASH(<value>)
FROM dual;

All documented at www.psoug.org
click on Morgan's Library
click on ORA_HASH

Of course you didn't include a version number so your mileage may vary.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Jun 23 2005 - 18:34:38 CDT

Original text of this message

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