Copy TDE wallets out of and into ASM with kscopy
As organizations continue to strengthen their database security posture, centralizing encryption key management has become an increasingly important operational and compliance requirement. Oracle Key Vault (OKV) provides a secure, scalable platform for managing Transparent Data Encryption (TDE) master keys across enterprise database environments. When migrating existing encrypted Oracle RAC databases from traditional wallet-based key management to OKV, careful planning can help ensure a smooth transition while preserving access to both current and historical encryption keys.
Before migrating an encrypted, RAC-enabled database from a shared local TDE wallet to OKV, it is recommended to leverage OKV's unique capability and upload the current and all retired TDE keys to OKV.
In Oracle RAC, only shared wallets (for example stored in ACFS or directly in ASM) that can be accessed by all RAC instances are supported. Using individual TDE wallets for each RAC node is not supported.
Uploading the TDE keys from wallets in ASM required a few extra steps, since okvutil doesn't understand the ASM syntax.
First, create a new wallet on the local file system:
SQL> administer key management create keystore '/future/wallet/root/tde/' identified by "new wallet password";
Then, merge the content of the ASM wallet into the new wallet, effectively copying the TDE keys into the new wallet:
SQL> administer key management merge keystore '+DATA/$DB_NAME/tde' into existing keystore '/future/wallet/root/tde/' identified by "new wallet password" with backup;
Instead of the above commands, you can use (in recent 19c DB RUs and 26ai):
$ asmcmd kscopy +DATA/$DB_NAME/tde/ewallet.p12 /future/wallet/root/tde/
kscopy can copy auto-login wallets, but I prefer to create a LOCAL auto-login wallet from the password-protected wallet.
Link to LinkedIn post.
Comments
Post a Comment