select 'drop materialized view log on '||mvl.log_owner||'.'||mvl.master||';' cmd from dba_mview_logs mvl where not exists ( select table_name from dba_tables tab where tab.owner = mvl.log_owner and tab.table_name = mvl.log_table ) ;
CMD
--------------------------------------------------------------------------------
drop materialized view log on SCOTT.EMP;
#执行正确的删除 materialized view log 语句
SQL> drop materialized view log on SCOTT.EMP;
Materialized view log dropped.
ORA-00942 when deleting from an existing Table after dropping materialized view log table (文档 ID 1912363.1)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29487349/viewspace-2143798/
,如需转载,请注明出处,否则将追究法律责任。