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

相关推荐
宇宙第一小趴菜12 小时前
五、Oracle vs MySQL 架构深度对比笔记
mysql·oracle·架构
BullSmall1 天前
PostgreSQL 14 pg_dumpall 完整备份指南
数据库·postgresql·oracle
宇宙第一小趴菜1 天前
三、Oracle 核心原理
数据库·oracle
龙仔7251 天前
SQL Server OS_Core 数据库全自动备份【完整笔记·可直接复用】
数据库·笔记·oracle
Cloud云卷云舒2 天前
云卷云舒:从Oracle/MySQL迁移到HaishanDB:迁移评估工具核心技术拆解
mysql·oracle·ai-native·haishandb·信创数据库替换
段一凡-华北理工大学2 天前
向量数据库实战:选型、调优与落地~系列文章12:文本分块策略实战:chunk_size 怎么选?重叠多少?
开发语言·数据库·后端·oracle·rust·工业智能体·高炉智能化
oradh2 天前
Oracle XTTS实现跨版本迁移和升级(Oracle 11g单库升级至19C RAC集群)
数据库·oracle·11g升级19c·xtts跨版本迁移和升级
会编程的土豆2 天前
数据库范式
数据库·oracle
—Miss. Z—3 天前
计算机二级MySQL——简单应用题(存储过程&存储函数)
数据库·oracle·php
NineData3 天前
Oracle 卡住时先看阻塞源,ChatDBA 会先把锁链路理出来
数据库·oracle·ninedata·锁故障·锁等待·chatdba·锁阻塞