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: hash value - function

Re: hash value - function

From: DA Morgan <damorgan_at_psoug.org>
Date: Tue, 14 Aug 2007 14:00:04 -0700
Message-ID: <1187125202.808934@bubbleator.drizzle.com>


ciapecki wrote:
> Hi,
>
> Is there any function (10g) that would return a kind of hash value,
>
> I was thinking of getting one value for the whole table.
>
> My idea was to concatenate all the columns (5 columns there not very
> big around 10chars each) get a numerical hash value.
> Then group by primary_key, and get a sum or avg, or whatever.
>
> If the hash value would be big enough I could use it for comparing if
> two tables are the same of the content or not.
>
> the question is, if there is such a function, I could not find it that
> takes varchar2 and returns a value.
>
> thanks
> chris

A rather large number of them it turns out. Here are a few:

DBMS_SQLHASH: http://www.psoug.org/reference/dbms_sqlhash.html
ORA_HASH:     http://www.psoug.org/reference/ora_hash.html
DBMS_CRYPTO:  http://www.psoug.org/reference/dbms_crypto.html
OWA_OPT_LOCK: http://www.psoug.org/reference/owa_opt_lock.html
-- 
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 Tue Aug 14 2007 - 16:00:04 CDT

Original text of this message

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