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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Stored procedure access remote database

Re: Stored procedure access remote database

From: sybrandb <sybrandb_at_gmail.com>
Date: 26 Mar 2007 08:18:35 -0700
Message-ID: <1174922314.967028.190650@o5g2000hsb.googlegroups.com>


On Mar 26, 4:44 pm, "Cliff Martin" <cliff.mar..._at_gmail.com> wrote:
> Hi,
>
> I am trying to write a stored procedure that can access a table on a
> remote database to insert some data on the calling server.
>
> Stored procedure would reside on Server A, establish some sort of
> database link to Server B, query the remote table, switch context back
> to the local server and insert data into a local table.
>
> Is this possible? What should I be searching for to get more
> information on how to do this?
>
> Any help is appreciated.
>
> Cliff

Wouldn't you better just issue
insert into <local_table>
select *
from <table>@remote_db
directly?
What you describe is very inefficient.
Look into the Distributed database manuals for further info.

--
Sybrand Bakker
Senior Oracle DBA
Received on Mon Mar 26 2007 - 10:18:35 CDT

Original text of this message

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