﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 7,2000 / SQL Server Newbies  / Calling an Oracle Stored Procedure and Function / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 03:22:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Calling an Oracle Stored Procedure and Function</title><link>http://www.sqlservercentral.com/Forums/Topic409561-169-1.aspx</link><description>Hi,Were you able to call the oracle funtion from SQL Server?I have the same issue.I have to call Oracle function with 1 input and 1 output parameter, but it always gives some or other syntax error. If you know the exact syntax, please let me know.I tried these ways--&amp;gt;declare @InputPara varchar(100)set @InputPara=’Hello’declare @OutputPara bigintEXECUTE ( ‘BEGIN ? := packagename.functionname(?,?); END;’, @InputPara, @OutputPara OUTPUT )at linkedservername; select * from linkedservername..packagename.functionname(‘Hello)select * from openquery(LinkedServerName,‘SELECT * FROM packagename.functionname(”Hello”);’) Thank you so much -Janki</description><pubDate>Fri, 29 Jul 2011 13:55:34 GMT</pubDate><dc:creator>SJanki</dc:creator></item><item><title>Calling an Oracle Stored Procedure and Function</title><link>http://www.sqlservercentral.com/Forums/Topic409561-169-1.aspx</link><description>Hi,I'm trying to call an oracle stored procedure and function via linkedServer but I seem to be getting syntax errors from SQL server. The stored procedure passes two parameters and should get four back. This is the layout of the command I am using:Select 	*  from openquery([linked_server_name],'{ Call oracle_pkg_name.oracle_stored_proc_name(20,25,{OUT_MSG_STATUS_CD,OUT_MSG_STATUS,OUT_ACK_MSG,OUT_ERROR_MSG}) }')The function takes two parameters as input, returns a numbers, and also  has one output:select * from openquery([linked_server_name], 'select oracle_pkg_name.oracle_function_name(''CLR'', ''AAAM'',{OUT_ERROR_MSG})as proc_status from dual') Thanks,Brian</description><pubDate>Thu, 11 Oct 2007 08:34:22 GMT</pubDate><dc:creator>Brian Connolly</dc:creator></item></channel></rss>