Search notes:

Oracle SQL noun: KEY MANAGEMENT

Creating a keystore

In a shell on the database server
mkdir /opt/oracle/wallet
Then in an SQL prompt:
administer key management create keystore '/opt/oracle/wallet' identified by theWalletsSecret;
This command created the file ewallet.p12 in the wallet directory:
ls -l /opt/oracle/wallet
total 4
-rw------- 1 oracle oinstall 2555 Feb 17 09:17 ewallet.p12

TODO

administer key management set keystore open identified by …;
administer key management set key identified by … with backup;
The following command creates /opt/oracle/wallet/cwallet.sso:
administer key management create       auto_login keystore from keystore '/opt/oracle/wallet' identified by theWalletsSecret;
administer key management create local auto_login keystore from keystore '/opt/oracle/wallet' identified by theWalletsSecret;
Change the keystore's password:
administer key management alter keystore password identified by theWalletsSecret set theWalletsNewSecret with backup using 'pwd_change';
Back up the keystore:
administer key management backup keystore using 'wallet-backup-of-2024-02-17' identified by theWalletsSecret;
As per MOS Note 2253348.1, a security officer should be given the SYSKM privilege rather than the SYSDBA - so that the security officer cannot execute alter system commands such as alter system set encryption key ….

See also

ORA-46633: creation of a password-based keystore failed
ORA-28367: wallet does not exist

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759445330, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/SQL/statement/nouns/key-management(78): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78