How to execute a  refcursor (which in turn creates a refcursor in the query

Hello All,
     I would really appreciate if someone could help me on this issue. I’ve searched google but could not find a solution on what I’m trying to achieve.
I’m trying to run a refcursor from asp.net code (Oracle 9i / Asp.NET 2.0). The refcursor looks somewhat like this.
function GetUsersInfo(userID in INTEGER) return sys_refcursor is
p_value sys_refcursor;
begin
open p_value for
SELECT U. ID, U.FIRST_NAME, U.LAST_NAME,
CURSOR(SELECT UO.ORG_ID
FROM USER_ORGS UO
WHERE UO.USER_ID = U.USER_ID) ORGS /*This returns the Organization ID that the user is associate to.*/
FROM USERS U
WHERE U.USER_ID = userID;
return p_value;
end;
This refcursor when run from the SQL Plus return the data properly as expected the output is in this format
ID     First_Name      Last_Name      Org_ID
1     John          Dow          1, 2
Thanks in advance

Hello,
As far as I know, nested cursors are not supported in ODP.NET at this time.
Regards,
Mark

Similar Messages

  • When i turned on my i pod a white apple logo was shown which then turned to rainbow colours and the i pod started buffering, this is all it does, i cannot get it to stop and my computer will not talk to the i pod, help?

    when i turned on my i pod a white apple logo was shown which then turned to rainbow colours and the i pod started buffering, this is all it does, i cannot get it to stop and my computer will not talk to the i pod, help?

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • How can I delete my apple id and create another one with the same email?

    How can I delete my apple id and create another one with the same email?

    So sorry; somehow I forgot to provide the link.   Here it is ...
    Frequently asked questions about Apple ID
    Again, my apologies.

  • How to execute each block in a multi-block canvas while select the tab?

    Hi All,
    How to execute each block in a multi-block canvas by selecting a tab? I mean to say when i select a particular tab in a tab canvas the records should execute.How can i set this?
    Arif

    Hi Arif
    Good Example Manu offered i wish it works if not pls try the following...
    Pls try in the when-tab-page-changed trigger in the form level
    DECLARE
        tp_name varchar2(30);
    BEGIN
    -- Retrieve the NAME of the top most tab page using the built-in GET_CANVAS_PROPERTY function.
    --Pass in the name of the Canvas your tabs are in and the system variable topmost_tab_page which stores a property number
    tp_name := GET_CANVAS_PROPERTY('CANVAS11',topmost_tab_page);
    -- Perform specific tasks based on the name of the top most tab
    IF tp_name = 'PAGE12' then
    GO_BLOCK('block_name');
       GO_ITEM('DATA_BLOCK_1.FIELD_1');
    EXECUTE_QUERY;
    ELSIF tp_name = 'PAGE38' then
    GO_BLOCK('block_name');
       GO_ITEM('DATA_BLOCK_2.FIELD_1');
    EXECUTE_QUERY;
    ELSIF tp_name = 'PAGE47' then
    GO_BLOCK('block_name');
       GO_ITEM('DATA_BLOCK_3.FIELD_1');
    EXECUTE_QUERY;
    END IF;
    END;
    Hope it helps...
    Note: i do agree with Craig
    Regards,
    Abdetu...
    Edited by: Abdetu on Feb 2, 2011 7:41 AM

  • Short dump while executing few queries , which has got created on Infoset.

    Hi,
    We went to BI7.0 upgrade from BW3.x now.
    We are getting short dump short dump while executing few queries and work book, which has got created on Infoset.
    When i was executing work book where i was geting popup message saying that "Erro ZSD_XST_F00121 is invalid".When i click that message it went to dump.
    I was getting this error while executing query on infoset.
    We are currently SP Stack 13(Patch level 15).
    I found some note 1067918 as per the shortdum,where it is saying that you need to apply SP Stack14(patch level16).
    Please some one who had earlier this kind of issue.
    I appreciate your answer.

    Dear Krish,
    Yes, It is the patch problem.
    We too faced the same issue on Infosets.
    Apply SP 15.
    Regards,
    Ram.

  • How can I protect formulae in a newly created spreadsheet without locking the whole sheet ?

    How can I protect formulae from being overwritten on a newly created spreadsheet without locking the whole sheet ?

    Olly,
    I'll be picky here on nomenclature ;-)
    Tables and other Obects can be locked, but Sheets can't be locked.
    If you wish to shield some parts of your content from accidental modification, arrange your layout to put that sensitive content in tables separate from the tables that need to be accessed, and lock the sensitive ones. It's also possible, but rather clunky, to place shields over the sensitive area. A shield can be made by Inserting a Shape and positioning the shape over the sensitive area. With the shape selected, go to the Graphics Inpector and set the Opacity of the shape to zero. You will then be able to see through the shape but will no be able to Click through it to get at the cells below. This method is inconvenient because you have to worry about keeping the shape aligned with the table should the table need to change size or shape.
    Jerry

  • How to execute an expression which is in a string

    hi
    i am facing one interesting problem
    i want to evaluate an expression like
    sin^2 (theta) * cos^2 (phi) which i am getting in string object
    something like expression entered by an user
    and i want to evaluate it in a program
    how do i do that
    i mean how to treat this string as a statement
    thanx in advance as usual

    Here's one of probably many.
    http://tp.lc.ehu.es/anonym/java/eval.html
    Google is your friend.
    http://www.google.com/search?hl=en&q=java+eval&btnG=Google+Search

  • How to replace a layer which has a mask applied without affecting the mask?

    I have a layer with a photo.  I have animated a mask on this layer, but now the client wants the photo replaced with another one.  When I add a new photo to a new layer and copy the mask properties from the good working layer, the mask winds up in a different place than the original.  I've tried doing a replace footage with the source photo trying to make it the new photo but same results, the mask always gets repositioned.
    How can I replace an image on a layer that has an animated mask on it with another one without affecting the mask?
    Thanks,
    Steve

    Thanks everyone.  Now that I understand more about Track Mattes it works fine.  I can scale and position new layers under the animated mask.  This helps tremendously

  • HT3053 I have a 13inch MacBook Pro and when I switch it on the apple logo appears then a slot and the circular symbol which is turning and then before opening the home screen it switches off again. Is there a sequence that I can use to force it to load.

    I have got a 13 inch MacBook Pro and it got stuck in a loop so I switched it off by holding the power button down and now when I switch it on the apple logo appears then I get a blank slot at the bottom of the screen then the circle appears and rotates and then it switches off again, I have tried starting it again with the system disc that came with it when it was new but it makes no difference. Is there a sequence that I can use to force it to start.

    Sorry. We can't help you. It's no longer an iPhone. Apple won't touch it.
    Take it to whoever replaced the screen and see if they can help you.
    iPhones are not user servicable and Apple does not sell iPhone parts at all. I'd be surprised if you were actually able to back it up at this point. It sounds like it's completely borked.

  • I currently have 2 external displays connected to my macbook.  how do i tell imovie which display i want to designate as the secondary display?

    any help would be appreciated

    Well, you cannot use the 3G USB modem plugged directly into the Express. However, you can configure your MacBook Pro to do 'Internet sharing' (SysPrefs>Sharing) over the Ethernet port, and then connect your Express into the Ethernet port. Alternatively, you could always get your MacBook to 'create a wireless network'.
    new house, waiting for DSL to be installed, 2-3 month wait.
    You could always look for open WiFi networks to *cough*borrow*cough* .

  • How to include Search Help which has been created using SE11

    Hi all,
    I have created the custom search help in SE11. What is the way to include it in my code? Thanks in advance.

    Hi Mil,
    There are different ways of using the search help created by SE11 depending on the kind of application you are using.
    1. Search help can be attached to a <i><b>DATA ELEMENT</b></i> under the tab <i><b>FURTHER CHARACTERISTICS</b></i>.
    Now wherever this data element will be used, automatically the search help will be available on the output screen. e.g. in selection screen using parameters statement etc.
    <i>PARAMETERS: P_VAL1 TYPE Z_DATAELE.</i>
    2. Search help can be also attached to <i> database table fields</i> directly in the tab <i>Entry help/check</i>. Now wherever this database table field is used e.g. in SELECT-OPTIONS statment, the search help will be automatically available on output selection screen.
    3. Also, search helps can be directly used in the programs using function modules and event.
    <i><b>PROCESS ON VALUE-REQUEST.
      FIELD <f> MODULE <mod>.</b></i>
    Here in the module, you can use following function module for fetching the search help on the screen.
    <i><b>F4IF_FIELD_VALUE_REQUEST</b></i>
    4. Search help can be direclty attached to the selection screen statements like SELECT-OPTIONS using MATCHCODE object extension
    <i><b>SELECT-OPTIONS: LP_STATS  FOR TJ30-ESTAT MATCHCODE OBJECT ZH_TJ30 NO-EXTENSION NO INTERVALS.</b></i>
    Hope this sort out your issue.
    PS If the answer solves your query, plz close the thread by rewarding each reply.
    Regards
    Message was edited by:
            Sapna Modi

  • HT204365 How to recover PDFs file which dind't recover whe I used the back up in my new iphone5

    Recently I bought a IPhone5. I used the backup from the previous Iphone4S in the same compunter , I syncronized the Book but it wasnt the case with many PDFs fiel I had.

    iBook

  • How can I save a PDF I have created after typing in the text box

    I recently created a PDF document and put in several text boxes.
    I am able to type in these locations now, but I am for some reason unable to save the document after I have typed in the text box.
    How can I change the form so that I will be able to save the document after I have made changes?

    print to PDF. make a new one..  That worked for me after filling in a form.

  • How can I reserve resources or rooms when creating an event in the Calendar (Exchange)?

    On our Exchange server we have configured a number of conference rooms and other resources that users can book/reserve through Outlook when creating events.  When I create an event in the iPhone on my Exchange calendar, if I add a location the option does not exist to book rooms/resources (even if I add in the resource word-for-word as it exists on Exchange server). I am also unable to book it if I invite the "Contact," if I may call it that, from our Global Address List.   Does this capability exist in the iPhone?

    I can't seem to do this successfully. I use the GAL to select the room, but when I send out the meeting I immediately get an automated response back that the delivery failed. I heard this may be because the iPhone OS does not distinguish between a normal attendee and a resource. Yet you seem to have it working. What version of Exchange are you using. Is it on Mac or PC?  We are about to upgrade from Exchange 2003 to 2010, maybe that will help solve this?
    Also, (this may just be semantics) on the iPhone under "Mail, Contacts, Calendars" the Exchange configuration is set to "on" to sync calendars. Is this the same as having the Exchange calendar "set as the default calendar" mentioned above?

  • How to run a jar file which needs another jar to be in the class path

    Hi,
    I need to execute a jar, which needs another jar to be in the classpath.
    If I run like
    java -classpath <jar1 name> -jar <main jar>
    It is giving classnotfoundexception, where as the class is available in the <jar1 name>.
    so, currently I am doing like this
    In the manifest file i have given like
    Main-Class: <class name>
    Class-Path: <jar name> <jar name2>
    then it is running fine. But, if I want to change the jar location again I need to changed the manifest file.
    Is there any way to do this? Pls help me.

    How about
    java -cp jar1.jar;jar2.jar com.acme.MainClass
    You won't need to worry about the manifest file after that and you can make a bat files (or .sh file in *nix) for it.                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for