When I am trying to create tablespace on pluggable databases (PDB) facing below issue.
SQL Error: ORA-28374:
typed master key not found in wallet
28374. 0000 -
"typed master key not found in wallet"
*Cause: You attempted
to access encrypted tablespace or redo logs with
a typed master
key not existing in the wallet.
*Action: Copy the
correct Oracle Wallet from the instance where the tablespace
was created.
Solution
Login with CDB and follow below steps.
[oracle@JCDB ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Mon Jun 5 15:53:48 2017
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c EE High Perf Release 12.1.0.2.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Advanced Analytics
and Real Application Testing options
SQL> show con_name;
CON_NAME
------------------------------
CDB$ROOT
SQL> administer key management set keystore close;
keystore altered.
SQL> select status, wallet_type, con_id from v$encryption_wallet;
STATUS WALLET_TYPE CON_ID
------------------------------ -------------------- ----------
OPEN AUTOLOGIN 0
SQL> select '!rm ' || wrl_parameter || 'cwallet.sso' from
v$encryption_wallet;
'!RM'||WRL_PARAMETER||'CWALLET.SSO'
--------------------------------------------------------------------------------
!rm /u01/app/oracle/admin/CDB/tde_wallet/cwallet.sso
SQL> !rm /u01/app/oracle/admin/CDB/tde_wallet/cwallet.sso
SQL> administer key management set keystore close;
keystore altered.
SQL> select status, wallet_type, con_id from v$encryption_wallet;
STATUS WALLET_TYPE CON_ID
------------------------------ -------------------- ----------
CLOSED UNKNOWN 0
SQL> administer key management set keystore open identified by sys_password container=all;
keystore altered.
SQL> administer key management set key identified by sys_password with backup;
keystore altered.
SQL> administer key management set key identified by sys_password with backup container=all;
keystore altered.
Retest issue.
SQL>
alter session set container=PDB;
Session altered.
SQL> show con_name
CON_NAME
------------------------------
PDB
SQL> CREATE TABLESPACE tablespace-name DATAFILE '/u02/app/oracle/oradata/CDB/data01.dbf' size 1024M;
Tablespace created.
issue resolved.
No comments:
Post a Comment