Criando Tablespace Encryptadas no Oracle 11g - Ora-28374: Typed Master Key Not Found In Wallet (Doc ID 757936.1)
Creating Encrypted Tablespace in 11.1 DB Fails
Creating Encrypted Tablespace in 11.1 DB Fails
#OracledoBrasil
#Oracle
Exemplo do problema encontrado:
CREATE TABLESPACE Tablespace_Name DATAFILE
*
ERROR at line 1:
ORA-28374: typed master key not found in wallet
1 --- Verificar se o wallet está aberto:
1 --- Verify that the wallet is open
SELECT WRL_TYPE,WRL_PARAMETER,STATUS FROM V$ENCRYPTION_WALLET;
2 --- Validando a senha do wallet
2 --- Validating the wallet password
orapki wallet display -wallet /oracle/wallet -pwd wallet_password
3 --- Verificar se há colunas criptografadas usando o wallet atual:
3 --- Check for any encrypted columns using the current wallet:
SELECT OWNER,TABLE_NAME, COLUMN_NAME FROM DBA_ENCRYPTED_COLUMNS;
SELECT TABLESPACE_NAME, STATUS, CONTENTS, ENCRYPTED FROM DBA_TABLESPACES;
4 --- Feche o wallet atual:
4 --- Close the encryption wallet:
ALTER SYSTEM SET WALLET CLOSE;
5 --- Crie um novo wallet de criptografia
5 --- Create a new encryption wallet :
ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY "&wallet_password";
or
ALTER SESSION SET ENCRYPTION KEY IDENTIFIED BY "&wallet_password";
6 --- Agora você deve conseguir criar a tablespace criptografado, por exemplo:
6 --- You should now be able to create your encrypted tablespace, for example:
CREATE TABLESPACE &tablespace_name DATAFILE SIZE 50M ENCRYPTION DEFAULT STORAGE (ENCRYPT);
Se em algum momento receber uma mensagem com o seguinte erro:
ORA-28367: wallet does not exist
É possível que os parâmetros no sqlnet.ora estejam incorretos, ou talvez seu TNS_ADMIN esteja configurado para que o sqlnet.ora não esteja sendo acessado.
O sqlnet.ora precisa ter um parâmetro de entrada semelhante a isso:
==========
ENCRYPTION_WALLET_LOCATION=
(
SOURCE=(METHOD=FILE)
(
METHOD_DATA=(DIRECTORY=/u01/app/oracle/admin/orcl/tde_wallet/orcl) # Caminho do wallet da etapa 1
)
)
Fonte:
https://support.oracle.com
https://asktom.oracle.com/pls/apex/f?p=100:11:::NO:RP:P11_QUESTION_ID:9537878200346737616