Oracle Error ORA-22627: tc [string] must be that of object/varray/nested table

Oracle Error Message

ORA-22627: tc [string] must be that of object/varray/nested table

Reason for the Error

Type code is not that of object/varray/nested table

Solution

Make sure the type code is OCI_TYPECODE_OBJECT or OCI_TYPECODE_VARRAY or OCI_TYPECODE_TABLE