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

In this post, you’ll learn more about the Oracle ErrorORA-22317: typecode string 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

ORA-22317: typecode string is not legal as a number type

Reason for the Error ORA-22317: typecode string 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 ORA-22317: typecode string 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