How to fix the Oracle error ORA-22971: invalid datatype for PRIMARY KEY-based object identifier?
In this post, you’ll learn more about the Oracle ErrorORA-22971: invalid datatype for PRIMARY KEY-based object identifier with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
ORA-22971: invalid datatype for PRIMARY KEY-based object identifier
Reason for the Error ORA-22971: invalid datatype for PRIMARY KEY-based object identifier
When creating an object view, the datatype of an expression in the WITH OBJECT OID clause is not allowed for PRIMARY KEY-based OID.
How to fix the Error ORA-22971: invalid datatype for PRIMARY KEY-based object identifier ?
You can fix this error in Oracle by following the below steps
Replace the expression with one of appropriate scalar datatype.
Leave Your Comment