How to fix the Oracle error OCI-22317: typecode number is not legal as a number type?

In this post, you’ll learn more about the Oracle ErrorOCI-22317: typecode number is not legal as a number type with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

OCI-22317: typecode number is not legal as a number type

Reason for the Error OCI-22317: typecode number is not legal as a number type

The user is trying to use a number typecode that is not valid.

How to fix the Error OCI-22317: typecode number is not legal as a number type ?

You can fix this error in Oracle by following the below steps

Use only OCI_TYPECODE_SMALLINT, OCI_TYPECODE_INTEGER, OCI_TYPECODE_REAL, OCI_TYPECODE_DOUBLE, OCI_TYPECODE_FLOAT, OCI_TYPECODE_NUMBER, or OCI_TYPECODE_DECIMAL.

Tags :

Leave Your Comment