PMOrion
PMOrion

Reputation: 169

Rebuild materialized view log

I need to drop and re-create a view log only if it references a specific column. I don't see anything in dba_mview_logs or sys.mlog$ that describes the base columns a view log references.

Upvotes: 0

Views: 1076

Answers (1)

Wernfried Domscheit
Wernfried Domscheit

Reputation: 59652

Try this one:

SELECT MASTER, LOG_TABLE, COLUMN_NAME 
FROM USER_MVIEW_LOGS
    JOIN USER_TAB_COLS c ON table_name = LOG_TABLE
WHERE MASTER = 'TABLE_WHERE_LOGS_ARE_TAKEN'

Upvotes: 2

Related Questions