Note
This view is available starting with V2.2.30.
Purpose
This view displays the tablespaces accessible to the current user. It has the same columns as DBA_TABLESPACES, but without the PLUGGED_IN column.
Applicability
This view is applicable only to OceanBase Database in Oracle-compatible mode.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TABLESPACE_NAME | VARCHAR2(30) | NO | The name of the tablespace. |
| BLOCK_SIZE | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| INITIAL_EXTENT | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| NEXT_EXTENT | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| MIN_EXTENTS | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| MAX_EXTENTS | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| MAX_SIZE | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| PCT_INCREASE | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| MIN_EXTLEN | NUMBER | NO | This column is not supported. It is set to NULL by default. |
| STATUS | VARCHAR2(9) | NO | This column is not supported. It is set to NULL by default. |
| CONTENTS | VARCHAR2(9) | NO | This column is not supported. It is set to NULL by default. |
| LOGGING | VARCHAR2(9) | NO | This column is not supported. It is set to NULL by default. |
| FORCE_LOGGING | VARCHAR2(3) | NO | This column is not supported. It is set to NULL by default. |
| EXTENT_MANAGEMENT | VARCHAR2(10) | NO | This column is not supported. It is set to NULL by default. |
| ALLOCATION_TYPE | VARCHAR2(9) | NO | This column is not supported. It is set to NULL by default. |
| SEGMENT_SPACE_MANAGEMENT | VARCHAR2(6) | NO | This column is not supported. It is set to NULL by default. |
| DEF_TAB_COMPRESSION | VARCHAR2(8) | NO | Indicates whether default table compression is enabled. |
| RETENTION | VARCHAR2(11) | NO | This column is not supported. It is set to NULL by default. |
| BIGFILE | VARCHAR2(3) | NO | This column is not supported. It is set to NULL by default. |
| PREDICATE_EVALUATION | VARCHAR2(7) | NO | This column is not supported. It is set to NULL by default. |
| ENCRYPTED | VARCHAR2(3) | NO | This column is not supported. It is set to NULL by default. |
| COMPRESS_FOR | VARCHAR2(12) | NO | This column is not supported. It is set to NULL by default. |
Sample query
Query all tablespaces accessible to the current user.
obclient [SYS]> SELECT TABLESPACE_NAME, ENCRYPTED FROM SYS.USER_TABLESPACES;
The query result is as follows:
+-----------------+-----------+
| TABLESPACE_NAME | ENCRYPTED |
+-----------------+-----------+
| SECTEST_TS1 | YES |
| TS2 | NO |
+-----------------+-----------+
2 rows in set
References
To query all tablespaces under the current tenant, query the DBA_TABLESPACES view.