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

相关推荐
ClouGence4 天前
Oracle 数据同步为什么会出现数据不一致?长事务是常被忽略的原因
数据库·后端·oracle
ClouGence10 天前
Oracle CDC 架构优化:从主库直连到 DataGuard 备库同步
数据库·后端·oracle
曹牧11 天前
Oracle EXPLAIN PLAN
数据库·oracle
贤时间11 天前
codex 助力oracle ebs 开发
数据库·oracle
秉承初心11 天前
PostgreSQL 数据性能瓶颈突破实战
数据库·postgresql·oracle
Curvatureflight11 天前
MySQL 深分页越来越慢?从 LIMIT OFFSET 改成游标分页
数据库·oracle
XZ-07000111 天前
MySQL事务
数据库·mysql·oracle
tiancaijiben11 天前
阿里云函数计算FC如何实现网站的定时任务与自动化
数据库·oracle·dba
xfhuangfu11 天前
Oracle 19c 多租户体系架构介绍
数据库·oracle·架构
杨云龙UP11 天前
Spotlight 接入 Oracle 数据库监控操作指南 2026-06-16
数据库·oracle·性能监控·预警·阈值·spotlight·瓶颈分析