Note
This view is available starting with V2.2.30.
Purpose
This view displays the views that the current user owns.
Applicability
This view is available only in Oracle-compatible mode.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| VIEW_NAME | VARCHAR2(128) | YES | The name of the view. |
| TEXT_LENGTH | NUMBER | NO | The length of the view definition. |
| TEXT | CLOB | NO | The text of the view. |
| TEXT_VC | VARCHAR2(4000) | NO | This column is not supported and is NULL by default. |
| TYPE_TEXT_LENGTH | NUMBER | NO | This column is not supported and is NULL by default. |
| TYPE_TEXT | VARCHAR2(4000) | NO | This column is not supported and is NULL by default. |
| OID_TEXT_LENGTH | NUMBER | NO | This column is not supported and is NULL by default. |
| OID_TEXT | VARCHAR2(4000) | NO | This column is not supported and is NULL by default. |
| VIEW_TYPE_OWNER | VARCHAR2(128) | NO | This column is not supported and is NULL by default. |
| VIEW_TYPE | VARCHAR2(30) | NO | This column is not supported and is NULL by default. |
| SUPERVIEW_NAME | VARCHAR2(30) | NO | This column is not supported and is NULL by default. |
| EDITIONING_VIEW | VARCHAR2(1) | NO | This column is not supported and is NULL by default. |
| READ_ONLY | VARCHAR2(1) | NO | This column is not supported and is NULL by default. |
| CONTAINER_DATA | VARCHAR2(1) | NO | This column is not supported and is NULL by default. |
| BEQUEATH | VARCHAR2(12) | NO | This column is not supported and is NULL by default. |
| ORIGIN_CON_ID | NUMBER | NO | This column is not supported and is NULL by default. |
| DEFAULT_COLLATION | VARCHAR2(100) | NO | This column is not supported and is NULL by default. |
| CONTAINERS_DEFAULT | VARCHAR2(3) | NO | This column is not supported and is NULL by default. |
| CONTAINER_MAP | VARCHAR2(2) | NO | This column is not supported and is NULL by default. |
| EXTENDED_DATA_LINK | VARCHAR2(3) | NO | This column is not supported and is NULL by default. |
| EXTENDED_DATA_LINK_MAP | VARCHAR2(3) | NO | This column is not supported and is NULL by default. |
| HAS_SENSITIVE_COLUMN | VARCHAR2(3) | NO | This column is not supported and is NULL by default. |
| ADMIT_NULL | VARCHAR2(3) | NO | This column is not supported and is NULL by default. |
| PDB_LOCAL_ONLY | VARCHAR2(3) | NO | This column is not supported and is NULL by default. |
Sample query
Query the information about the view VIEW1 that the current user owns.
obclient [SYS]> SELECT VIEW_NAME, TEXT_LENGTH, TEXT FROM SYS.USER_VIEWS WHERE VIEW_NAME='VIEW1';
The query result is as follows:
+-----------+-------------+-----------------------------+
| VIEW_NAME | TEXT_LENGTH | TEXT |
+-----------+-------------+-----------------------------+
| VIEW1 | 27 | SELECT col1, col2 FROM tbl1 |
+-----------+-------------+-----------------------------+
1 row in set
References
Query all views that the current user can access: ALL_VIEWS
Query all views in the current tenant: DBA_VIEWS
For more information about the syntax of the CREATE VIEW statement, see CREATE VIEW.