Link to home
Create AccountLog in
Avatar of ashu2769
ashu2769

asked on

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

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?
Avatar of MikeOM_DBA
MikeOM_DBA
Flag of United States of America image


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.
Avatar of ashu2769
ashu2769

ASKER

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

Thanks and regards,
-Ashu
ASKER CERTIFIED SOLUTION
Avatar of Computer101
Computer101
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer