Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display a cursor variable in proc ?

Status
Not open for further replies.

moin73

Programmer
Joined
Jul 15, 2005
Messages
14
Location
CA
My cursor is returning a value, how to display it with dbms_output.put_line command.

I m getting followng error msgs ORA-24338

dbms_output.put_line(to_char(o_result_set_rc));
 
You can not print cursor with
dbms_output.put_line. If you're in sql*plus, you may define REFCURSOR variable and then just print it. Otherwise you should loop through your cursor manually.

Regards, Dima
 
I am trying and getting following error msgs.

ERROR:
ORA-24338: statement handle not executed


SP2-0625: Error printing variable "myrefc
 
Is that variable empty? Have you indeed opened any statement for it or just declared it and tried to print?

Regards, Dima
 
It's resolved, appreciate your help.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top