TDE HSM SET ENCRYPTION KEY

Applies To

All Users

Summary

It Possible To Migrate The Encryption Keys From A Software Wallet To A HSM And Viceversa ?

Solution

Currently only the migration of the encryption keys from an Oracle wallet to a HSM device is possible. The reverse migration from HSM to wallet is not supported before 12.1.

The procedure to migrate the Encryption keys from a wallet to a HSM is :

  1. Set the ENCRYPTION_WALLET_LOCATION parameter in sqlnet.ora:

ENCRYPTION_WALLET_LOCATION=

(SOURCE=(METHOD=HSM)

(METHOD_DATA=

(DIRECTORY=/oracle/TDE_WALLETS/$ORACLE_SID)

)

)

  1. Copy the HSM PKCS#11 library to the path specified by the vendor:

/opt/oracle/extapi/32,64/hsm/{VENDOR}/{VERSION}/libapiname.ext

  1. Run the following statement :

ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY "HSMuser:HSMpassword" MIGRATE USING "wallet_password";

Reverse Migration from HSM device to Oracle Wallet:

  1. In 11.2.0 4 : Apply patch 20181737

  2. Run : ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY "wallet_password" REVERSE MIGRATE USING "HSMuser:HSMpassword";

Note: Starting from 12.1 DB, reverse migration from HSM to Oracle Software wallet is possible.

https://docs.oracle.com/database/121/ASOAG/managing-keystore-and-tde-master-encryption-key.htm#GUID-01C2DB62-E887-4BD9-AFDB-B8772E52A450

Note: In 11.2.0.4 DB, if you are facing ORA-7445 KZTHSMGMK() error while removing HSM wallet and re-doing the TDE configuration using Oracle wallet, then apply patch 20181737

Attachments :

Article Feedback

相关推荐
oradh4 小时前
Oracle Undo问题总结(ORA-600 [4xxx] 系列错误)
数据库·oracle
达梦数据4 小时前
DMDRS辅助表生成规则与作用
数据库·oracle
达梦数据8 小时前
DMDRS空间数据类型说明:Oracle、DM8、MySQL空间数据类型映射
数据库·mysql·oracle
lusklusklusk9 小时前
Oracle索引组织表,SQLServer聚集索引,Mysql Innodb表的数据行不是在磁盘上像排队一样严格连续地存放
mysql·postgresql·oracle·sqlserver
Lucifer三思而后行1 天前
Oracle SQL 优化实战:明明走了索引,SQL 还是慢?
sql·oracle
DarkAthena1 天前
【DuckDB】在DuckDB中查询ORACLE的数据的三种方式
oracle·duckdb
风123456789~2 天前
【Oracle专栏】更新多个表的统计信息
oracle
实心儿儿2 天前
MySQL — 库的操作
数据库·mysql·oracle
隔窗听雨眠2 天前
Oracle普通表自动改造分区表:从评估到自动化维护的完整实战指南
oracle
我要见SA姐12 天前
告别 Copilot?Codex 本地化部署指南
运维·数据库·机器学习·oracle·回归