ORA-23346: primary key or object ID is undefined for table or materialized view string ORACLE 报错 故障修复 远程处理
文档解释
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:重新尝试通过更新视图或者表,如果这个错误仍然发生,请确认你定义的主键是否正确。
香港美国云服务器首选后浪云,2H2G首月10元开通。
后浪云(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。
版权声明:
作者:后浪云
链接:https://www.idc.net/help/41117/
文章版权归作者所有,未经允许请勿转载。
THE END