ORA-23346: primary key or object ID is undefined for table or materialized view string
Cause: 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.
Action: For 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.
常见情况:这个错误的经常发生在创建一个表时没有定义主键,或者在更新视图时未定义对象ID。
步骤1:转到表的定义上检查是否有定义主键。
步骤2:如果没有,请添加主键。
步骤3:重新尝试通过更新视图或者表,如果这个错误仍然发生,请确认你定义的主键是否正确。