ORA-28361: master key not yet set
Cause: The master key for the instance was not set.
Action: Execute the ALTER SYSTEM SET KEY command to set a master key for the database instance.
ORA-28361: master key not yet set 意味着 Oracle 数据库的主密钥未设置。
1. 登录到 Oracle 数据库主机上运行 sqlplus
2. 以系统用户身份登录到数据库
3. 创建一个主密钥: ALTER SYSTEM SET ENCRYPTION KEY IDENTIFIED BY ;
4. 验证主密钥是否已配置: SELECT * FROM V$ENCRYPTION_WALLET;
5. 如果主密钥已设置,则可以启用安全认证: ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY ;
6. 您可以使用查询来验证: SELECT AES_DECRYPT FROM V$ENCRYPTION_WALLET;
该查询将返回 AES_DECRYPT 到数据库中的加密功能。