oracle如何enable一个pdb的TDE

默认我们clone pdb$seed创建的pdb,是没有enable tde的
所以创建tablespace的时候会收到下面的错误ORA-28361: master key not yet set

SQL> create pluggable database cdb1pdb88004  admin user pdbadmin identified by cdb1 roles=(connect) file_name_convert=none;

Pluggable database created.

SQL> alter pluggable database cdb1pdb88004 open read write instances=all;

Pluggable database altered.

SQL> alter session set container=cdb1pdb88004;

Session altered.

SQL> column wrl_parameter format a30
SQL> set linesize 180;
SQL> SELECT wrl_parameter, status, wallet_type FROM v$encryption_wallet;

WRL_PARAMETER                  STATUS                         WALLET_TYPE
------------------------------ ------------------------------ --------------------
                               OPEN_NO_MASTER_KEY             AUTOLOGIN

SQL> create bigfile tablespace cdb1pdb88002_001726_1;
create bigfile tablespace cdb1pdb88002_001726_1
*
ERROR at line 1:
ORA-28361: master key not yet set

在enable tde之后,创建表空间就不会报错了

SQL> administer key management set key force keystore identified by cdb1 with backup;

keystore altered.

SQL> SELECT wrl_parameter, status, wallet_type FROM v$encryption_wallet;

WRL_PARAMETER                  STATUS                         WALLET_TYPE
------------------------------ ------------------------------ --------------------
                               OPEN                           AUTOLOGIN

SQL> create bigfile tablespace cdb1pdb88002_001726_1;

Tablespace created.

下面是修改一个CDB的tde的密码

SQL> alter session set container=cdb$root;

Session altered.

SQL> administer key management alter keystore password force keystore identified by WelCome_123 set cdb1 with backup;

keystore altered.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值