IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to pass a Oracle Reference Cursor as an input to a stored procedure

  • 1.  How to pass a Oracle Reference Cursor as an input to a stored procedure

    Posted Mon October 03, 2011 05:02 PM

    Hi All

    We have a situation where in we need a pass a oracle reference cursor as an input to the stored procedure.

    I tried directly mapping the document list to the reference cursor but the driver doesnt seem to recognize it.

    Can you please advise me how to type cast the document list to an oracle reference cursor.

    Thansk in advance.

    Mani


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 2.  RE: How to pass a Oracle Reference Cursor as an input to a stored procedure

    Posted Mon October 03, 2011 07:11 PM

    From Oracle documentation at [URL]http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25312/procedures_plsql.htm[/URL]

    A ref cursor is a PL/SQL datatype whose value is the address of the memory location of a query work area on the database server. A query work area can be thought of as the result set, or a row set, on the server; it is the location where the results of a query are stored in server memory. In essence, a ref cursor is a handle to a result set on the server. A ref cursor is represented through the OracleRefCursor ODP.NET class.
    Ref cursors have the following characteristics:

    1. A ref cursor refers to server memory. The memory address represented by a ref cursor “lives” on the database server, not on the client machine. Therefore, the client’s connection to the database must be in place during the lifetime of the ref cursor. If the underlying connection to the database is closed, the ref cursor will become inaccessible to the client.

    What you’re asking to do may not be doable. And certainly a document list is not going to be able to simply be type cast to a ref cursor.


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB