PL/SQL (MOSC)

MOSC Banner

how to execute a procedure in remote database using DB Link.

edited Dec 20, 2010 12:52AM in PL/SQL (MOSC) 4 commentsAnswered
 

Unable execute a procedure on another oracle database through DB Link.

Description:
I have two servers, A and B.  I two databases DB-A and DB-B.  Both are on Oracle10g and Linux environment. 

1. On Database DB-B:
Log on as DBB_SCHEMA on DB-B database.

Please note that  DBB_SCHEMA is the owner of a procedure and a table.

I have created a simple procedure as follows:

CREATE OR REPLACE PROCEDURE DBB_SCHEMA.test_mc2 (in_value in varchar2, out_value out varchar2)
AS

BEGIN

out_value := 'Hellow remote database';

insert into DBB_SCHEMA.t1 values ('row 1 inserted');
commit;
 
DBMS_OUTPUT.put_line (out_value);

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center