Oracle Solution for Error ora-12016

Solution for Oracle Error ORA-12016

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

What triggered the Error:

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

What should we do to fix it:

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