-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBD::Oracle::db ora_lob_read failed: ORA-01403: no data found #165
Comments
Please use latest development code from github, commit a77ba53 might solves this issue. This patch fix empty LOB data export with Oracle Lob locator (NO_LOB_LOCATOR set to 0) but also adds a condition to prevent the infinite loop. Please give it a try and let me know. |
Hi I installed the latest version, and fails again but now the error is different and return to command prompt Dumping data from ROAM_PRODUCT to file: ./data/ROAM_PRODUCT_data.sql The version is $ora2pg -v Thanks for your help! |
I'm not able to reproduce the issue. Please post here the Oracle database and DBD::Oracle perl module versions. As a workaround I think you might not export LOB using locators. Set NO_LOB_LOCATOR to 0 in your configuration file and set LONGREADLEN to the highest lob object size. If it is smaller ora2pg will fail with an error about truncated LOB, just increase LONGREADLEN into ora2pg.conf to a higher value and repeat the export. Note that exporting BLOB is slow and using multiprocess will help a lot. Let me know. Best regards, |
A major issue have been fixed in last release 17.0 about export of BLOB with lob locator, please upgrade. |
Hi
While trying to export the data, the program do an infinite loop, and shows this message in the screen
DBD::Oracle::db ora_lob_read failed: ORA-01403: no data found (DBD INVALID_HANDLE: OCILobCharSetForm) at /usr/local/share/perl/5.20.2/Ora2Pg.pm line 10151.
DBD::Oracle::db ora_lob_read failed: ORA-01403: no data found (DBD INVALID_HANDLE: OCILobCharSetForm) at /usr/local/share/perl/5.20.2/Ora2Pg.pm line 10151.
After pressing Ctrl + C the message is
Received terminating signal (INT).
Issuing rollback() due to DESTROY without explicit disconnect() of DBD::Oracle::db handle (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(HOST=dev01)(PROTOCOL=tcp)(PORT=1526))(ADDRESS=(HOST=dev01)(PROTOCOL=tcp)(PORT=1521)))(CONNECT_DATA=(SID=XXXX))) at /usr/local/bin/ora2pg line 230.
It seems a problem related with handling BLOB data.
Kind regards
Jose Zorrilla
The text was updated successfully, but these errors were encountered: