Skip to content
Advertisement

Tag: hash

cast VARCHAR2 to LONG,RAW,CLOB and find HASH md5

There is a table A with fields (str1 VARCHAR2(4000 CHAR),str2 VARCHAR2(4000 CHAR)) There is a table B with fields (str1 VARCHAR2(4000 CHAR),str2 VARCHAR2(4000 CHAR),hash_code NUMBER) As a result there is an exception when length(str1||str2) is longer than 4000 (varchar2 is too small). How can I cast this to other type like clob in such select? to_clob(str1 || str2) does not

How to identify best Max_bucket and Seed_value for Oracle ORA_Hash function?

I am new to Oracle Hash function. I know that this function is for encryption purpose. It is actually convert a very large paragraph into one single hash value. The Ora_hash function have three different parameters: Expression Max_bucket Seed_value For the Max_bucket and seed value, the document says I can specify between 0 to 429496725. Max_bucket is default to 429496725

Advertisement