|
|
| No such thing as a small change | |
| PerlMonks |
DBI BLOB Insert Issue - Database out of spaceby tokpela (Chaplain) |
| on Mar 17, 2015 at 20:34 UTC ( [id://1120376]=perlquestion: print w/replies, xml ) | Need Help?? |
|
tokpela has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, I have run into an issue when inserting BLOBs into Oracle using DBI. When our database ran out of space - records were still inserted into the table but the BLOBs were not inserted resulting in incomplete records (zero byte BLOBs). I have been tasked with making sure that my script does not insert a row if this space issue comes up again. Our DBA created a test database for me to test this issue. I created a test script to test insertions using both AutoCommit and a manual commmit/rollback insert. When using AutoCommit - the record is inserted with a zero-byte BLOB. By inserted - I mean that the other non-BLOB data fields were inserted into the table. DBI trace (level 1) shows the lob extension failure:
Using manual commit/rollback, the results were as expected with no record inserted into the table and the following message received:
While I can fix this issue easily by making the script use a manual commit/rollback - my question is whether the AutoCommit response is as expected? I would have expected the same result with the entire record being rolled back. Has anyone else had any experience with this issue? Thank you! Chris
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||