am writing procedure in pl/sql. when i run the procedure am getting error.Here i enclosed the procedure.
code
PROCEDURE get_CDR_rs_phone (CDR_recordset OUT SYS_REFCURSOR)AS
BEGIN
OPEN CDR_recordset FOR
SELECT zkv.CISCOCUIC_TBL.FLD_callingPartyNumber FROM zkv.CISCOCUIC_TBL;
END get_CDR_rs_phone;
/
getting error when i run this proc
Create your procedure as
and execute your procedure
Update 1
If your procedure is doing only a select you could do this using a function which return sys_refcursor and the function can be executed from a sql statement.
Create function as
and call this function as