Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to create a REF CURSOR from static values?

user49914949919675123May 18 2012 — edited May 21 2012
We call a socket program (from PL/SQL) which returns a string with rows of data (separated by {}) like this:
{packetId:236,packetName:ADSL-320K-1M-3G},
{packetId:257,packetName:ADSL-1024K-1M-20G},
{packetId:232,packetName:ADSL-INTERANET-UNLIMITED},
{packetId:234,packetName:ADSL-512K-3M-16G},
..................
.........
.....
Our PL/SQL procedure should output a REF CURSOR with rows like this:
236,  ADSL-320K-1M-3G
257,  ADSL-1024K-1M-20G
232,  ADSL-INTERANET-UNLIMITED
234,  ADSL-512K-3M-16G
.........
......
How to do this pls???

Edited by: Channa on May 18, 2012 2:30 AM
This post has been answered by Frank Kulash on May 21 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2012
Added on May 18 2012
7 comments
299 views