On our customer's database the following charset is set:
NLS_CHARACTERSET AL32UTF8
On my local database the following is configured:
NLS_CHARACTERSET AL32UTF8
When an insert into a VARCHAR2(4000) column is performed on our customer's database this error occurrs:
Caused by: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
On my computer everything is working fine.
The value is bind using a java.sql.PreparedStatement with preparedStatement.setString(3, value3);.
Could it be that the error is due to a difference in the charset? Does the charset affect the amount of characters that can be stored in a VARCHAR2 field?