Connect to different Oracle database and transfer table through Stored Procedure -


i have 2 oracle databases on different servers:

oracle 1 oracle 2

i want run stored procedure execute in oracle 1 , following:

a) connect oracle 2 b) create db link in oracle 2 connect oracle 1 or use existing 1 if created c) copy table 1 oracle 1 oracle 2

i able using:

create public database link mylink   connect source_user identified source_password   using source_entry_in_tnsnames'; 

copy data:

insert mytable select * mytable@mylink; 

i wrote stored procedure , included these not able connect oracle 2. how can connect oracle database stored procedure?

it rights issue. database link on target oracle db has procedure want call. must have execute rights package / proc.

also, have found must call target procs schema name. such schema.package.procedure@dblink(parms). if did not have schema on proc call package not compile.

side note... if calling procedure on link has refcursor returned not work. (at least on oracle 10 , 11). in cases had return table.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -