in reply to DBI Oracle error LongReadLen too small
Oracle version: 8.1.7.2
Play table used:
CREATE TABLE junk_table ( short_field CHAR(10), long_field CHAR(100), junk_number NUMBER );
Since my queries worked correctly, I am going to make some assumptions (I know, bad *smiles*) and offer some thing which might help.
First off, it looks like you have RaiseError => 1 (True) in your DBI->connect. This is not a bad thing, but causes your program to terminate on the error; the error, I believe, is in your "while (@data = $handle->fetchrow_array())" statement (more specifically, fetchrow_array.) This raises an error because a column being returned exceeds LongReadLen and you have LongTruncOk set to 0 (False). To find out more information on these, I used perldoc DBI. (A lot to read there.)
Anyway, increasing the size of LongReadLen will consume additional memory, but should have the benefit of actually letting your script run. *Grins*
If you would like to post more of your code, I will gladly look at it.
Also, I would like to thank you. I had never read a lot of the "extra" setting for DBI, and now have some new things with which to play -- like ChopBlanks.
|
|---|