Oracle DBMS_CRYPTO – How to Grant User Access in Oracle 11g R2

oracleoracle-11g-r2

Couldn't find user

I tried this

grant execute on sys.dbms_crypto to "DB_Project";

But error: ORA-00942: table or view does not exist
00942. 00000 – "table or view does not exist"

Also tried this:

grant execute on sys.dbms_crypto to SYSTEM."DB_Project"; 

ERROR: 00000 – "SQL command not properly ended"

How to solve???

Best Answer

That error is caused by granting a privilege connected as SYSTEM.

If you're connected as SYS, it'll work just fine:

grant execute on dbms_crypto to "DB_Project"; 

(if user is really created using mixed case; otherwise, remove double quotes).