Perl script (in Win 95 environment) uses DBI to access Oracle (on a unix machine).
This (and other scripts using DBI to access the oracle DB) work fine except when a record retrieved contains more than 79 characters.
Record is retrieved by fetchrow_array inside a while:
while (@data = $handle->fetchrow_array() ) {
All data comes back in $data[0]
When data in DB is > 79 characters long get the following error message:
DBD::Oracle::st fetchrow_array failed: ORA-01406: fetched column value was truncated (DBD: ORA-01 406 error on field 1 of 1, ora_type 8, DBI attribute LongTruncOk not set and/or LongReadLen too small) at my_perl_script.pl line xx.
Oracle documentation suggests that a buffer is too small on client (in my perl script I assume?)
How can I set the buffer size in my perl script so I can get longer values back?
And/Or, any suggestions for a workaround?
thanks in advance ;-)
In reply to DBI Oracle error LongReadLen too small by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |