Link to home
Start Free TrialLog in
Avatar of vantive
vantive

asked on

* OCI_NODATA error calling procedure *

Hi,

I am facing the oracle error OCI_NODATA when I try to run a procedure in a package from an external application developed in C.
Has anyone ever seen this error ???
Can help me out ???

Thanks,

vantive
Avatar of zebada
zebada

Usually (as the name implies) it means there were less rows available than were requested.

i.e. if the statement: SELECT * FROM employee returns 20 rows of data and a fetch statement was issued that accepted 50 rows was then executed it would return OCI_NODATA.

Note: the OCI_NODATA error doesn't mean "NO DATA" it actually means that there was LESS data available than requested.

I could be more specific if you could supply more details.

Cheers
Paul
Avatar of vantive

ASKER

I have already found out what happened.
I had a varchar to data conversion like that:
TO_CHAR(TO_DATE(0101,'MM/YY'),'MM/YY')

It worked in Oracle 7.3.4 but I have just upgraded my application to Oracle 8i and it doesn't work in that version.

I just added the literal [...TO_DATE(01/01,'MM/YY')...] and it's working fine.

Thanks for your cooperation

vantive

ASKER CERTIFIED SOLUTION
Avatar of Mindphaser
Mindphaser

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial