Oracle Error ORA-24318: call not allowed for scalar data types

Oracle Error Message

ORA-24318: call not allowed for scalar data types

Reason for the Error

This call is valid only for object types.

Solution

Verify that the data-type for this variable is an object type