Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Calling a remote function

Re: Calling a remote function

From: Robert Fernandes <rfernand_at_llnl.gov>
Date: 1998/05/13
Message-ID: <355A2E05.35D798BC@llnl.gov>#1/1

Assuming you have a dblink set up between the local and remote databases... You can create a public or private synonym (depending on the needed scope) for the remote package on the local database and execute using the synonym.

For example, the following syntax:

  create public synonym REMOTE_PKG_SYN for OWNER.REMOTE_PKG_at_REMOTE_DB;

Would allow you to execute the following in SQL*Plus:

  execute REMOTE_PKG_SYN.FUNCTION(PARAMETERS...);

Hope this helps.

John Oldfield wrote:
>
> Hi,
> I am using Oracle 7.3 and I have a question that the Oracle team in my
> company couldn't help me:
> How can I execute a function that is defined in a package which is located
> on a remote database (we can assume there are no privilige problems)?
>
> Ronen Lewit
> email: lewit_at_zoot.tau.ac.il
 

-- 
         __________________________________________________         
        |                                                  |        
    _   |      Robert Fernandes - LLNL AIS Department      |   _    
   / )  |                                                  |  ( \   
 _( /_  |      Phone:       (925) 423-1397                 |  _) )_ 
(((\ \) |_     Fax:         (925) 423-5882                _| (/ /)))
(\\\\ \_/ )    LLNL Email:  rfernand_at_llnl.gov            ( \_/ ////)
 \       /                  fernandes6_at_llnl.gov           \        /
  \    _/                                                  \_     / 
  /   / |      Home Email:  rfernand_at_ainet.com             | \    \ 
 /   /  |__________________________________________________|  \    \
Received on Wed May 13 1998 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US