Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2003
    Posts
    2

    Unanswered: multiple rows through dblink

    Hello all,

    I'm at work here and I'm totally stuck... ... I don't know what to do anymore. Hopefully you can help.

    We have loads of stored procedures here that use REFCURSORS as OUT parameters as they're called by Java JSP pages.

    I need to create some stored procedures that will have to return multiple rows to calling modules (JAVA technology and/or Oracle stored procedures) throug a DBLink to a remote database.

    People tell me that you can't pass RefCursors through DBLINK and that the only alternative is using PL/SQL tables.

    I'd like to have your feedback/opinion on this. Can't I use RefCursors through dblink ? Are PL/SQL tables the only alternatives or are there others (and better?). The data I have to return comes from tables, but also non database information such as error number and error message. Can this be included in the OUT refcursor/plsqltable/.... ?

    Thanks so much for your answer !

    Kim

    ps: we're using Oracle 8i now but upgrading will happen soon but ..... not soon enough to use Oracle 9i exlusive features !

  2. #2
    Join Date
    Jul 2003
    Posts
    2,296
    you are getting the data through the DBlink right?

    I see no reason why you cannot set up a refcursor to do whatever you want with the data once you have it.

    You don't want to send it back through the DBlink do you??

  3. #3
    Join Date
    Jul 2003
    Posts
    2
    database A makes a call to a procedure on database B to execute. This procedure performs some actions and needs to retrieve some rows. The procedure has to give these multiple rows as OUT parameter to database A through dblink. RefCursors can't be sent as OUT parameters through dblink, it seems. I'm wondering if PL/SQL tables are the only alternative...

    thanks a lot !!!!!!!!!!!!

  4. #4
    Join Date
    Jul 2003
    Posts
    2,296
    I suggest a slightly different way of doing this.

    Why not have the PROC on the DB A side instead of DB B??
    The Proc does all the calls through the DBlink, but your data and refcursor data is on the correct side.
    - The_Duck
    you can lead someone to something but they will never learn anything ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •