PL/SQL (MOSC)

MOSC Banner

ORA-01002: fetch out of sequence : Getting eror when connecting from ASP.net to the stored procedure

edited Jun 21, 2018 11:56AM in PL/SQL (MOSC) 2 commentsAnswered
I am trying to execute a store procedure from ASP.NET. There is one SQL in the stored procedure that joins two table. One table is from a Oracle database and the other from MSSQL. The query by itsef executes independently in TOAD. Infact the procedure compiles and also runs in TOAD. But when I  invoke it from Visual studio I get the following error.

ORA-01002: fetch out of sequence
ORA-02063: preceding line from MESBODY


CREATE OR REPLACE PROCEDURE HGMC.missedbodyrptg(

OR REPLACE PROCEDURE HGMC.missedbodyrptg( dt1 IN char, idx IN char, p_rc OUT sys_refcursor OUT sys_refcursor )

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center