Overview
This view displays the dependencies of materialized views for the current tenant.
Columns
Field |
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 | Owner name of the dependent object. |
| DEP_NAME | varchar(256) | NO | The name of the dependent object. |
| DEP_TYPE | varchar(64) | NO | Dependency object type:
|
Sample query
obclient [(none)]> SELECT * FROM oceanbase.DBA_MVIEW_DEPS;
The return result is as follows:
+-------------+------------------+-----------+---------------+----------------+
| MVIEW_OWNER | MVIEW_NAME | DEP_OWNER | DEP_NAME | DEP_TYPE |
+-------------+------------------+-----------+---------------+----------------+
| db_test | mv_mv1_tbl3_tbl4 | db_test | mv1_tbl3_tbl4 | MV |
| db_test | mv1_tbl3_tbl4 | db_test | tbl4 | TABLE |
| db_test | mv1_tbl3_tbl4 | db_test | tbl3 | TABLE |
| db_test | mv_ext_tbl1 | db_test | ext_tbl1 | EXTERNAL TABLE |
+-------------+------------------+-----------+---------------+----------------+
4 rows in set