TDE_HEALTHCHECK
The TDE health-check was planned to give Oracle Support personnel a quick overview about your TDE setup, but eventually it was decided to include it in recent Oracle Database RUs in 19c and 26ai.
In Oracle database 19c before 19.30, you need to apply patch 38486044.
It is very easy to use: First, compile it with:
SQL> @$ORACLE_HOME/rdbms/admin/tde_healthcheck.sql
To get the complete results, simply execute:
SQL> execute tde_healthcheck.get_tde_healthcheck_report;
Individual checks allow for a more targeted validation:
SQL> exec tde_healthcheck.get_wallet_root;
Display WALLET_ROOT from gv$parameter.
SQL> exec tde_healthcheck.get_wallet_
Where are my TDE wallets? Usually in WALLET_ROOT/tde
SQL> exec tde_healthcheck.get_tde_config;
Shows the value of the parameter TDE_CONFIGURATION.
SQL> exec tde_healthcheck.get_props_
Read the TDE configuration from internal tables.
SQL> exec tde_healthcheck.validate_tde_
Compares the TDE settings in the spfile with internal tables.
SQL> exec tde_healthcheck.get_
Shows the value of the parameter TABLESPACE_ENCRYPTION.
SQL> exec tde_healthcheck.get_encwallet_
Validates TDE wallet location type (FILE, ASM, OKV), united or isolated PDBs, and other details.
SQL> exec tde_healthcheck.get_enckeys_
Key-IDs (in base64), creation and activation times of TDE keys in CDB and PDBs.
SQL> exec tde_healthcheck.get_pdbs_
Shows activated TDE keys (in hex) for CDB and all PDBs.
SQL> exec tde_healthcheck.get_encrypted_
Shows list of encrypted tablespaces in CDB and all PDBs, with their encryption algorithm.
SQL> exec tde_healthcheck.get_
Shows required vs. available keys; if keys are missing, call Oracle Support.
SQL> exec tde_healthcheck.get_encrypted_
Shows list of encrypted data files in CDB and all PDBs.
Link to LinkedIn post.
Comments
Post a Comment