How to delete materialized views by MVLOG to avoid ora-00942 errors
Editor to share with you how to delete MVLOG materialized view to avoid ora-00942 errors, I believe that most people do not understand, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
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
# execute the correct delete materialized view log statement
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 (document ID 1912363.1)
The above is all the contents of the article "how to delete materialized views in MVLOG to avoid ora-00942 errors". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!