Overview
Displays the encryption status of tablespaces with encryption enabled for the current tenant.
Columns
Field |
Type |
Nullable |
Description |
|---|---|---|---|
| TABLESPACE_ID | bigint(20) | NO | Tablespace ID |
| ENCRYPTIONALG | varchar(30) | NO | Encryption algorithm name:
|
| ENCRYPTED | varchar(3) | NO | Encryption completed:
|
| ENCRYPTEDKEY | varchar(33) | NO | Encrypted Key Encrypted by Primary Key |
| MASTERKEYID | bigint(20) unsigned | NO | Primary Key Version |
| BLOCKS_ENCRYPTED | decimal(20,0) | NO | Number of Encryption Macroblocks |
| BLOCKS_DECRYPTED | decimal(21,0) | NO | Number of Uncrypted Macroblocks |
| STATUS | varchar(10) | NO | Encryption status:
|
| CON_ID | bigint(20) | NO | Tenant ID |
Sample query
View the encryption status of tablespaces with encryption enabled under the current tenant.
obclient [oceanbase]> SELECT TABLESPACE_ID, ENCRYPTIONALG, ENCRYPTED, STATUS FROM oceanbase.V$ENCRYPTED_TABLESPACES;
The query result is as follows:
+---------------+---------------+-----------+--------+
| TABLESPACE_ID | ENCRYPTIONALG | ENCRYPTED | STATUS |
+---------------+---------------+-----------+--------+
| 500061 | aes-256 | YES | NORMAL |
+---------------+---------------+-----------+--------+
1 row in set
References
View the encryption status of tables with encryption enabled: V$OB_ENCRYPTED_TABLES
For more information about data transparent encryption, see Overview of database transparent encryption.