Oracle Error ORA-28386: cannot perform a PKI certificate-based Master Key Rekey

Oracle Error Message

ORA-28386: cannot perform a PKI certificate-based Master Key Rekey

Reason for the Error

A PKI certificate-based Master Key Rekey was attempted when Tablespace Encryption or HSM was in use.

Solution

Perform a symmetric Master Key Rekey or disable Tablespace Encryption for all tablespaces.