Purpose
Display all views in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| OWNER | VARCHAR2(128) | YES | The user to which the view belongs. |
| VIEW_NAME | VARCHAR2(128) | YES | The name of the index. |
| TEXT_LENGTH | NUMBER | NO | The length of the view text. |
| TEXT | CLOB | NO | View text |
| TEXT_VC | VARCHAR2(4000) | NO | This field is temporarily not supported and its default value is NULL. |
| TYPE_TEXT_LENGTH | NUMBER | NO | This field is temporarily not supported and its default value is NULL |
| TYPE_TEXT | VARCHAR2(4000) | NO | This field is not supported yet, and its default value is NULL. |
| OID_TEXT_LENGTH | NUMBER | NO | At present, this column is not supported and its value is NULL by default. |
| OID_TEXT | VARCHAR2(4000) | NO | At present, this column is not supported and its value is NULL by default. |
| VIEW_TYPE_OWNER | VARCHAR2(128) | NO | The owner of the view, a value of which is not supported at present, and which is set to NULL by default. |
| VIEW_TYPE | VARCHAR2(30) | NO | At present, this column is not supported and its value is NULL by default. |
| SUPERVIEW_NAME | VARCHAR2(30) | NO | At present, this column is not supported and its value is NULL by default. |
| EDITIONING_VIEW | VARCHAR2(1) | NO | At present, this column is not supported and its value is NULL by default. |
| READ_ONLY | VARCHAR2(1) | NO | At present, this column is not supported and its value is NULL by default. |
| CONTAINER_DATA | VARCHAR2(1) | NO | This field is not supported and is therefore set to NULL. |
| BEQUEATH | VARCHAR2(12) | NO | This field is not supported now. The value of this field is null by default. |
| ORIGIN_CON_ID | NUMBER | NO | The field is not supported and currently defaults to NULL. |
| DEFAULT_COLLATION | VARCHAR2(100) | NO | Not supported currently and the value of this field is NULL by default |
| CONTAINERS_DEFAULT | VARCHAR2(3) | NO | The field is not supported yet. This field is set to NULL by default |
| CONTAINER_MAP | VARCHAR2(2) | NO | This field is not supported and is set to NULL by default. |
| EXTENDED_DATA_LINK | VARCHAR2(3) | NO | This field is not supported currently and defaults to NULL. |
| EXTENDED_DATA_LINK_MAP | VARCHAR2(3) | NO | This field is not supported and is null by default. |
| HAS_SENSITIVE_COLUMN | VARCHAR2(3) | NO | This field is not supported at present and defaults to NULL. |
| ADMIT_NULL | VARCHAR2(3) | NO | Currently, this field is not supported, and its default value is NULL |
| PDB_LOCAL_ONLY | VARCHAR2(3) | NO | This field is not supported and defaults to NULL. |
Sample query
View the information about the VIEW2 view in the current tenant's view.
obclient [SYS]> SELECT OWNER, VIEW_NAME, TEXT_LENGTH, TEXT FROM SYS.DBA_VIEWS WHERE VIEW_NAME='VIEW2';
The query result is as follows:
+-------+-----------+-------------+--------------------------------------------+
| OWNER | VIEW_NAME | TEXT_LENGTH | TEXT |
+-------+-----------+-------------+--------------------------------------------+
| SYS | VIEW2 | 42 | SELECT "A","B" FROM tbl2 WHERE tbl2.b > 1 |
+-------+-----------+-------------+--------------------------------------------+
1 row in set
Reference
View all views accessible by the current user: ALL_VIEWS
View the views that you own: USER_VIEWS
For more information about the syntax of the CREATE VIEW statement, see CREATE VIEW.