PLS-00201: identifier 'DBMS_CRYPTO' must be declared issue - Fix
ISSUE:
SQL> show error
Errors for FUNCTION "SCOTT"."DECRYPT_CHAR":
LINE/COL ERROR
-------- -----------------------------------------------------------------
6/19 PL/SQL: Item ignored
6/34 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
17/1 PL/SQL: Statement ignored
17/24 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
SQL>
SOLUTION:
You need to give access on dbms_crypto to your schema. Here your schema is "scott".
SQL> grant execute on sys.dbms_crypto to SCOTT;
Grant succeeded.
ISSUE:
SQL> show error
Errors for FUNCTION "SCOTT"."DECRYPT_CHAR":
LINE/COL ERROR
-------- -----------------------------------------------------------------
6/19 PL/SQL: Item ignored
6/34 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
17/1 PL/SQL: Statement ignored
17/24 PLS-00201: identifier 'DBMS_CRYPTO' must be declared
SQL>
SOLUTION:
You need to give access on dbms_crypto to your schema. Here your schema is "scott".
SQL> grant execute on sys.dbms_crypto to SCOTT;
Grant succeeded.