I am trying to execute an oracle stored procedure from SQL Server 2008 R8 through DB LINK, the stored procedure header looks like this:
TEST PROCEDURE (X OUT NOCOPY VARCHAR2, Y NOCOPY NUMBER, Z IN NUMBER)
This procedure should update the table "MYTABLE" and return the result
My T-SQL:
DECLARE @X nvarchar(255) DECLARE @Y INTEGER DECLARE @Z INTEGER SET @X= '' SET @Y = 0 SET @Z = 2 EXEC('begin USER.PKG.TEST(?,?,?); end;',@X OUTPUT, @Y OUTPUT,@Z ) AT DB_ORACLE;
The stored procedure is executed because I see that the table "MYTABLE" is updated, but the problem is that im is getting an error message:
Msg 7215, Niveau 17, รtat 1, Ligne 10 Impossible d'exรฉcuter l'instruction sur le serveur distant 'DB_ORACLE'.
Translate
Cannot execute the instruction at the distant server 'DB_ORACLE'
Note: Rpc, Rpc Out, and Use Remote Collation options are enabled.
thanks for the help
source share