ORA-01461:can bind a LONG value only for insert into a LONG column

 

위의 에러는 JDBC 버전의 Known Bug.

 

Oracle Database 10g Release 2 (10.2.0.1.0) JDBC Drivers  에서 해결이 됨.

 

=========================================================================================
BUG-4426152

KPRB driver throws ORA-01461 for OraclePreparedStatement.setCharacterStream() of 1MB
or more data into database LONG and 4k byte into Varchar2 columns in one statement.
=========================================================================================

 

 

## Error 발생 케이스 ##

 

1) Oracle Database 10g Release 2 이전의 JDBC 드라이버 버그

 

2) 클라이언트와 서버 간 즉, JDBC 드라이버와 오라클 서버 버전이 일치하지 않은 경우

 

3) 클라이언트와 서버 간, NLS_LANG 설정이  다를 경우