I know there’s a function to obtain the hash value from a varchar in Oracle, but when I run the query to see the returned value it sends the following message.
ORA-00904: : identificador no válido
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Error en la línea: 70, columna: 7
What I’m doing is the following:
select DBMS_CRYPTO.hash(utl_raw.cast_to_raw('Foo'), 3) FROM dual;
It should return the SHA-1 of the string.
That works for me
Are you sure that the user that is running this has been granted
EXECUTEaccess on both theUTL_RAWand theDBMS_CRYPTOpackages? If line 70 of your code is thisSELECTstatement, I’d wager that column 7 is where theDBMS_CRYPTOcall starts and that you don’t have access to theDBMS_CRYPTOpackage.