How to Take an Inventory of TDE Encrypted Objects

Database administrators who manage multiple Oracle Databases may need to take a quick inventory of the TDE encrypted objects in a given database. Taking an inventory may be necessary not only for fulfilling day-to-day DBA responsibilities but also for attestation as part of periodic IT security audits.

Fortunately, listing out the TDE encrypted objects in an Oracle Database is straightforward using simple SQL queries. These queries leverage the built-in DBA_* views, and you need to have the correct database privileges to use them (e.g. have DBA role, hold individual select privileges, be logged in as SYSDBA, etc.):

  • dba_encrypted_columns
  • dba_tables
  • dba_tablespaces
  • dba_indexes

Below are example queries that use these DBA_* views to answer basic questions about what TDE encrypted objects exist in the database:

  • What tables contain TDE encrypted columns?
    sql> select table_name, column_name from dba_encrypted_columns;

  • What tables are stored in TDE encrypted tablespaces?
    sql> select a.table_name, a.tablespace_name from dba_tables a, dba_tablespaces b where a.tablespace_name = b.tablespace_name and b.encrypted = 'YES';

  • What indexes are stored in TDE encrypted tablespaces?
    sql> select a.index_name, a.tablespace_name from dba_indexes a, dba_tablespaces b where a.tablespace_name = b.tablespace_name and b.encrypted = 'YES' and index_name not like 'SYS_IL%';

  • What are all of the TDE encrypted objects including tables, indexes and columns?
    [Use a combination of the above queries]

Comments:

Post a Comment:
Comments are closed for this entry.
About

Blog covering Oracle Advanced Security for Oracle Database Enterprise Edition. Specific topics include Transparent Data Encryption (TDE) and Data Redaction.

Search

Top Tags
Categories
Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    
       
Today