in reply to Re: DBI & Cursors
in thread DBI & Cursors

Sorry, dont know why that was there! Anyway, i now get this error:

DBD::Oracle::st fetchrow_array failed: ORA-20100: Error creating molfi +le string ORA-06512: at "C$MDLIMOL51.CDCAUXOP", line 606 ORA-06512: at "C$MDLIMOL51.CDCAUXOP", line 36 (DBD ERROR: OCIStmtFetch +) at reg_service.pl line 128.

Now, if i run my plsql procedure directly in TOAD, it runs fine. I do not have access to the procedures directly to edit them. A molfile is a CLOB that should be returned by the cursor (contains two columns - id, molfile). I am also assuming that the 6512 errors are to do with a cartridge that converts data into molfiles. If that is the case, they should resolve automatically once i manage to create the molfile. How do i associate a CLOB to a string in Perl?

UPDATE:: If you look at my original post, i have defined cursors as Pacdesignset.data_header_cur etc, however i now realise that i need to define :s_cur as a Pacdesignset.structure_cur to get the conversion to occur. How can i define it as something and bind it? END UPDATE

Thanks.

Joe

Replies are listed 'Best First'.
Re^3: DBI & Cursors
by mje (Curate) on Nov 21, 2008 at 14:32 UTC

    Not quite sure what is going on here but I thought it worth noting that DBD::Oracle by default attempts to get lobs (see ora_auto_lob setting) instead of just returning the lob locator. May be worth trying with ora_auto_lob => 0 at the end of your execute.