How to create a DSN for Oracle Provider for OLE DB in a web server

Dear Guys,
I am a Excel VBA developer.
My requirement is from the Excel I have to call a Stored Procedure with REF CURSOR.
Normally I am using Microsoft ODBC for Oracle Driver for connecting Oracle DB, which is in the Server .
We have users using the Excel reports across the globe.
Sending Excel report is enough, the clients can connect DB from Excel via the DSN created in a web server.
But, I came to know that we can't access the REF CURSOR using Microsoft ODBC for Oracle Driver and it is possible to access by using ORA OLE DB Provider.
I have installed Oracle Client in my machine and tried using ORA OLE DB Provider like below
+con.ConnectionString = "Provider=OraOLEDB.Oracle.1;User ID=user_name;" & _+
+"Password=pwd;Data Source=Oracle;"+
The Excel worked fine in my machine but when I run the same Excel in my user machine in a different country I couldn't connect to DB.
Because the user machine doesn't have Oracle Client installed. We have n number of users across the world and we can't install Oracle client individually.
So, I have the plan of creating a DSN in a web sever as I used for Microsoft ODBC for Oracle Driver.
But, my doubt is how can I create a DSN for accessing ORA OLE DB provider? Is there any driver for ORA OLE DB provider? or is there any alternate solution for my issue?
Can anybody help me on this ASAP?
Thanks & Regards,
Satz

I have created a DSN in a web server (a Public IP machine) that is mapped to a Oracle DB.
In my Excel using VBA coding, with the help of RDO object I will call the DSN in the Web server using the connection string like "DSN=ORS;UID=SDATA;PWD=SDATA;"
This is working fine and in this case the client machine doesn't need Oracle client to be installed or any TNS entry.
The user can run the Excel report by clicking a button and the click event connects the DSN in the web server (through its URL) and routes to the mapped DB and fetches the quried data.
Please note that the above DSN is created based on Microsoft ODBC for Oracle driver.
But the issue is using the Microsoft ODBC for Oracle driver I couldnt call the SP with Ref Cursor.
When I searched in Internet I came to know using the provider oraoledb.oracle we can call SP that uses REF CURSOR.
Now my question is what is the driver name that I can use to create a DSN to make use of the provider oraoledb.oracle for calling the SP with REF CURSOR from Excel VBA coding ?
Appreciate your prompt reply.
Thanks & Regards,
Sathish

Similar Messages

  • How to create a DSN (Data Source Name) for "Oracle 10g XE" on SUSE 10??

    Hii Friends,
    I am new Linux user.I installed SUSE Linux 10.2. I am planning to do my project on Linux with J2EE,Oracle technologies. I installed Oracle 10g Express Edition. But unfortunately i have no provider name for oracle in the Providers List in SUSE/Gnome Desktop/System/Data Access points/ dsn list. I am unable to understand what actually happened. Should i install any other libraries, or Odbc drivers (I mean aren't they not given by Oracle XE Setup, as in MS Windows XP) ? Any one please help me. I need this immediately.
    Waiting for a reply,
    Mahidhar Chaluvadi
    CS Engg. Student
    Vizag.

    I am planning to do my project on Linux with J2EE,Oracle technologies.You don't need to set up a DSN. Just use a JDBC connect string such as jdbc:oracle:thin:@localhost:1521:xe
    ~Jer

  • ORacle provider for OLEDB

    Hi,
    I've downloaded and installed Oracle client. I can connect to the database using SQLPLUS. Tnsnames.ora file is in place.
    My question is how do I activate Oracle Provider of OLEDB?
    I tried to create a udl file can be used to test the connection (referred in the link provided below). To create a udl file on the desktop choose to create a new text document and name it with the .udl extension. But on the Provider page I can't see the option for "Oracle Provider for OLEDB" .
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(viewingMode=1143&from=BOOKMARK&bmDocTitle=When%20Logging%20into%20FDM%20Receive%20%22Error:%20%20ORA-12154:%20TNS:%20could%20not%20resolve%20service%20name%22&bmDocType=PROBLEM&bmDocDsrc=DOCUMENT&bmDocID=597375.1))
    I can see that OLEDB folder exists under <ORACLE_CLIENT_HOME>\oledb
    Any pointers will be appreciated.
    Thanks in advance.

    Gaurav,
    Well the installer is not running on MS windows 2008. It just terminates abnormally with some UNknown error.Then please read below thread carefully, try to follow around it. If still problem then I think post the question on dedicated forum [url https://forums.oracle.com/forums/forum.jspa?forumID=148&start=0]Oracle Provider for OLE DB
    Re: No luck installing Oracle OLEDB 9.2 on WinXP
    Regards
    Girish Sharma
    Edited by: Girish Sharma on Jul 9, 2012 10:51 AM
    Or continue in this thread, if moderator move this thread to that forum after few minutes.

  • How to install Oracle Provider for OLEDB for  10g

    Hi,
    I am having intantclient installed on my system. I want to install OLEDB for oracle 10g on my system. But there is some problem in installation. Its searching for ORACLE universal installer. But i have oracle instant client only installed on my system. So can you guide me how to install OLEDB for ORACLE? I have downloaded ODAC101040.exe from the ORACLE site.
    Thanks
    Ashwini

    Post your query at 'Oracle Provider for OLE DB' forum, you would probably find more answers there:
    Oracle Provider for OLE DB

  • How to create user dsn for microsoft access driver(*.mdb,.*accdb) in 64 bit

    hi,
    how to create user dsn for microsodt access driver(*.mdb,*.accdb) using command line in 64 bit.
    i have installed 64 bit drivers and when use following command
    C:\Windows\System32>odbccad.exe CONFIGDSN "Microsoft Access Driver (*.mdb,*.accdb)" "DSN=GLDatabase|Description=GL Data Source|DBQ=C:\DataBase\1.mdb"
    CONFIGDSN:'unable to create a datasource for the "Microsoft Access Driver (*.mdb,*.accdb)" component not found in the registry with the error code -2147467259
    but it works with C:\Windows\SysWow64

    yes i have installed Microsoft Access Database engine 2010 redistributale => AccessDatabaseEngine_x64.exe
    i can able to create user dsn using odbccad32.exe in system32 folder but using command line its not working
    C:\Windows\System32>
    odbccad.exe CONFIGDSN "Microsoft Access Driver (*.mdb,*.accdb)" "DSN=GLDatabase|Description=GL Data Source|DBQ=C:\DataBase\1.mdb"
    CONFIGDSN:'unable to create a datasource for the "Microsoft Access Driver (*.mdb,*.accdb)" component not found in the registry with the error code -2147467259

  • How to create ODBC connection between Oracle 10g and MS SQL Server

    Hi,
    Can someone help us with the steps to create an ODBC connection between Oracle APPS using Oracle 10g database and MS SQL Server.
    Requirement is to extract the transactional data from MS SQL Server on a daily basis and dump it into Oracle tables for an interface to be run. Currently it is being done through Dataloader tool which we feel is causing the data issue with Arabic characters. We want to create the ODBC directly between Oracle and MS SQL Server and check if the data is being pulled correctly.
    The data is in sql server 2000 which has data in Arabic_CI_AS character set which is moved to Oracle 10.2.0.3 database with characterset AL32UTF8. The table data is moved to oracle using the dataloader 3.6 standard edition licensed version. We cannot change the character set of Sql Server 2000.
    Please help
    Thanks
    Shanil

    Hi,
    If you're trying to PULL data from SQLServer into an Oracle database, you wouldnt use Oracle ODBC driver for that, so you may want to post in the Heterogeneous Services forum instead:
    Heterogeneous Connectivity
    If you're trying to PUSH data from SQLServer into an Oracle database, you could use ODBC but most folks use OLEDB for that, and the following note on MOS should help:
    How to Create a Sql Server Linked Server With The Oracle Provider for OLE DB     (Doc ID 191368.1)
    As with any NLS related issue, the first thing to do is dump the codepoints of the data in the Oracle database to see if it is stored validly, rather than relying on what the data "looks like" from some tool or other. It's best to check a single row, with only a few characters in it if you can, and you can do that via
    SELECT DUMP(<columname>,1016) FROM <tablename> WHERE ...
    Hope it helps,
    Greg

  • How to create dynamics columns in oracle query1.

    hi,
    how to create dynamics columns in oracle query.its very urgent.
    regards
    prasad..

    Urgent is it?
    Why? Have you forgotten to do your coursework and you'll get thrown off your course if you don't hand it in today?
    What makes you believe that your request for help is more important than someone else who has requested help? It's very rude to assume you are more important than somebody else, and I'm sure they would like an answer to their issue as soon as they can get one too, but they've generally been polite and not demanded that it is urgent.
    Also, you assume that people giving answers are all sitting here just waiting to answer your question for you. That's not so. We're all volunteers with our own jobs to do. How dare you presume to demand our attention with urgency.
    If you want help and you want it answering quickly you simply just put your issue forward and provide as much valuable information as possible.
    Looking at your post you haven't told us what database version you are using, you haven't provided any create table DDL's and insert statements to populate that with sample data, and you haven't even shown us that you've had a go at doing something yourself.
    You will find if you post on here demanding your post is urgent then most people will just ignore it, some will tell you to get lost, and some will explain to you why you shouldn't post "urgent" requests. Occasionally you may find somebody who's got nothing better to do who will actually provide you with an answer, but you really are limiting your options by not asking properly.
    /rant
    As a basic example of dyanamic SQL:
    DECLARE
      cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
      cols DBMS_SQL.DESC_TAB;
      ncols PLS_INTEGER;
    BEGIN
      -- Parse the query.
      DBMS_SQL.PARSE(cur, 'SELECT hiredate, sal FROM emp', DBMS_SQL.NATIVE);
      -- Retrieve column information
      DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
      -- Display each of the column names
      FOR colind IN 1 .. ncols
      LOOP
        DBMS_OUTPUT.PUT_LINE (cols.col_name);
      END LOOP;
      DBMS_SQL.CLOSE_CURSOR (cur);
    END;
    /

  • How to create a wallet in oracle RAC environment

    How to create a wallet in oracle RAC environment.
    While running following command "alter system set encryption key identified by "thalesdata4";
    I am getting error message "cannot auto create wallet" or "failed to open wallet.
    Please suggest correct way to create a wallet in RAC environment.
    Thanks
    Sudhir

    hi,
    please refer for detailed explanation
    Master Note for SSL Configuration in Fusion Middleware 11g [ID 1218695.1]
    regards

  • How to create xml file from Oracle and sending the same xml file to an url

    How to create xml file from Oracle and sending the same xml file to an url

    SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
    Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way.

  • Oracle Provider for OLE DB not available in list of providers

    Hi
    I'm installing IdM 7.2 (Oracle) on a Windows 2003 R2 x64 server.  As this is a proof of concept system, all components are installed on this server.  The RDBMS is 10.2.0.4 x64.
    I'm doing the IC Initial Configuration in the Creating the Identity center connection string, when I click on the Wizard the Oracle Provider doesn't appear in the list as expected.
    I have installed the Windows Interfaces 64bit which contains the ODBC Driver and the Oracle provider of OLE DB.  I can see the ODBC drivers using the Microsoft ODBC Administrator.
    Is there a step I am missing?
    Thanks in advance.
    Doug

    Strange. I just checked my demo box which is Windows 2008 R2 64bit with Identity Center and I can see Microsoft OLE DB provider for Oracle in tab Provider even I use MS SQL 2008 R2 for IdM. IC is jsut MMC (Microsoft Management Console) plugin so maybe you can try google for adding ODBC driver to MMC. The problem might be in 64 bits. Check this [link|http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/560b5769-82d7-4b1f-8b4a-cac8198a951c].
    Cheers

  • 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?

  • 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!

  • Installing a VB application using Oracle Provider for OLEDB

    Hi all,
    I have a corporate VB application that uses the Oracle 9i client.
    The Oracle Client is on a network disk, so all my clients will not need to install on their client machines.
    I am using Wise for Windows Installer to install the application on each client machine.
    I need to include on the installation package the "Oracle Provider for OLEDB" files.
    How can I do this?
    Thank you all,
    Ardates Cruz.

    The standard way to use the unmanaged Oracle.DataAccess is to install an Oracle client on any machine that wants to use the application.
    It is possible to avoid that installation by including a bunch of DLLs and some other files in the application, but it's far more cumbersome than using the managed client. Here's a link to get you started on that: http://stackoverflow.com/questions/13721025/deploying-and-configuring-odp-net-to-work-without-installation-with-entity-frame

  • How to create database link from oracle to sql server

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal

    Please help with how to create database link from oracle to sql server
    Best regards,
    Vishal
    Hi Vishal,
    I found a lof of information regarding how to create a database link from Oracle to SQL Server, please see:
    https://www.google.co.in/?gws_rd=cr&ei=vd3XUvGFO8TgkAXqlYCADg#q=how+to+create+database+link+from+oracle+to+sql+server
    We discuss SQL Server related issue in this forum. If you have any more question regarding Oracle, please post it in Oracle communities forum for better support.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • Can't create an alias for User home folder for a second user

    Please help: I can't make an alias of a User home folder of a second user. I can successfully make an alias of a home folder of the first user. The computer says the folder is in use and to wait for some activity to complete, or that I don't have eno

  • Help me solve stolen iPhone mystery

    I need some clarification on how the Continuity feature works in order to solve who took my iPhone 5c. The last time I know for sure I had my phone was in location A where there are 3 people who could have taken it. I then went to location B where I

  • Regarding Landed Cost

    Dear All, We are trying to manage freight and additional charges involved in Inter Branch Stock Transfer. Our Inventory Valuation is managed by Moving Average. For example We have 4 branches have their own Sales & Purchase where sometimes we have to

  • Taking 4:3 to 16:9 without stretching..?

    Is there an app (MPEG Streamclip or something) that can add black "pillars" (opposite of letterbox) to a 4:3 clip so it won't stretch in 16:9 ..?

  • I changed my apple id and password but payments are still using my old id

    I recently changed my apple id and password but when try to make a payment it still tries to validate against my invaild old apple id. How do i fix this?