ORA-24374: define not done before fetch or execute and fetch

Posted on 2007-09-28
Last Modified: 2013-12-19
We are correcting several Actuate reports for the ICM Application.

For one of the reports we have a select query imbeded in the Actuate report.

We run this query against the oracle 9i database.

This query works perfectly fine from Toad or Actuate Development Tool (erdPro ). But once we port the report executable on the Actuate server and try to run the report, we get following error message :

24374: ORA-24374: define not done before fetch or execute and fetch

Could you please help us identify the problem?
Question by:ashu2769
    LVL 29

    Expert Comment


    Did you check out the error message?

    ORA-24374: define not done before fetch or execute and fetch

    Cause: The application did not define output variables for data being fetched before issuing a fetch call or invoking a fetch by specifying a non-zero row count in an execute call.

    Action: Issue OCI define calls for the columns to be fetched.
    LVL 18

    Expert Comment

    by:Jinesh Kamdar

    Author Comment

    I am really not clear how can I fix this. Should I try writing SQL code in some other way?

    Thanks and regards,
    LVL 1

    Accepted Solution

    PAQed with no points refunded (of 500)

    EE Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Suggested Solutions

    Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
    How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
    Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
    This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now