ORA-01722 Occurs When Executing A Select Containing TO_NUMBER ON A Varchar Column (Doc ID 1989604.1)

Last updated on MARCH 29, 2016

Applies to:

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

Symptoms

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.

 

Changes

 Recent deployment of the application to new servers.

Cause

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