Oracle Error ORA-22980: must specify a set of attributes for the WITH OBJECT OID clause

Oracle Error Message

ORA-22980: must specify a set of attributes for the WITH OBJECT OID clause

Reason for the Error

The WITH OBJECT OID DEFAULT clause was used, but the underlying view or table does not have a OID.

Solution

Specify attributes for the WITH OBJECT OID clause to create a primary key based object identifier for the object view.