hotpelmen has asked for the wisdom of the Perl Monks concerning the following question:
I am hoping to get some input from those who have encountered this situation and know the solution.
When inserting/updating a varchar2 field in an Oracle 9i table in a Perl application, we occasionally observe the following error:
ORA-01461: can bind a LONG value only for insert into a LONG column
Same error was observed in a J2EE application that uses same database but a different table and column, also varchar2. The database is 9i but that application uses 10g JDBC driver.
Our DBA found an easy way to fix it in the Java application: setting in oracle-ds.xml file the following property:
<connection-property name="oracle.jdbc.RetainV9LongBindBehavior">true</connection-property>
If someone has seen it before, do you know of any similar approach in Perl DBI usage? We'd like to avoid changing NLS* environment variables or any other parameters in the database since this may adversely affect multiple applications.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI ORA-01461
by cleverett (Friar) on May 11, 2010 at 16:47 UTC | |
by hotpelmen (Scribe) on May 12, 2010 at 18:09 UTC |