Oracle Error ORA-12016: materialized view does not include all primary key columns

Oracle Error Message

ORA-12016: materialized view does not include all primary key columns

Reason for the Error

The query that instantiates the materialized view did not include all of the columns in the master’s primary key constraint.

Solution

Include all of the master’s primary key columns in the materialized view query or create a ROWID materialized view.