Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Grant execute on DBMS_CRYPTO package (11R1)

ddevienneJan 3 2008 — edited Jan 4 2008
I figured out I needed to grant my user access to this SYS package using:

SQL> grant execute on DBMS_CRYPTO to lob_demo;
Grant succeeded.

yet after doing this, I still get this error:

SQL> select DBMS_CRYPTO.HASH(bytes, DBMS_CRYPTO.HASH_SH1) from blobslicer where id=1;
select DBMS_CRYPTO.HASH(bytes, DBMS_CRYPTO.HASH_SH1) from blobslicer where id=1
*
ERROR at line 1:
ORA-06553: PLS-221: 'HASH_SH1' is not a procedure or is undefined


Yet if I use the numeric constant for DBMS_CRYPTO.HASH_SH1 (3), it works:

SQL> select DBMS_CRYPTO.HASH(bytes, 3) from blobslicer where id=1;
F5A7338EFFEB15A49AFC9545393EF685BB51F931

So what am I missing that prevents me from having access to a constant in the package when I can successfully use one of the function of that same package?

Thanks, --DD
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2008
Added on Jan 3 2008
6 comments
1,744 views