ORA-01722 Occurs When Executing A Select Containing TO_NUMBER ON A Varchar Column

(Doc ID 1989604.1)

Last updated on DECEMBER 08, 2017

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


A JDBC application is not able to execute a query containing TO_NUMBER on a varchar column, and fails with error:

ORA-01722: invalid number 

The error only occurs in certain servers, while on others the same select statement succeeds.



 Recent deployment of the application to new servers.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms