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

Similar Messages

  • 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

  • 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

  • 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

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

  • 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

  • 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

  • Oracle Sitemap Provider with 10g R1

    please help,
    I know implementation of oracle sitemap provider needs change notiffcation feature in database, which is why it doesnt work in 10G R1. I have successfully use the oracle sitemap provider, but when i try to add the site map node or giving roles to some node, the sitemap doesnt refresh that instantly.
    Is there any work around for this problem.
    Any help will be verymuch appreciated
    Message was edited by:
    user633898

    I am having this issue with a 10.2 database. Change Notification has been granted to the connecting user. When I add a node in ora_aspnet_sitemap it does not show up in my databound asp:menu control. Previously added nodes show up just fine. I know the nodes are there and accessible (I can query them with Oracle.DataAccess objects that use the same connection string as the sitemapprovider). Furthermore, I notice that the very first time I open Visual Studios 2008 and run my site locally, I get the following error message:
    "Multiple nodes with the same URL '/~temp emp.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs."
    Stack Trace:
    [InvalidOperationException: Multiple nodes with the same URL '/~temp     emp.aspx' were found. XmlSiteMapProvider requires that sitemap nodes have unique URLs.]
    System.Web.StaticSiteMapProvider.AddNode(SiteMapNode node, SiteMapNode parentNode) +717
    Oracle.Web.SiteMap.OracleSiteMapProvider.BuildSiteMap() +3454
    System.Web.StaticSiteMapProvider.FindSiteMapNode(String rawUrl) +133
    System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +193
    After I get this error, if I run the site again, it loads fine (albiet missing the newly added nodes). What I find interesting about the error message is that I do not have a "/~temp emp.aspx" node in my ora_aspnet_sitemap table, nor is there a page in my site with this name.
    Any ideas, solutions?

  • 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

  • Connectivity of Oracle 9i DB With ASP Application

    Dear friends,
    Can Any one please help me in solving my problem as follows. I run Oracle 9i Release 2 Database on Red HAt Linux Advanced Server. I also run a web server running on windows 2000 server and IIS 5.0. Now my problem is that whenever i try to coonnect the databse using ASP Pasges it returns me error of the following nature :
    1) objconn.Open "Provider=MSDASQL;Driver={Microsoft ODBC For Oracle};UID = kms;PWD=kms;Server=KMS;"
    Error Message :
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed
    /ORACLE77.ASP, line 8
    2)objconn.Open "Provider=MSDAORA.1;User Id = kms;Password=kms;Data source=KMS;Persist Security Info=False"
    Error Message:
    Microsoft OLE DB Provider for Oracle error '80004005'
    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. Provider is unable to function until these components are installed.
    3) objconn.Open "DSN=KMS;uid=kms;pwd=kms"
    Error Message :
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    Specified driver could not be loaded due to system error 5 (Oracle in OraHome92).
    My service name is KMS,database name & sid name also is KMS
    PLease Help me out of this problem.

    You may probably look at the possibility of using Oracle Provider for OLEDB.
    You can refer samples on this at following url
    http://otn.oracle.com/sample_code/tech/windows/ole_db/content.html
    This url also gives links for downloading the software.
    Chandar

  • PLS HELP - Column value missing when calling procedure from Oracle OLEDB provider

    When calling procedure 'sp_a(?,?,?)' from SQL_PLUS and using
    DBMS.OUTPUT to print the result
    It returns a result set as
    C0, C1, C2
    But When I call the same procedure 'sp_a(?,?,?)' with same
    parameter value from MS VB6,
    It returns the a result set as
    C0, Null,C2
    The 2nd value became Null.
    Any ideas?
    Please Help.

    See http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/forms-personalization-execute-a-procedure-1778674

  • BUG With 10g OleDB Provider!

    Hi there!
    I originally thought I was going mad, but now I think there's a bug in the 10g Oracle OleDB Provider. I can repeat this at will on my systems:
    * Windows XP SP2 (with all the latest Windows Update Patches)
    * Oracle Client (including OleDB Provider) v10.2.0.1.0
    * MDAC 2.8 SP1 (with Windows XP SP2)
    or
    * Windows 2000 Workstation (with all the latest Windows Update Patches)
    * Oracle Client (including OleDB Provider) v10.2.0.1.0
    * MDAC 2.7
    Here's all I have to do!
    1) Create a table with some data in Oracle (have tested this against 8i, 9i and 10g databases):
    CONN your_username/your_password@your_tns_service_name
    CREATE TABLE OLEDB_TEST
         RECORD_ID     NUMBER(5) NOT NULL,
         RECORD_DESC     VARCHAR2(50) NOT NULL
    INSERT INTO OLEDB_TEST VALUES(0    , '0     is OK!');
    INSERT INTO OLEDB_TEST VALUES(1    , '1     is OK!');
    INSERT INTO OLEDB_TEST VALUES(10   , '10    is wrong - comes out as 0');
    INSERT INTO OLEDB_TEST VALUES(12   , '12    is OK');
    INSERT INTO OLEDB_TEST VALUES(100  , '100   is wrong - comes out as 0');
    INSERT INTO OLEDB_TEST VALUES(120  , '120   is wrong - comes out as 20');
    INSERT INTO OLEDB_TEST VALUES(1200 , '1200  is wrong - comes out as 0');
    INSERT INTO OLEDB_TEST VALUES(1230 , '1230  is wrong - comes out as 230');
    INSERT INTO OLEDB_TEST VALUES(12300, '12300 is wrong - comes out as 300');
    INSERT INTO OLEDB_TEST VALUES(12340, '12340 is wrong - comes out as 2340');
    COMMIT;2) Run some VBScript (which you can do in VB6, ASP or however else you want to add it in):
    ' Constants for the connection string
    Const strUSER = "your_username"                    ' e.g. SCOTT
    Const strPASSWORD = "your_password"               ' e.g. TIGER
    Const strTNS_SERVICE_NAME = "your_tns_service_name"     ' e.g. ORCL
    Dim objConnection
    Dim objRecordset
        ' make sure we have a temp directory to write to, and that any existing file is deleted
        On Error Resume Next
        MkDir "C:\temp\"
        Kill "c:\temp\oledb_test.txt"
        On Error GoTo 0
        ' create the ADO connection
        Set objConnection = CreateObject("ADODB.Connection")
        ' set the connection string
        ' Using the Microsoft OLEDB Provider for Oracle works fine and dandy!
        'objConnection.ConnectionString = "Provider=MSDAORA.1;User ID=" & strUSER & ";Password=" & strPASSWORD & ";Persist Security Info=True;Data Source=" & strTNS_SERVICE_NAME
        ' But using Oracle Provider for OLEDB causes us problems!!
        objConnection.ConnectionString = "Provider=OraOLEDB.Oracle.1;User ID=" & strUSER & ";Password=" & strPASSWORD & ";Persist Security Info=True;PLSQLRSet=1;Data Source=" & strTNS_SERVICE_NAME
        ' set the cursor to open on the client
        objConnection.CursorLocation = 3    ' adUseClient
        ' open the connection
        objConnection.Open
        ' create the ADO recordset object
        Set objRecordset = CreateObject("ADODB.Recordset")
        ' set its active connection
        Set objRecordset.ActiveConnection = objConnection
        ' open it up, pulling in the data from the oledb connection
        objRecordset.Open "SELECT * FROM OLEDB_TEST"
        ' disconnect the recordset
        Set objRecordset.ActiveConnection = Nothing
        ' persist the recordset's data to XML
        objRecordset.Save "C:\temp\oledb_test.txt", 1       ' adPersistXML
        ' clean up our objects
        objRecordset.Close
        Set objRecordset = Nothing
        objConnection.Close
        Set objConnection = Nothing3) The resulting file in c:\temp\oledb_test.txt is as follows:
    <xml xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
         xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
         xmlns:rs='urn:schemas-microsoft-com:rowset'
         xmlns:z='#RowsetSchema'>
    <s:Schema id='RowsetSchema'>
         <s:ElementType name='row' content='eltOnly'>
              <s:AttributeType name='RECORD_ID' rs:number='1' rs:writeunknown='true'>
                   <s:datatype dt:type='number' rs:dbtype='numeric' dt:maxLength='19' rs:scale='0' rs:precision='5' rs:fixedlength='true'
                    rs:maybenull='false'/>
              </s:AttributeType>
              <s:AttributeType name='RECORD_DESC' rs:number='2' rs:writeunknown='true'>
                   <s:datatype dt:type='string' rs:dbtype='str' dt:maxLength='50' rs:maybenull='false'/>
              </s:AttributeType>
              <s:extends type='rs:rowbase'/>
         </s:ElementType>
    </s:Schema>
    <rs:data>
         <z:row RECORD_ID='0'    RECORD_DESC='0     is OK!'/>
         <z:row RECORD_ID='1'    RECORD_DESC='1     is OK!'/>
         <z:row RECORD_ID='0'    RECORD_DESC='10    is wrong - comes out as 0'/>
         <z:row RECORD_ID='12'   RECORD_DESC='12    is OK'/>
         <z:row RECORD_ID='0'    RECORD_DESC='100   is wrong - comes out as 0'/>
         <z:row RECORD_ID='20'   RECORD_DESC='120   is wrong - comes out as 20'/>
         <z:row RECORD_ID='0'    RECORD_DESC='1200  is wrong - comes out as 0'/>
         <z:row RECORD_ID='230'  RECORD_DESC='1230  is wrong - comes out as 230'/>
         <z:row RECORD_ID='300'  RECORD_DESC='12300 is wrong - comes out as 300'/>
         <z:row RECORD_ID='2340' RECORD_DESC='12340 is wrong - comes out as 2340'/>
    </rs:data>
    </xml>Note that the RECORD_ID field is incorrect!! Somewhere along the line, for every 0 at the end of the RECORD_ID (when the RECORD_ID is not 0), a digit is removed from the beginning of the RECORD_ID!
    This is KILLING me!!!
    You will notice that there is a line of code that is commented out which uses the Microsoft OLE DB Provider for Oracle instead. This works fine and dandy. The trouble is I can't use it, as I need functionality in the Oracle provider that the MS provider doesn't have! OUCH!
    Can anyone confirm that they get the same problems, or is there something else in my system that is messing things up??
    Many thanks for any help!
    James
    Message was edited by:
    JAMES_2JS

    It does not affect VS2005. I tried this code on
    * Windows XP SP2 (with all the latest Windows Update Patches)
    * Oracle Data Access Client v10.2.0.2.20
    static void Main(string[] args)
        try
            // create connection
            string cnString = "Provider=OraOLEDB.Oracle.1;User ID=hr;Password=hr;Data Source=//localhost/xe";
            OleDbConnection conn = new OleDbConnection(cnString);
            // create and fill dataset
            OleDbDataAdapter da = new OleDbDataAdapter("select * from oledb_test", conn);
            DataSet ds = new DataSet();
            da.Fill(ds);
            // write to XML
            ds.WriteXml("c:\\temp\\oledb_test1.txt");
            // done
            Console.WriteLine("XML file created, press any key...");
            Console.ReadKey();
        catch (Exception ex)
            Console.WriteLine("Error: " + ex.Message);
            Console.ReadKey();
    }and the result is,
    <?xml version="1.0" standalone="yes"?>
    <NewDataSet>
      <Table>
        <RECORD_ID>0</RECORD_ID>
        <RECORD_DESC>0     is OK!</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>1</RECORD_ID>
        <RECORD_DESC>1     is OK!</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>10</RECORD_ID>
        <RECORD_DESC>10    is wrong - comes out as 0</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>12</RECORD_ID>
        <RECORD_DESC>12    is OK</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>100</RECORD_ID>
        <RECORD_DESC>100   is wrong - comes out as 0</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>120</RECORD_ID>
        <RECORD_DESC>120   is wrong - comes out as 20</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>1200</RECORD_ID>
        <RECORD_DESC>1200  is wrong - comes out as 0</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>1230</RECORD_ID>
        <RECORD_DESC>1230  is wrong - comes out as 230</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>12300</RECORD_ID>
        <RECORD_DESC>12300 is wrong - comes out as 300</RECORD_DESC>
      </Table>
      <Table>
        <RECORD_ID>12340</RECORD_ID>
        <RECORD_DESC>12340 is wrong - comes out as 2340</RECORD_DESC>
      </Table>
    </NewDataSet>

  • Oracle Client OLEDB Provider Installation

    I need to call Oracle OLEDB Provider "setup.exe" once I complete installing our product (using Installshield). I tried all different ways to do this and I have absolutely no luck.
    1. I tried calling LaunchaAppAndWait(SRCDIR^"disk1\\install\\win32\\setup.exe", "", WAIT) in OnFirstUIAfter event before SdFinishEx function and Installshield doesn't wait for Oracle Installer to finish its installation.
    2. I tried to get window handle for each window created during Oracle Installation and waiting, this somewhat makes Installshield to wait but hangs once Oracle completes its installation and sequence of windows displayed can change during Oracle Installation if user clicks on back button which will make Installshield to hang.
    Enable(STATUS);
    SetStatusWindow(count, "Please wait... launching Oracle Universal Installer");
    WindowName = "Welcome";
    FindOracleWindow();
    WindowName = "File Locations";
    FindOracleWindow();
    WindowName = "Available Product Components";
    FindOracleWindow();
    WindowName = "Summary";
    FindOracleWindow();
    WindowName = "Install";
    FindOracleWindow();
    WindowName = "End of Installation ";
    FindOracleWindow();
    hWnd=NULL;
    Disable(HOURGLASS);
    Disable(STATUS);
    3. I followed knowledge base article w[i]Long postings are being truncated to ~1 kB at this time.

    There is an Instant Client page on OTN http://otn.oracle.com/tech/oci/instantclient/instantclient.html as well as an Instant Client forum (Products | Database | Instant Client) where you may want to post any followup questions. I know you can use ODBC with the Instant Client, so you could use the OLE DB to ODBC provider. My hunch is that you cannot use the Oracle OLE DB provider with the Instant Client, but you're probably better off posting that question to the Instant Client forum for a definitive answer. If you can use OLE DB, the Instant Client documentation needs to be updated to mention that.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Upgrade OLEDB provider

    Hi,
    We found a bug in Oracle OLEDB Provider what released with 11g (R1 or R2) client.
    It give size of text type columns (e.g. nvarchar2) wrongly (double size as it is in character).
    I found that 11.2.0.3 version of it was repaired and free of this bug.
    It is part of ODAC 11.2.0.3, but I can not install it to remain the oracle client properly working.
    Net Manager disappear (freeze with close) when I push 'test' button during create a new net service.
    So my question is:
    how can I upgrade OLEDB provider (e.g. with new ODAC installation) and the client tools (net manager, SQL* Plus)
    remain working?
    In previous versions (as I remember 9i, 10g) it was not problem to install ODAC into the same oracle home.
    I had try to install it into new oracle home, but it result to the same.
    Regards,
    Imre

    You may want to back up your packages, then use a simple text editor to search and replace in your DTSX packages...
    Talk to me now on

Maybe you are looking for

  • How to set hidden field value in form?

    I've encountered a problem while developing a forum using JSF. See this code: <h:form id="commmentForm" formName="commentForm" >      <h:input_hidden id="pageId" valueRef="CommentBean.pageId" value="${article.id}"/>      <h:input_text id="userName" v

  • SAP ECC 6.0 on Linux  OS

    Hello to all,                 I'm new to SAP world and would like to install SAP ECC 6.0 SR1 or SR2 on linux platform with Oracle as Database. I'm not sure how to search for software into the market place, what are the notes to refer. Would be great

  • Report FBL3N is not tally with GLPCT

    Dear expert. I'm using SAP ECC6 and find out some weird case. When i run FBL3N,the data that is suppose to store in GLPCT is not in GLPCT. I never face this problem before. Usually if i run FBL3N report, the data with profit center i can compare the

  • Not using Iphone as phone straight away....

    Hi all, this may sound like a strange question but if I was to buy a new iPhone 3G before my current contract with Orange runs out would I be able to use any of the iPhone features without signing onto O2 straight away, don't really fancy paying two

  • Battery charger

    I notice that the iPod case is marked "Rated 5-30Vdc 1A" while the companying charger is marked "Rated 12Vdc 0.67A". The iPod can also be charged using a USB port where normally provides 5Vdc 0.5A. How come the charger have such high output voltage a