calling a stored proc over a dblink

后端 未结 1 1451
无人及你
无人及你 2020-12-21 02:38

I am trying to call a stored procedure over a database link. The code looks something like this:

declare
       symbol_cursor  package_name.record_cursor;
           


        
相关标签:
1条回答
  • 2020-12-21 02:40

    From another of your questions I remember package_name.record_cursor to be a ref cursor type. A ref cursor is a memory handle only valid in the database it was created in. In other words, you cannot create a ref cursor in your remote db and try to fetch from it your local db.

    If you really need to process the data in your local db and the tables have to stay in the remote db, then you could move the package "package_name" into your local db and have it execute the query on tables in your remote db via a database link.

    0 讨论(0)
提交回复
热议问题