Problem symptoms
- Using PRO*C or OCI.
- Database character set is set a multibyte character set. For example UTF8, AL32UTF8, JA16SJIS or JA16EUC.
- Trying to insert a VARCHAR2 into a column that is defined with a length of more than 1333 bytes.
- The same table either has another LONG column or at least 1 other VARCHAR2 with a length over 1333 bytes.
- NLS_LANG is set to a single-byte character set. For example american_america.WE8ISO8859P1)
后来发现是jdbc的版本不一样,应该使用与数据库一致的版本的jdbc。