ORA-22971: invalid datatype for PRIMARY KEY-based object identifier 15-32 Oracle Database ErrorMessages Cause: When creating anobject view, the datatype of an expression in the WITH
OBJECT OID clause is not allowed for PRIMARY KEY-based OID. Action: Replace theexpression with one of appropriate scalar datatype.