DBMS_CRYPTO does not support storing keys in a wallet by itself, but a table can be used for storing these keys that are either stored in an encrypted tablespace or have an encrypted key column.
-
Create a table for storing the keys and add a key to the table:
|
›_ Console |
|
-
Save the following script to a file:
|
Alternatively, the following two commands can be used instead of the script:
SQL > CONNECT sqlplus as sysdba;
SQL > GRANT EXECUTE ON sys.dbms_crypto TO user2;
|
›_ Console |
|
-
Enable the server output and run the script:
|
›_ Console |
|