IBM Sterling Ideas
Shape the future of IBM!
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Post your ideas
IBM is transforming its request for enhancement (RFE) process. The purpose of the transformation is to provide a more consistent experience for you to submit requests and to enable IBM product owners to respond to your requests more quickly. For more information click here.
Start by posting ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you, 1. Post an idea 2. Upvote ideas that matter most to you 3. Get feedback from the IBM team to refine your idea
Help IBM prioritize your ideas and requests
The IBM team may need your help to refine the ideas so they may ask for more information or feedback. The offering manager team will then decide if they can begin working on your idea. If they can start during the next development cycle, they will put the idea on the priority list. Each team at IBM works on a different schedule, where some ideas can be implemented right away, others may be placed on a different schedule.
Receive notifications on the decision
Some ideas can be implemented at IBM, while others may not fit within the development plans for the product. In either case, the team will let you know as soon as possible. In some cases, we may be able to find alternatives for ideas which cannot be implemented in a reasonable time.
DeveloperWorks ID | DW_ID87358 |
RTC ID | RTC_ID500346 |
Link to original RFE | http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=87358 |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
USE CASE
Our customer isn't able to retrieve data from Oracle Cursor defined in Packaged function.
create or replace
Package ESB_TEST_TRN
AS
FUNCTION get_trans(ptxt_status IN NUMBER, pnum_rows IN NUMBER)
RETURN SYS_REFCURSOR;
esbpokusrec x_esb_pokus%ROWTYPE;
TYPE TableTx IS TABLE OF x_esb_pokus%ROWTYPE;
END ESB_TEST_TRN;
/*********************************************************************/
create or replace
Package Body ESB_TEST_TRN
AS
FUNCTION get_trans(ptxt_status IN NUMBER, pnum_rows IN NUMBER)
RETURN sys_refcursor
IS
lrcu_result sys_refcursor;
BEGIN
OPEN lrcu_result FOR
SELECT transaction_id,
status,
col01,
col02,
col03,
col04,
col05,
col06,
col07,
col08,
col09,
col10,
col11,
col12,
col13,
col14,
col15
FROM x_esb_pokus
WHERE status = ptxt_status
AND rownum< pnum_rows + 1;
RETURN lrcu_result;
END;
END ESB_TEST_TRN;
In SQL we would normally select data from the Function using:
set serveroutput on;
declare
v_rc sys_refcursor;
esb_pokus_row x_esb_pokus%rowtype;
begin
v_rc := esb_test_trn.get_trans(1,100);
loop
fetch v_rc
into esb_pokus_row;
exit when v_rc%notfound;
dbms_output.put_line(esb_pokus_row.transaction_id || ' | ' || esb_pokus_row.status || ' | ' || esb_pokus_row.col01);
end loop;
close v_rc;
end;
However this isn't supported by Database Interface Designer.