How to find out table mview log mismatch columns




SELECT A.TABLE_NAME,a.column_name,a.data_type,c.data_type,a.data_length,c.data_length,b.log_table

from

DBA_TAB_COLUMNS A,DBA_MVIEW_LOGS B,DBA_TAB_COLUMNS C

WHERE A.TABLE_NAME=B.MASTER AND

B.LOG_TABLE=C.TABLE_NAME AND

A.COLUMN_NAME=C.COLUMN_NAME AND

(A.DATA_LENGTH<>C.DATA_LENGTH or a.data_type<>c.data_type);

Post a Comment

And that's all there is to it!

If anyone has any other questions or requests for future How To posts, you can either ask them in the comments or email me. Please don't feel shy at all!

I'm certainly not an expert, but I'll try my hardest to explain what I do know and research what I don't know.

Previous Post Next Post