Oracle Solution for Error ora-23346

Solution for Oracle Error ORA-23346

ORA-23346: primary key or object ID is undefined for table or materialized view string

What triggered the Error:

Trying to generate replication support for a table or materialized view without a primary key (as defined by a constraint or dbms_repcat.set_columns) or an object ID.

What should we do to fix it:

r a table, add a primary key constraint or define a primary key using dbms_repcat.set_columns or use object tables. For a ROWID materialized view, set min_communication to false or use primary key or object ID materialized views.