Note
This view is available starting with V2.2.77.
Purpose
This view displays the encryption status of tablespaces with encryption enabled in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TABLESPACE_ID | NUMBER(38) | NO | The tablespace ID. |
| ENCRYPTIONALG | VARCHAR2(30) | NO | The name of the encryption algorithm. Valid values:
|
| ENCRYPTED | VARCHAR2(3) | NO | Indicates whether encryption is completed. Valid values:
|
| ENCRYPTEDKEY | VARCHAR2(32) | NO | The encryption key encrypted by the master key. |
| MASTERKEYID | NUMBER(38) | NO | The version of the master key. |
| BLOCKS_ENCRYPTED | NUMBER | NO | The number of encrypted macroblocks. |
| BLOCKS_DECRYPTED | NUMBER | NO | The number of unencrypted macroblocks. |
| STATUS | VARCHAR2(10) | NO | The encryption status. Valid values:
|
| CON_ID | NUMBER(38) | NO | The tenant ID. |
Sample query
Query the encryption status of tablespaces with encryption enabled in the current tenant.
obclient [SYS]> SELECT TABLESPACE_ID, ENCRYPTIONALG, ENCRYPTED, STATUS FROM SYS.V$ENCRYPTED_TABLESPACES;
The query result is as follows:
+---------------+---------------+-----------+--------+
| TABLESPACE_ID | ENCRYPTIONALG | ENCRYPTED | STATUS |
+---------------+---------------+-----------+--------+
| 500099 | sm4-cbc | YES | NORMAL |
+---------------+---------------+-----------+--------+
1 row in set
References
Query the encryption status of a table with encryption enabled: V$OB_ENCRYPTED_TABLES
For more information about transparent data encryption, see Transparent data encryption.
