Note
This view is available starting with V4.3.5 BP2.
Purpose
This view displays the dependencies of materialized views in the current tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| MVIEW_OWNER | varchar(128) | NO | The name of the materialized view owner. |
| MVIEW_NAME | varchar(256) | NO | The name of the materialized view. |
| DEP_OWNER | varchar(128) | NO | The name of the owner of the dependent object. |
| DEP_NAME | varchar(256) | NO | The name of the dependent object. |
| DEP_TYPE | varchar(64) | NO | The type of the dependent object. Valid values:
|
Sample query
obclient [(none)]> SELECT * FROM oceanbase.DBA_MVIEW_DEPS;
The query result is as follows:
+-------------+------------------+-----------+---------------+----------------+
| MVIEW_OWNER | MVIEW_NAME | DEP_OWNER | DEP_NAME | DEP_TYPE |
+-------------+------------------+-----------+---------------+----------------+
| test | mv_mv1_tbl3_tbl4 | test | mv1_tbl3_tbl4 | MV |
| test | mv1_tbl3_tbl4 | test | tbl4 | TABLE |
| test | mv1_tbl3_tbl4 | test | tbl3 | TABLE |
| test | mv_ext_tbl1 | test | ext_tbl1 | EXTERNAL TABLE |
+-------------+------------------+-----------+---------------+----------------+
4 rows in set