If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Retrive resultset from oracle store procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-03, 06:56
latief latief is offline
Registered User
 
Join Date: Oct 2003
Location: Abu Dhabi
Posts: 14
Retrive resultset from oracle store procedure

Hi,

How can i retrive multiple results from oracle store procedure.i have tried with using package but it giving err shown below

ORA-06550: line 2, column 15:
PLS-00201: identifier 'CURSOR' must be declared
ORA-06550: line 2, column 11:
PL/SQL: Item ignored.

First i create package shown below

CREATE PACKAGE test12
IS
TYPE CursorType IS REF CURSOR;
END test12;

create procedure shown below
PROCEDURE RESULT_SET
(oCursor IN OUT test12.CursorType) AS
BEGIN
open oCursor for select * from testab;
END;

when i exec this procedure on sqlplus exec result_set( );

getting error occur shown below

ORA-06550: line 2, column 15:
PLS-00201: identifier 'CURSOR' must be declared

Please anybody can help me this issue.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On