如何确定表是否用于存储物化视图日志?

时间:2013-01-22 11:45:16

标签: sql oracle database-schema database-replication materialized-views

我在其上创建了物化视图日志表:

create table T1(A number primary key);
create materialized view log on T1 with primary key;

Oracle还为物化视图日志创建了两个表:

select TABLE_NAME from USER_TABLES

|T1       |
|MLOG$_T1 |
|RUPD$_T1 |

如何确定RUPD$_T1表是包含T1的mview日志的表?

我可以为MLOG$_T1确定这个:

select MASTER, LOG_TABLE from USER_MVIEW_LOGS

|T1       |MLOG$_T1 |

但是在哪里可以找到对表RUPD$_T1的引用?

2 个答案:

答案 0 :(得分:6)

它在SYS基表中。即。

SQL> select  master, log, temp_log from sys.mlog$ where mowner = user and master = 'T1';

MASTER               LOG                  TEMP_LOG
-------------------- -------------------- --------------------
T1                   MLOG$_T1             RUPD$_T1

答案 1 :(得分:0)

尝试:

 select * from all_mview_logs