Referring to How to execute an Oracle stored procedure via a database link, it does not work in my case. I don't know what I am missing.
I have a SQL Server instance and Oracle database in the same computer. And database link is created in the Oracle, called ss
.
And there is a stored procedure in SQL Server called dbo.test_proc
create proc dbo.test_proc
as
print 'testing';
Apparently, it does not have parameter and no return value.
I tried to call the stored procedure in Oracle via database link. But none of the following work.
exec test_proc@ss;
exec "test_proc"@ss;
exec "dbo"."test_proc"@ss;
exec "dbo.test_proc"@ss;
exec "dbo..test_proc"@ss;
The error is like
PLS-00201: identifier 'test_proc@SS' must be declared
ORA-06550: line 1, column 7:
Could any help me that? I have tried for a long time. Thanks!
Image is uploaded for querying sys.procedures
to check the existence of the stored procedure in SQL Server and trying to run the stored procedure via database link.
Image