Access Oracle from SQL Server using Oracle Provider for OLE DB

Using
- SQL Server 2000 SP4
- Oracle 10g
- Oracle10g Provider for OLE DB Version 10.1.0.4.0
- Oracle 10g client
Able to create linked server in SQL server to Oracle 10g and display list of tables in Oracle. However, when execute query, it gives
Server: Msg 7320, Level 16, State 2, Line 1
Could not execute query against OLE DB provider 'OraOLEDB.Oracle'.
OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' ICommandText::Execute returned 0x80040155].
Any idea what is the problem ?

I'm having the same error message...But I'm connecting to a Oracle 8i DB......
I think this has to do with SP4 for SQL....I will test this tonight....

Similar Messages

  • Crystal Reports can't add stored procedure using Oracle Provider for OLE DB

    Hello,
    I am trying to bind an oracle stored procedure to a crystal report through Visual Studio 2008.
    This oracle stored procedure returns a ref cursor.
    I am using an oracle 11g database (11.2.0.2.0) .
    When I use the Oracle Provider For OLE DB driver to bind the store procedure with the report, I get the following error message:
    Description : ORA -06550 Line 1 Column 7
    PLS 00306 wrong number of types or arguments to the "Strored Procedure Name"
    But When I use the Microsoft OLE DB provider for oracle driver, I can bind the stored procedure to the report successfully .
    I cannot use the Microsoft OLE DB provider for oracle driver because it does not support the CLOB data type which I plan on having the stored procedure return once I can get everything working.
    I have tried setting PLSQLRSET = 1 IN "HKEY_LOCAL_MACHINE\SOFTWARE\KEY_OraDb11g_home1\OLEDB", but that does not seem to work either
    Any assistance would be greatly Appreciated
    My Stored procedure is very simple as the moment (I just need to get it working then I'll add more stuff). Here's what it looks like:
    CREATE OR REPLACE PACKAGE PROMO.PKG_REPORT as
    TYPE OUT_Type IS REF CURSOR;
    procedure Report_ThisReport (
    p_ThisIdField IN number,
    IO_CURSOR IN OUT OUT_Type
    end PKG_REPORT;
    CREATE OR REPLACE PACKAGE BODY PROMO.PKG_REPORT as
    procedure REPORT_ThisReport (
    p_ThisIdField IN number,
    IO_CURSOR IN OUT OUT_Type
    IS
    BEGIN
    OPEN IO_CURSOR FOR
    SELECT ThisField
    FROM ThisTable
    WHERE ThisIdField = p_ThisIdField ;
    END REPORT_ThisReport;
    end PKG_REPORT;
    Edited by: 894988 on Nov 3, 2011 2:45 PM
    Edited by: 894988 on Nov 3, 2011 2:46 PM
    Edited by: 894988 on Nov 3, 2011 2:47 PM

    It seems that some questions posted here on the XE forum are really questions about other Oracle technologies.
    Concretely, for you there is an Oracle Provider for OLE DB Forum that is active and a terrific resource for you to use.
    Oracle Provider for OLE DB
    Cheers!

  • Get the connected users count from sql server using powershell

    Hi,
    I am working on SharePoint 2013,I am having SQL server 2012.
    I want to get the Connected Users count from  sql server using power shell.
    Can any one please let me know how to implement.
    Thanks in advance.
    Regards,
    Phani Kumar R

    Sorry Tom, I dont like to hear "There is no way" :-(
    There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
    Now we (or better the architect of their system) should think of the way :-)
    Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
    once something look in the right way.
    * A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
    the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
    include the application and session events. for example using the method Session_Start
    protected void Session_Start(object sender, EventArgs e) {
    // Code that runs when a new session is started
    * IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
    database and get the information we need.
    * any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
    side.
    * SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
    in several solution without using a trigger as well)
    *** (I'll be brief ... I'm getting bored... probably the reader feel the same)
    * using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
    blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
    .... and i can continue for several days more :-) ...
    "If there is a willing, then there's a way"
    "If you can't do it, Then someone else probably can"
    "Never say never"
    I hope this help somehow :-)
    [Personal Site] [Blog] [Facebook]

  • Oracle Provider for OLE DB Error

    Hello all.
    Can anyone help me understanding why using a statement like
    select * from openquery( linkservername, 'select * from table' )
    fails with
    Server: Msg 7399, Level 16, State 1, Line 1
    OLE DB provider 'OraOLEDB.Oracle' reported an error.
    [OLE/DB provider returned message: ]
    OLE DB error trace [OLE/DB Provider 'OraOLEDB.Oracle' IRowset::GetData returned 0x80004005:   ].
    On the sql server side, when using the Oracle Provider for OLE DB, but success when I change the linked server to use Microsoft Oracle Provider for OLE DB? It makes no sense to me. Sometimes, when I add a rownum <= 100 it does work with the Oracle OLE DB Provider. As you can see, I installed Oracle Client 10g on the sql server running version 2000, and created a linked server to an Oracle server running Oracle 10.2.4.0. The queries work fine with the Microsoft driver, but fail with the above message when using the oracle native driver.
    For your information, here's the select @@version from the sql server database.
    Microsoft SQL Server 2000 - 8.00.760 (Intel X86) Dec 17 2002 14:22:05 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 2)
    Just wanted to know what might the problem as using the Microsoft driver the session doesn't seem to use FCF.
    Any other information you may need, just let me know.
    Thanks!

    Hi,
    I'm not familiar with that particular error, but if you're not already using 10204 oledb/client, I'd certainly do that as a first step. There were lots of issues fixed in our oledb provider since 10201.
    Hope it helps,
    Greg

  • Oracle Provider for OLE DB 10.1.0.2.0

    Hi,
    I installed 10g client on my local PC to get access to an ASP application using 10g database. The select always returns no row for a username, therefore, I could not login to the application. But the sqlStatement in SQL*Plus did return a row. More strangely, one script also uses Oracle Provider for OLE DB 10.1.0.2.0 works without any problem.
    In Oracle Provider for OLE DB 10.1.0.2.0 documentation, it has the following as system requirements:
    System Requirements
    The following items are required on a system to use Oracle Provider for OLE DB:
    1.Windows NT, Windows XP, Windows 2000, or Windows Server 2003
    2.Access to an Oracle database (Oracle8i or later)
    3. Oracle Net Services
    4. Redistributable files provided with Microsoft Data Access Components (MDAC) 2.1 or higher are required by the provider. These files are available at the Microsoft Web site:
    http://www.microsoft.com/data/
    5. Oracle Services for Microsoft Transaction Server release 10.1 or higher. This is required for consumers using Microsoft Transaction Server (MTS) or COM+.
    I think that I might need to download the Microsoft Data Access Components (MDAC). I went to Microsoft web site, and the latest version for MDAC is 2.8. Anybody has any experience with this? Am I on the right track? I don't want to mess up with my machine by installing MDAC 2.8 if it does not solve the problem.
    Thanks, and your early reply is greatly appreciated.
    Jane

    Well, if some of the required componets were missing, I would imagine you getting an error when trying to connect?
    Where is this ASP application actually running?
    Is it running on your localhost IIS web server?
    If not, any setup on your computer will be irrelevent.
    If it is, you need to install MDAC components, and 2.8 is the latest.
    If running on your local IIS, did you try to create a very basic ASP page which just creates a connection to the database in question? Does that work?
    Do you have ON ERROR statements in your code to bypass any/all SQL errors?
    If you create a simple UDL file on your desktop and specify the server/user/password (ater selecting Oracle OLEDB driver), does the connect button work?

  • Unable to add a stored proc through Oracle Provider for OLE DB

    I want to bind an oracle stored procedure to a report. This oracle stored procedure returns a cursor.
    Problem Definition:
    When I use the "Oracle Provider For OLE DB driver." to bind the store procedure with the report, I am getting the following message.
    Description : ORA -06550 Line 1 Column 7
    PLS 00306 wrong number of types or arguments to the "Strored Procedure Name"
    But When I use "Microsoft OLE DB provider for oracle" driver, I can bind the stored procedure to the report successfully .
    Please help me in resolving this problem.
    My Stored procedure is something like this.
    CREATE OR REPLACE PACKAGE GroupsPackage
    AS
    TYPE CURSOR_TYPE IS REF CURSOR;
    PROCEDURE usp_SelectGroups (int intInputI IN ,Dresults_cursor OUT CURSOR_TYPE);
    END;
    CREATE OR REPLACE PACKAGE BODY GroupsPackage
    AS
    PROCEDURE usp_SelectGroups (int intInputI IN ,results_cursor OUT CURSOR_TYPE)
    AS
    BEGIN
    OPEN results_cursor FOR
    SELECT GroupID, GroupName, GroupDescription, LastUpdateDate
    FROM Groups
    ORDER BY GroupName;
    END;
    END;

    I think the following SAP Note would help you
    Symptom
    You create a BusinessObjects report and call an Oracle stored function through an object defined in Designer. The stored function name contains a number (like MyFunc2). You refresh the query and receive the error, "Connection or SQL sentence error (DA0005)" followed by, "ORA-06553: PLS-306: wrong number or types of arguments in call to '<function name>' 6552."
    You see the incorrect SQL when you open the query panel in BusinessObjects.
    Cause
    The function defined on the database has several parameters, each separated by a comma. BusinessObjects replaces this comma by a concatenation operator ('||'). Thus the database does not understand the SQL statement.
    Resolution
    ****CONFIGURATION*****
    Business Objects version 5.x
    Oracle database version 8.1.6
    *********RESOLUTION*****
    Here are two workarounds for this issue:
    Workaround 1
    Modify the SQL generated in the query panel.
    1. Replace the concatenation operators ('ll') with commas.
    2. Check the option "Do not regenerate SQL."
    Workaround 2
    Rename your Oracle function to a name with no digits or numbers.
    Regards,
    Raghavendra

  • Oracle Provider for OLE  DB is missing

    Hello everyone,
    I am a newbie and I am trying to install the SAP IDM 7.2 on windows server 2008 x64 and Oracle 11.2.0.4. The JVM and the oracle client are 64bit. All components are installed on the same server.
    In the first step "adding an identity store", the oracle provider for OLE is missing from the list. I have been through many discussions regarding the 32/64-bit oracle client issue with the Identity store. Is there any hope to solve this issue without installing a 32-bit oracle client version?
    Thank you
    Basel

    Hi Basel,
    Did you add the file to the OS Classpath or the IDM Classpath?
    Also you might need to install the client separately.  I think that's what I did.  It's been a while since I worked on an Oracle instance.
    Regards,
    Matt

  • Oracle Provider for OLE DB - Security

    Hi,
    Appreciate if anyone can advise on the security of data when using Oracle Provider for OLE DB to connect from a client application to Oracle database.
    Is the data encrypted?
    Thanks.
    oh2l

    First, technical questions should be addressed to an appropriate technical forum. Technologies | Windows | OLE DB would be a good place for this question.
    All client applications, regardless of which API they use, rely on TNS (Transparent Network Substrate) to communicate with the database. You can use Oracle Advanced Security to secure the contents of all the Oracle connections on that machine, but by default, all data (other than the password) goes over the wire unencrypted.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Oracle Provider for OLE DB 9.2.0.2.0

    Data adapter configuration wizard is unable to generate
    update,delete when using Oracle Provider for OLE DB 9.2.0.2.0 against oracle 9.2.0.3.0 database on windows
    2000.Is there any limitaion with Oracle Provider for OLE DB 9.2.0.2.0.
    But data adapter configuration wizard is able to generate
    commands when using Microsoft OLEDB provider for oracle.
    The table has primary key defined.
    Any ideas is greatly appreciated
    Sridhar

    Did you set OLEDB.NET=True in your Connection string?

  • Oracle Universall Installer & Oracle Provider for OLE DB

    Does anyone know if it is possible to install the
    Oracle Provider for OLE DB 9.x.x.x.x
    WITHOUT using the Oracle Universall Installer
    thank u,
    Miguel

    Hi Matt,
    if you speak about CLASSPATH you mean the environment-parameter PATH?
    If yes,
    D:\oracle\MIM\102\BIN>set PATH
    Path=D:\oracle\MIM\102\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wb
    em;C:\j2sdk1.4.2_17-x64\bin;C:\j2sdk1.4.2_17-x64;C:\j2sdk1.4.2_17-x64\jre;C:\j2s
    dk1.4.2_17-x64\lib;D:\usr\sap\MIM\SYS\exe\uc\NTAMD64
    In D:\oracle\MIM\102\BIN i see the follow files:
    06.01.2009  23:27           539.648 OraOLEDB10.dll
    06.01.2009  23:27             1.712 OraOLEDB10.tlb
    06.01.2009  23:27            24.576 OraOLEDB10d.dll
    06.01.2009  23:27             7.168 OraOLEDB10us.dll
    06.01.2009  23:27           146.944 OraOLEDBgmr10.dll
    06.01.2009  23:27            12.800 OraOLEDBpus10.dll
    06.01.2009  23:27             9.216 OraOLEDBrfc10.dll
    06.01.2009  23:27             7.168 OraOLEDBrmc10.dll
    06.01.2009  23:27           187.904 OraOLEDBrst10.dll
    06.01.2009  23:27            17.408 OraOLEDButl10.dll
    Mfg
    Rainer

  • Oracle Provider for OLE DB 9.0.1.0.1.

    We need to install in several client machines the Oracle Provider for OLE DB 9.0.1.0.1.
    Can we do it without installing the whole client package? in other words, can we just register a dll
    through a batch file, withoug going through Oracle's client instalation?
    thanks,
    Josi Miguel Casimiro

    You can double-check on the OLE DB forum, but I'm pretty confident the answer is no. You need to install the client so that the OLE DB provider will have the OCI and SQL*Net libraries necessary to actually communicate with the database.
    Justin

  • Unable to install Oracle Provider for OLE DB 8.1.6

    I could not install Oracle Provider for OLE DB 8.1.6. The problem was when I double click on the Setup.exe to run setup, it would not execute on some computers (brand new computers) and worked fine on others. I often got an error message saying that the Java Run-time Environment was not found. Has anyone run into that problem. I greatly appreciate if you could help.

    Found the post below on another thread. This would not work for us without changing the JRE_MEMORY_OPTIONS as well.
    ========================================================
    One of our DBAs had the answer. Its a bug relating to p4 processors.
    1. Rename the file symcjit.dll to symcjit.old
    2. Change the following line in the "oraparam.ini" file to read:
    JRE_MEMORY_OPTIONS=-nojit -ms16m -mx32m
    They said someone found it in Oracle KB article 131299.1 but I have still been unable to find the Oracle KB. Perhaps a "Knowledge Base" link should be added to the support or resources section.

  • "Oracle Provider for OLE DB" not in "Data Link Properties"

    Hello,
    we install the "Oracle Provider for OLE DB" in the Oracle Database. But
    we miss the entry in the "Data Link Properties".
    The entry was needfull for the Identity Center configuration wizzard.
    I found no hint how to add manual a entry to the "Data Link Properties".
    Have anyone a idea?
    Mfg
    Rainer Kunz

    Hi Matt,
    if you speak about CLASSPATH you mean the environment-parameter PATH?
    If yes,
    D:\oracle\MIM\102\BIN>set PATH
    Path=D:\oracle\MIM\102\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wb
    em;C:\j2sdk1.4.2_17-x64\bin;C:\j2sdk1.4.2_17-x64;C:\j2sdk1.4.2_17-x64\jre;C:\j2s
    dk1.4.2_17-x64\lib;D:\usr\sap\MIM\SYS\exe\uc\NTAMD64
    In D:\oracle\MIM\102\BIN i see the follow files:
    06.01.2009  23:27           539.648 OraOLEDB10.dll
    06.01.2009  23:27             1.712 OraOLEDB10.tlb
    06.01.2009  23:27            24.576 OraOLEDB10d.dll
    06.01.2009  23:27             7.168 OraOLEDB10us.dll
    06.01.2009  23:27           146.944 OraOLEDBgmr10.dll
    06.01.2009  23:27            12.800 OraOLEDBpus10.dll
    06.01.2009  23:27             9.216 OraOLEDBrfc10.dll
    06.01.2009  23:27             7.168 OraOLEDBrmc10.dll
    06.01.2009  23:27           187.904 OraOLEDBrst10.dll
    06.01.2009  23:27            17.408 OraOLEDButl10.dll
    Mfg
    Rainer

  • Capture Changes from Sql Server  using Oracle Streams  - Destination Oracle

    Is it possible to capture changes made to tables in Sql Server database and propagate the changes to Oracle Database using Oracle Streams and Heterogeneous Gateway. I see plenty of information about pushing data from Oracle to Sql server, but I haven't been able to find much information about going the other way. Currently we are using sql server 2005 replication to accomplish this. We are looking into the possibility of replacing it with streams.

    the brief understanding i have is that there is nothing out of the tin that Oracle provides to stream between SQL Server and Oracle. The senario is documented in Oracle docs however and says you need to implement the SQL Server side to grabe changes and submit to Oracle stream queues.
    i'm sure i've seen third parties who sell software to do this.
    If you know otherwise please let me know. Also wasn;t aware one could push from SQL Server to Oracle. Is this something only avail in SQL Server 2005 or does 200 also have it? How are you doing this?
    Cheers

  • Problems when trying to import metadata from SQL server using OWB

    Hi,
    We are using Oracle 11.2 EE on AIX and OWB: 11.2. We are in the process testing Oracle Transparent gateway for SQL Server and have installed and configured it on a standalone windows server. We and have run the ORACLE_HOME\dg4msql\admin\dg4msql_cvw.sql on SQL Server side, in order to query the SQL-Server data dictionary. We have created a DB-link and can pull data correctly without any problems. When trying to import metadata in OWB Client on win xp, we have created a non-oracle SQL Server Module and are able to connect and start the import, but the displayed table names look strange and can not be imported. In front of every letter there is a square box, so instead of ADDRESS (the address table in the source system) , it reads "squarebox"A"squarebox"D"squarebox"D"squarebox"R"squarebox"E"squarebox"S"squarebox"S and subsequently the import fails with :API0413: Illegal name [<tablename>] Name with preceding and trailing spaces is not allowed.
    The gateway have been configured with the following parameters:
    HS_FDS_CONNECT_INFO=<connect string>
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    HS_LANGUAGE=AMERICAN_AMERICA.WE8MSWIN1252
    Any ideas ?
    This topic has been posted in the Heterogenious Forum as well, but as the problem is within OWB, I also post it here.
    Thanks in advance!
    Henrik
    Edited by: he**** on Nov 15, 2011 1:29 PM

    Henrik,
    I've found other problems where OWB adds a space between all characters returned from SQL*Server which is what is happening in your case, although it is being displayed as a square box.
    In one of these cases the problem was fixed by using the 11.2.0.2 OWB so would it be possible for you to try with that version ?
    Also, as the problem is not with the gateway itself as you can select successfully using a database link then it would be better to follow up in the OWB forum -
    Forum: Warehouse Builder
    Warehouse Builder
    as they will be able to help with the OWB side of the problem.
    Regards,
    Mike

Maybe you are looking for