Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

return data from Oracle stored procedure

New Here ,
Jul 07, 2010 Jul 07, 2010

Briefly, my ultimate goal is to retrieve data from a stored procedure on Oracle 10g. We are on CF8. I cannot use cfstoredproc due to the huge var size that I will eventually need to retrieve (a binary var from a blob to output as a pdf). Without going into details, using an Oracle stored procedure is required for this situation.

So I have found this code that is presented on various support sites as a "simple" example before actually trying to access the actual stored procedure, which I know works in Oracle.

But I cannot get this simple example to work:

<cfset

variables.plsql = " declare x number; begin x := 0; end; " >

<cfquery

name="q" datasource="(my datasource)">

#variables.plsql#

</cfquery>

The query appears to execute fine... no errors, but nothing is returned. If fact, an isdefined says the query results do not exist. Can X be returned into the query for use in CF?

Any ideas?

TOPICS
Database access
607
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 07, 2010 Jul 07, 2010
LATEST

What would you expect to be returned?

Also, I think you are incorrect about not being able to use cfstoredproc.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources