How to fix the Oracle error ORA-12014: table ‘string’ does not contain a primary key constraint?

In this post, you’ll learn more about the Oracle ErrorORA-12014: table ‘string’ does not contain a primary key constraint with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

ORA-12014: table ‘string’ does not contain a primary key constraint

Reason for the Error ORA-12014: table ‘string’ does not contain a primary key constraint

The CREATE MATERIALIZED VIEW LOG command was issued with the WITH PRIMARY KEY option and the master table did not contain a primary key constraint or the constraint was disabled.

How to fix the Error ORA-12014: table ‘string’ does not contain a primary key constraint ?

You can fix this error in Oracle by following the below steps

Reissue the command using only the WITH ROWID option, create a primary key constraint on the master table, or enable an existing primary key constraint.

Tags :

Leave Your Comment