Oracle doesn't have the HASHBYTES
function. You can convert hex to decimal using TO_NUMBER(hex-string, 'xx')
, but you must have enough x
characters in your format string to cover the input value. In the case of a GUID, that's 32 x
characters:
SELECT TO_NUMBER(prod, RPAD('x', 32, 'x'))
FROM PRODS;