Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to run procedure containig REF CURSOR as datatype

RE: how to run procedure containig REF CURSOR as datatype

From: Harvinder Singh <Harvinder.Singh_at_MetraTech.com>
Date: Tue, 05 Jun 2001 06:40:03 -0700
Message-ID: <F001.0031BF3B.20010605064629@fatcity.com>

Tom,

I used ur suggestion but i am still getting the same error. I am running the procedure from sqlplus.... Do i have to modify something to run from sqlplus...... ORA-01790: expression must have same datatype as corresponding expression.........

Thanks
Harvinder

-----Original Message-----
Sent: Tuesday, June 05, 2001 9:01 AM
To: Multiple recipients of list ORACLE-L

Harvinder,

change your script like this:

 declare
 io_cursor getrateschedules_pkg.t_cursor; <== change the reference to

                                                        the cursor declared
in the
                                                        package body.
 begin
 getrateschedules_pkg.getrateschedules(1,2,3,sysdate,4,io_cursor);  end;
 /

we do this all the time for ref cursors used by VB.

hope this helps

Tom Mercadante
Oracle Certified Professional

-----Original Message-----
Sent: Monday, June 04, 2001 7:36 PM
To: Multiple recipients of list ORACLE-L

Hi,

What value to pass as io_cursor in the following procedure....How to run the procedures containing REF CURSOR..........

create or replace package GetRateSchedules_pkg as

         TYPE t_cursor is REF CURSOR;
         procedure GetRateSchedules( temp_id_acc int,acc_cycle_id
int,default_pl int,RecordDate date,temp_id_pi_type int,io_cursor in out t_cursor);

         end;

i am getting error when i run the following code:

 declare
 TYPE t_cursor is REF CURSOR;
 io_cursor t_cursor;
 begin
 getrateschedules_pkg.getrateschedules(1,2,3,sysdate,4,io_cursor);  end;
 /

ORA-01790: expression must have same datatype as corresponding expression.........

Thanks
Harvinder
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Harvinder Singh
  INET: Harvinder.Singh_at_MetraTech.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Mercadante, Thomas F
  INET: NDATFM_at_labor.state.ny.us
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Harvinder Singh
  INET: Harvinder.Singh_at_MetraTech.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Jun 05 2001 - 08:40:03 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US