|
-
Apr 12th, 2010, 12:59 PM
#1
Re: caliing stored procedure issue
 Originally Posted by karthikeyan
Hi,
i have created linked server between my sqlserver2008 and Oracle10g.
the following query is working fine
select * from openquery (DCCOM,'select * from sample).
but if i try to call procedure
select
* from openquery(DCCOM, '{CALL scott.get_test({resultset 25, OUTPUT})}');
it gives an error as "
Msg 7357, Level 16, State 2, Line 1
Cannot process the object "{CALL scott.get_test({resultset 25, OUTPUT})}". The OLE DB provider "OraOLEDB.Oracle" for linked server "DCCOM" indicates that either the object has no columns or the current user does not have permissions on that object."
how to solve this issue. please help me in this
What is get_test? I tried to call a function from SQL Server Express to Oracle 9i database and it worked for me.
I used a different syntax.
Code:
select * from openquery(NTEST, 'select callabc(to_date(''10/01/2019'',''mm/dd/yyyy'')) from dual')
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Apr 12th, 2010, 11:25 PM
#2
Thread Starter
Fanatic Member
Re: caliing stored procedure issue
Hi abhijit,
get_ test is my procedure name inoracle. could you please help me now
-
Apr 13th, 2010, 05:05 AM
#3
Re: caliing stored procedure issue
 Originally Posted by karthikeyan
Hi abhijit,
get_ test is my procedure name inoracle. could you please help me now
I will try the same thing with a stored procedure. callabc is a function in my case which accepts a date parameter. i am on Oracle 9i and SQL Server 2008 express edition.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
-
Apr 13th, 2010, 08:24 AM
#4
Thread Starter
Fanatic Member
Re: caliing stored procedure issue
hi abhijit,
i am using Oracle11g and sqlserver2008. still facing the same issue.
i have tried using sqlserver 2005 also using MSDAORA.getting the error as follows
select * from openquery(DCCOM, '{CALL CCOM.get_test({resultset 25, ReturnVal})}')
error :
OLE DB provider "MSDAORA" for linked server "DCCOM" returned message "Argument name not found for PL/SQL procedure.".
Msg 7321, Level 16, State 2, Line 1
An error occurred while preparing the query "{CALL CCOM.get_test({resultset 25, ReturnVal})}" for execution against OLE DB provider "MSDAORA" for linked server "DCCOM".
could you please help me in this
-
Apr 13th, 2010, 10:06 AM
#5
Re: caliing stored procedure issue
 Originally Posted by karthikeyan
hi abhijit,
i am using Oracle11g and sqlserver2008. still facing the same issue.
i have tried using sqlserver 2005 also using MSDAORA.getting the error as follows
select * from openquery(DCCOM, '{CALL CCOM.get_test({resultset 25, ReturnVal})}')
error :
OLE DB provider "MSDAORA" for linked server "DCCOM" returned message "Argument name not found for PL/SQL procedure.".
Msg 7321, Level 16, State 2, Line 1
An error occurred while preparing the query "{CALL CCOM.get_test({resultset 25, ReturnVal})}" for execution against OLE DB provider "MSDAORA" for linked server "DCCOM".
could you please help me in this
when I attempt to call a stored procedure, i am getting the following message.
Msg 7357, Level 16, State 2, Line 1
Cannot process the object "CALL delrelation('100081')". The OLE DB provider "OraOLEDB.Oracle" for linked server "PROD8" indicates that either the object has no columns or the current user does not have permissions on that object.
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|