Multiple Recordsets and the Oracle OleDB Provider

We are trying to return multiple recordsets from an Oracle SP through the Oracle oledb provider using VB. First of all, is this possible and is there any example code out there. Having trouble finding some info on this.
Thanks

After reading install guide I figured out waht might be the problem.
I put OLEDB install into the same home (ora81).
It was suppose to go into different home directory (ora92).
Also, OLEDB is one of few components which can't exist in more then one
home dir on single machine. Installer knows that, and skips install of
OLEDB provider itself. So in my case I had to first uninstall OLEDB provider 8.1.7
and then install OLEDB provider 9.2
Thanks,
...dejan

Similar Messages

  • Oracle OLEDB PRovider with ASP

    hi,
    Can anyone provide me a piece of code which demonstrates how to call an Oracle sp from asp using the Oracle OLEDB provider.
    I would also appreciate if the Oracle package code could be provided too, since with the Provider we have to have a different code for the stored procedure (Ref cursor..??)
    I have been successfully connecting using the Microsoft ODBC Driver, but looks like it has some big time bugs in it which causes our server to hang and a dllhost.exe to consume large amounts of database memory.
    Anybody can help me with that?
    Many Thanks,
    Harshad.

    Harshad,
    Oracle OLEDB samples are available at
    http://otn.oracle.com/sample_code/tech/windows/ole_db/content.html
    URL.
    "Returning multiple recordsets from a stored procedure" sample demonstrates
    how REF cursors are returned from a Stored Procedure (contained in a DB package).
    This sample is a stand alone application and not an ASP program, but the same code
    can be helpful for ASP too.
    Regards
    Jagriti

  • Oracle OleDB Provider VS MS OleDB Provider

    I am using Stored Procedures in Oracle Packages and Microsoft ADO for data access.
    My Stored Procedure use a Ref Cursor output parameter to make data available to ADO's recordsets.
    A big difference in network traffic is found between "Microsoft OLEDB Provider for Oracle" and "Oracle OLEDB Provider" (the native driver provided by Oracle).
    The main issue :
    <<Oracle OLEDB Provider>>
    1) A stored procedure is put into an empty package for testing and returning no row, the result is 4KB downstream traffic.
    2) When the SAME stored procedure is put into a large package (a package that already contained 30 other stored procedures, > 1000 lines codes), the result is 70KB downstream traffic for same call that return no row.
    <<Microsoft OLEDB Provider>>
    1) and 2) both use approximately 4KB downstream traffic.
    However, for a query that return large number of rows (~2000 rows), Oracle OLEDB Provider used 143KB but MS OLEDB Provider used 400KB downstream.
    The behaviours for upstream are similar.
    My application is required utilize limited bandwidth, the the strange behaviour of the Oracle OLEDB Provider make my development of "Packaged" Stored Procedures a big problem.
    Does anyone know if there are any tricky on the Oracle OLEDB Provider? Please advice, thanks in advance.
    Regards,
    Jeff

    Sounds like the bug 2597418 that was fixed and released in 9.2.0.2 of Oracle OLEDB Provider

  • Oracle OLEDB Provider

    Good Afternoon:
    I am having trouble running sql thru VB with the
    Oracle OLEDB provider. The sql runs fine with the
    MSDAORA provider. My error is 'missing right parenthesis'.
    Here is the sql:
    SELECT b.DIVISION_ID KEY, b.PLAN_TYPE PLAN, 900000 FS_CODE,
    SUM (CASE WHEN NOT (d.PHARMACY_NETWORK_CODE IN ('9003','9004','9012') and b.CORPORATION_ID NOT IN ('U120','U180'))
    then a.NET_CHECK_DUE_AMT/c.COMPLETION_FACTOR else 0 end) IN_PAY,
    TRUNC (a.SERVICE_DATE,'YEAR') INCURRED_YEAR, SYSDATE
    From PHARMACY_FACT a, PLAN b, COMPLETION_FACTOR c, PHARMACY_CLAIM_GROUPING d
    Where a.PLAN_KEY = b.PLAN_KEY
    AND a.PHARMACY_CLAIM_GROUPING_KEY = d.PHARMACY_CLAIM_GROUPING_KEY
    AND c.FINANCIAL_SERVICE_SUBGROUP = 900000
    AND c.MONTH_INTERVAL = MONTHS_BETWEEN(TRUNC(TO_DATE('09/30/2003','MM/DD/YYYY'),'month'), TRUNC(a.SERVICE_DATE,'MONTH'))
    AND a.SERVICE_DATE BETWEEN TO_DATE('01/01/2000','MM/DD/YYYY') AND TO_DATE('07/31/2003','MM/DD/YYYY')
    AND a.PAYMENT_DATE BETWEEN TO_DATE('01/01/2000','MM/DD/YYYY') AND TO_DATE('09/20/2003','MM/DD/YYYY')
    AND b.PLAN_NBR NOT IN('R1','V1','V2') AND b.CORPORATION_ID IN('F275', 'P475')
    GROUP BY b.DIVISION_ID, b.PLAN_TYPE, TRUNC(SERVICE_DATE,'YEAR')
    When I comment out the case statement, sql runs.
    I tried putting parens around other parts of the
    statement but to no avail.
    Any help would be greatly appreciated.
    Thanks,
    Mike

    Sounds like the bug 2597418 that was fixed and released in 9.2.0.2 of Oracle OLEDB Provider

  • Sub queries with the Oracle OLEDB driver

    We have been testing the Oracle OLEDB driver through VB/ADO on Win2k and have found some VERY disturbing issues. First, some background - version 8.1.7.2, using client side-disconnected recordsets.
    A simple query with one or more subqueries is returning no rows when running the same query in SQLPlus returns the desired results. EX: Select a.*, (select Typename from user_types where user_types.type_id =a.type_id) user_type_name from users_group a where user_id = 5
    remove the sub-select and the ORACLE OLEDB driver returns a single row. Leave it in and you get recordcount = 0 and rs.eof is true.
    Can anyone explain this?
    Thanks

    Duplicate post:
    In Trouble with the Oracle JDBC Driver version - 10.1.0.5.0
    Claus,
    Pardon me if I am stating the obvious, but why don't you use the 10.2 JDBC driver with your 10.2 database? The driver is part of the database distribution. Otherwise, you can download the driver from the OTN Web site.
    Good Luck,
    Avi.

  • Append hint + ADO + Oracle OleDB Provider

    Hi everybody!
    This is my first post here in this great forum! ;-)
    I have a problem using Append hint with Oracle OleDB Provider and I've been searching internet for an answer without any luck.
    I'm trying to use Append hint with ADO + Oracle OleDB Provider (OraOLEDB.Oracle.1), like in the SQL below:
    INSERT /*+APPEND*/
    INTO my_table(field1, field2, field3)
    SELECT 0 field1, v.field2, v.field3)
    FROM my_second_table v
    The problem: Oracle is still creting log for this INSERT (It is working like there was no Append hint).
    If I use the same SQL statement with Microsoft Ole DB Provider for Oracle, the Append hint works as expected (log is not created), but doesn't work at all with Oracle DB Provider.
    Trace shows me that the SQL sentence is ok (the append hint is there!).
    I've tried Oracle servers 9.2 and/or 10g, and the problem is the same.
    Question: Does Append hint work with Oracle OleDB Provider? If yes, why it is not working? Something related with connection properties?
    Any help will be much appreciated!
    Thanks in advance.
    Alexandre Machado

    user8010279 wrote:
    Hi Solomon, thanks for you answer.
    Is the same SQL against the same database, with the same program, using ADO + OleDB Provider.
    The table is in NOLOGGING mode.
    When I use Microsoft OleDB Provider for Oracle there is no log creation. Then I disconnect and reconnect to the same server/database, using Oracle OleDB Provider. Then I execute the same SQL and.... there IS log creation, meaning that in that scenario, append hint is being ignored. I can't figure out WHY!!! :-(
    Alexandre,
    I'm not sure what you mean by "there is log creation". In general you need to distinguish between UNDO and REDO generation. A direct-path insert (APPEND hint) doesn't generate undo but still can generate redo, depending on the ARCHIVELOG / FORCE LOGGING mode of the tablespace resp. database and the LOGGING/NOLOGGING attribute of the table.
    Note that in case indexes exist on the table there will always be undo and therefore redo generation for the index maintenance as part of the direct-path insert.
    You should check V$SESSION (SQL_ID in 10g, SQL_ADDRESS + SQL_HASH_VALUE in pre-10g) and V$SQL in the database to double check if the SQL passed by the Oracle OLEDB Provider actually contains the APPEND hint in case the INSERT actually generates UNDO (which is the indicator that shows you if the direct-path insert is used or not). Whether it generates REDO is - as already mentioned - depending on other factors.
    So the question is how have you determined if the direct-path insert mode has been used or not?
    The simplest approach to test if direct-path insert mode is used or not is to issue a query on the object inserted into after the insert before committing the transaction. If it fails with "ORA-12838: cannot read/modify an object after modifying it in parallel" then you successfully inserted using direct-path insert.
    Note that there a number of restrictions that prevent the direct-path insert from happening, in those cases the APPEND hint will be silently ignored, e.g. enabled triggers, foreign keys on the table. A quite comprehensive list of restrictions is listed in the manuals here:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28313/usingpe.htm#CACEJACE
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Oracle connect failed on x64 and IA64 platform via Oracle OLEDB provider

    Hi everyone,
    I installed SQL Sever on x64 and IA64 machine, and Create a database via Oracle datasource. I can connect the datasource via OLEDB and .Net provider successfully on x86 machine. But failed to connect the Oracle datasource on x64 and IA64.
    Following is the error messgae:
    1) Install 64 bit build on x64 machine:
    Error message: Test connection failed because of an error in initializing provider. ORA-06413: Connection not open.
    2) Install 32 bit build on x64 machine:
    Error message: Test connection failed because of an error in initializing provider. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.
    I know there is a know bug on c:\Program Files (x86)\... with Oracle provider. And some one has given a workarround method that I should move my my application out of the the folder path which includes parentheses. But it really is mess method for SQL Server (That is my application)......
    Is there any other workarround method? Or when will Oracle fix this bug?
    Thanks^_^
    Lindsay

    Is 10204 available for x64 and IA64. It is said that there is only 10204 for x86 machine, right?
    I downloaded 10203 for IA64 machine and tested connection on SQL Server with Oracle datasource via Oracle OLEDB provider, and got the following error (The data source is Oracle92 installed on another machine):
    Test connection failed because of an error in initializing provider. Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.
    Could you please tell me what's wrong with it?
    Thanks
    Lindsay
    Message was edited by:
    lindsaywang

  • Differences between Oracle OLEDB Provider & Microsoft version

    I am trying to connect to an Oracle database from a SQL Server SSIS package. When I use the Microsoft OLEDB Provider for Oracle (MSDAORA) the connection manager in the package sees a full list of the tables in the Oracle database but when I use Oracle's own OLEDB provider (Oracle.OLEDB.1) I see a much smaller list. I cannot see anything different about the tables that Oracle's Oracle provider fails to see. Has anyone come across this phenomenon before ? Are there some table name characters or data types that the Oracle provider objects to ?

    Not very likely.
    One possible explanation is they query different levels of the datadictionary.
    Sometimes the ALL_ level is queried, sometimes the DBA_ level, sometimes the USER_ level.
    At least you need to ascertain whether you are using the same Oracle account in both drivers. This can also make a difference.
    Anyhow: usually the Oracle driver implements way more functionality compared to the Microsoft driver, so the Oracle driver is to be preferred anyway.
    And probably the Oracle drivers results are correct (one really should use the ALL_ level instead of the DBA_ level).
    Sybrand Bakker
    Senior Oracle DBA

  • Oracle.Oledb provider returning improper out-put

    Dear All,
    Need your help in below issue.
    I have SSIS package which pull data from Oracle to SQL Server.
    Currently I have used Oracle.Oledb provider for the same, but it is giving me improper result.
    I check on oracle end count for that table was 26000 and when I run the same query through SSIS it shows 0 rows.
    The preview of the query is showing 0 as output.
    but when I tried the same using Microsoft OLEDB provider for Oracle it giving me proper out-put

    Hi Sushant,
    UseSessionFormat - specifies whether to use the default NLS session formats or let OraOLEDB override some of these formats for the duration of the session. Valid values are 0 (FALSE) and 1 (TRUE). The default is FALSE which lets OraOLEDB override some of
    the default NLS session formats. If the value is TRUE, OraOLEDB uses the default NLS session formats.
    Setting UseSessionFormat=true in the connection string will result in the provider using the session format specified by the client install, which should resolve this issue. The following connection string for the connection like below:
    Data Source=DataSourceNameHere;User ID=UserIDHere;Password=PasswordHere;Provider=OraOLEDB.Oracle.1;Persist Security Info=True;UseSessionFormat=True;
    Reference:
    http://blogs.msdn.com/b/dataaccesstechnologies/archive/2012/01/20/every-bug-is-a-microsoft-bug-until-proven-otherwise.aspx
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Udl test not possible to test Oracle OLEDB provider

    Hi,
    I have some issue to connect to my Oracle database.
    My environment is Windows Server 2008 R2, with Oracle server 11G.
    To test my Oracle OLEDB provider, I setup a udl test as described follow:
    1- Creation a file text document on server desktop : test.txt
    2- File extension change to .udl : test.udl
    3- launch of test.udl
    When I launched the test.udl, The Data Link Properties dialog box is not opened. A windows explorer is opened.
    Anybody knows why I am not able to launch the data link properties dialog box in my environment ?
    Thank you for your help
    Regards,
    Sandrine

    Error found... issue resolved.
    Basically got the sld connections tested. This error resulted because the default abap client in CTC was wrongly set.
    Regards.
    Mohamamd

  • How Standalone OC4J and the Oracle Application Server linked to each other

    Hi ,
    Please let me know what is the relation between a Standalone OC4J and the Oracle Application Server ?
    In my application The Oracle Application Server is installed in C drive and there is a Stand alone oC4j .
    Please tell me how they are linked to each other .
    Thank you .

    It depends on your need and what features and functionality of Oracle Application Server you are interested in. Note that OC4J is a component of Oracle Application Server that can run as a standalone component or within Oracle Application Server. Question #6 in earlier mentioned FAQ document states:
    OC4J standalone is J2EE 1.3 compatible (1.4 and 1.5 too in later releases of OC4J) and is able to be used in both development and small scale production environments. OC4J standalone provides its own inbuilt HTTP/S listener to allow clients to execute Web applications that it has deployed. Application deployment and server configuration of OC4J standalone is performed by the manual editing of a simple set of XML files.
    For large scale enterprise deployments, the Oracle Application Server product is likely to be more suitable with its comprehensive feature set including Oracle HTTP Server, process monitoring and management capabilities, and its configuration and management console.
    So if you are happy with what you see in standalone OC4J and scalability isn't an issue for you, you can stay with standalone OC4J and don't need to move to Oracle Application Server.
    PS: If you do decide to use OC4J that's embedded with Oracle Application Server, you can't move your standalone OC4J inside Oracle Application Server. You will have to reconfigure embedded OC4J again (as you might have done with standalone OC4J) and redeploy your applications.
    Hope this helps.
    Thanks
    Shail

  • Connecting to 8i with the latest OLEDB Provider

    Hello
    I would like to know if the latest OLEDB Provider (shipper with 10g) can be used to connect to a 8i database server.
    Thanks a lot.

    OraOLEDB 10g support Oracle 8i DB.

  • Oracle Workflow Server in a SUN machine; and the Oracle

    Hi All
    I have installed Oracle Workflow Server in a SUN machine; and the Oracle
    Workflow Client (Builder) in a WIN2000 machine.
    In the SUN machine, I already had installed Oracle9i and OMS (Oracle
    Management Server) version 9.2.0.1.0.
    In the WINDOWS 2000 machine, I already had installed the Oracle9i
    Client and the OWB (Oracle Warehouse Builder) version 9.0.3.35.0. Workflow
    Builder
    was installed together with Oracle Client components.
    I have a OWB (Oracle Warehouse Builder) project, and I deploy and schedule
    JOBS in OEM.
    Now I need Oracle Workflow in order to better ordering, manage and schedule
    that jobs.
    I'm reading the following documentation:
    Oracle Workflow Guide (Release 2.6.2)
    http://www.csis.gvsu.edu/GeneralInfo/Oracle/workflow.920/a95265.pdf But I think Oracle Workflow is very complex to learn quickly.
    My OWB Project has several mappings that load tables in a Data Warehouse.
    When I deploy these mappings one by one, in OEM, I can execute them in OEM
    and they work well.
    But when I use the Workflow Deployment Wizard, I create a new Workflow
    Project (Item type and Process).
    But I can't Launch this process. I go to Launch Process in Workflow page
    (http://:/pls//) but when I iniciate the project,
    it stops in the OWB Standard Begin Function. It does not go ahead.
    Well, when I use the Workflow Deployment Wizard inside OWB, it generates
    jobs that can
    be viewed inside OEM (Oracle Enterprise Manager) too. But when I submit
    these jobs, I can't get success too.
    Can somebody help me? May you guide me in order to solve my problem, or send
    me some
    documents or links about workflow, and it's integration with OWB and OEM?
    Best regards

    I think this might be more of an OWB question, and how OWB uses workflow, I have sent an email internally to try and get someone to responsd. You should also consider contacting Oracle Support if you are having these kinds of problems.
    Hi All
    I have installed Oracle Workflow Server in a SUN machine; and the Oracle
    Workflow Client (Builder) in a WIN2000 machine.
    In the SUN machine, I already had installed Oracle9i and OMS (Oracle
    Management Server) version 9.2.0.1.0.
    In the WINDOWS 2000 machine, I already had installed the Oracle9i
    Client and the OWB (Oracle Warehouse Builder) version 9.0.3.35.0. Workflow
    Builder
    was installed together with Oracle Client components.
    I have a OWB (Oracle Warehouse Builder) project, and I deploy and schedule
    JOBS in OEM.
    Now I need Oracle Workflow in order to better ordering, manage and schedule
    that jobs.
    I'm reading the following documentation:
    Oracle Workflow Guide (Release 2.6.2)
    http://www.csis.gvsu.edu/GeneralInfo/Oracle/workflow.920/a95265.pdf But I think Oracle Workflow is very complex to learn quickly.
    My OWB Project has several mappings that load tables in a Data Warehouse.
    When I deploy these mappings one by one, in OEM, I can execute them in OEM
    and they work well.
    But when I use the Workflow Deployment Wizard, I create a new Workflow
    Project (Item type and Process).
    But I can't Launch this process. I go to Launch Process in Workflow page
    (http://:/pls//) but when I iniciate the project,
    it stops in the OWB Standard Begin Function. It does not go ahead.
    Well, when I use the Workflow Deployment Wizard inside OWB, it generates
    jobs that can
    be viewed inside OEM (Oracle Enterprise Manager) too. But when I submit
    these jobs, I can't get success too.
    Can somebody help me? May you guide me in order to solve my problem, or send
    me some
    documents or links about workflow, and it's integration with OWB and OEM?
    Best regards

  • I cannot turn on my wifi! I have reset and turned off my phone multiple times and the Wifi button is completely greyed out. please help me

    I cannot turn on my wifi! I have reset and turned off my phone multiple times and the Wifi button is completely greyed out. please help me

    I had the same issue and i just resolved it, I have an iphone 4s and last night was al perfect and this morning i just verified that i had a new updated installed on my phone and my WiFi was disable and did restore as new like crazy until i did this after me being tired of restoring my phone from factory setting and then my lately back up on icloud i did my last move and it got fixed this is what i did ok.
    STep #1 Do a back up manualy onto your cmputer throu itunes (NOT ICLOUD) ok
    Step #2 after doing the the back up go and do on you phone or throu itunes do the factory reset setting and erase everything and make like new phone
    Step #3 Leave yhe iphone conected to Itunes.
    Step #4 Once your iphone is reset to factory setting on your Itunes Window will say NO SIM CARD DETECTED before clicking on your right up corner (DONE) slide your phone and it will appear conect to a network do the process and put the pasword of your WiFi and until it says conected,It will say (No Service) but it will be conected to WiFi  then click on the Itunes Window (DONE)
    Step #5 DO a back up recovery from the last back up you did onto your computer not Icloud ok!!
    Step #6 after you recovered your phone from last back up on your computer it will atumaticaly have service and WiFi conection like before..
    I hope i did explained well to you i did work for me after 7 hours of doing reset and back up =)

  • Can the 8i and 9i Oracle OleDB Providers co-exist on one machine

    One of our products requires the Oralce 8i OleDb driver version and is 'incompatible' with the 9i OleDb driver. Is their a possibility to 'package' ourselves the 8i driver and install (so let it coexist) on the same machine where e.g. the 9i OleDb is present ?

    Patrick,
    The destination machine should have proper installations of Oracle 8i and 9i homes. Only one home can be active at a time. When 8i home is active, use 8i OraOLEDB; when 9i is active, use 9i OraOLEDB. Technically it's possible.
    I cannot answer "packaging" part. "Packaging" involves legal issue.
    I would suggest that solve the "'incompatible' with the 9i OleDb driver" part. Please provide details.
    Sinclair

Maybe you are looking for