OLEDB Provider 8.1.7.3 trims trailing spaces

We are testing 8.1.7.3 for our client who has problem with 8.1.7.0 provider
We have discovered that 8.1.7.3 trims trailing spaces when passing parameters to stored procedures.
like in the following sample when calling procedure using ADO and setting parameter to anything like
AParameter.Value:='A2 ';
test table is populated with just 'A2' string - trailing spaces are lost.
It was working OK with version 8.1.7.0
Create table test(code VarChar2(30));
Create or replace procedure testProc(code VarChar2) as
begin
Insert Into Test(Code) Values(Code);
-- NULL;
end;

oh ... I forgot to say ..
when I run query under Enterprise Manager as
select * from Openquery (db, 'select * from table')
then it will show me a pop-up message
"Query Designer encountered a MS Design Tools error:
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]OLE DB provider 'OraOLEDB.Oracle' reported an error.
[Microsoft][ODBC SQL server Driver][SQL Server][OLE/DB provider returned message: ORA-12545: Connect failed because target host or object does not exist]
And I follow support.microsoft.com/support/complus/mtsandoracle.asp?SD=GN&LN=EN-US&gssnb=1,setting as follow
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI]
"OracleXaLib"="oraclient8.dll"
"OracleSqlLib"="orasql8.dll"
"OracleOciLib"="oci.dll"

Similar Messages

  • Looking for Trim Trailing Space extension for JDeveloper 10

    I'm looking for the Trim Trailing Space extension version 10.1.3.2.0, for JDeveloper 10.1.3.5. I've tried the normal "Check for Updates", but the zip file that it tries to download doesn't exist. The version I'm looking for is listed on the download page here: http://www.oracle.com/ocom/groups/public/@otn/documents/webcontent/130355.xml, but the download link for it is broken. (I've also tried installing the latest version for JDeveloper 11, but it won't seem to install.)
    Does anyone know if older versions of the Trim Trailing Space extension are still available? If so, where can they be downloaded?
    Thanks,
    --Rob Roberts                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Rob,
    I sent an email to Chris (the author of the extension) and he has now recreated the extension for the 10.1.3.5 version that you are looking for. He added it to his download page on the Google Code.
    Here is a link to the file:
    http://code.google.com/p/jdev-trimtrailingspaces/downloads/list?can=4&q=&colspec=Filename+Summary+Uploaded+Size+DownloadCount
    I'll work on getting the Update Center corrected as well, but this should get you going for now.
    --jb                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Trim trailing spaces in Numbers '09

    I have tried to use Trim to delete trailing spaces. Which it does, but then if I copy and paste the value of the cell with the trim formula, I get the original value with the trailing space.
    I have a large messy spreadsheet with lots of cells with trailing spaces which makes using reference formulas harder for me since I can't find exact matches (due to the trailing spaces)
    How do I copy the string without the trailing space?

    If you copy/pasted that text from A2 into your post, the final character is not a space. I copy/pasted from your post to a table and the last character is code 160 (A0 hex) which looks like a space but is not. TRIM will not remove that.
    Try this
    =SUBSTITUTE(A2,CHAR(160),"")
    If that removes other "spaces" in your string that you want to keep, try this instead
    =TRIM(SUBSTITUTE(A2,CHAR(160)," "))

  • OLEDB Provider adds spaces

    Hi,
    as the this small prodedure demonstrates, the Oracle OLEDB Provider attaches some blanks to the constant read by the Sql-statement.
    On the  opposite the Microsoft Provider MSDAORA does what normally would be expected, it only prints out 1 single character.
    What is the problem, is there something to configure ?  The blankadding behaviour causes unnecessary problems.
    The Oracle OLEDB Provider seems to have some problem with blanks, sometimes it adds some, sometimes it removes some.
    Thanx.
    Best regards
    Dirk
    Output Oracle provider ( with the crazy blanks following the F ) :
    Used Provider OraOLEDB.Oracle.1
    AttributeName : MARKER Value : -F                               -            
    AttributeName : TRIMMED_MARKER Value : -F-
    Output using the Microsft Provider :
    Used Provider : MSDAORA.1
    AttributeName : MARKER Value : -F-
    AttributeName : TRIMMED_MARKER Value : -F-
    Demo Procedure :
    Sub Show_Blank_Problem()
    Dim rs             As ADODB.Recordset
    Dim strSQL     As String
    Dim i              As Integer
    Dim ConnectString  As String
        ConnectString = "Provider=MSDAORA; Data Source=MyOraDB;"
        ' ConnectString = "Provider=OraOLEDB.Oracle.1;Persist Security Info=False;Data Source=MyOraDB;Extended Properties="""" "
        Set OraConnect = New ADODB.Connection
        OraConnect.Open ConnectString, "scott", "tiger"
        strSQL = " select 'F' as Marker, Trim( 'F' ) as Trimmed_Marker from Dual "
        Set rs = New ADODB.Recordset
        rs.CursorLocation = adUseClient
        rs.Open strSQL, OraConnect, adOpenStatic, adLockReadOnly
        If rs.BOF And rs.EOF Then
            Debug.Print "No Data Found!"
            rs.Close
            Exit Sub
        End If
        Debug.Print "Used Provider : " & OraConnect.Provider
        Do While Not rs.EOF
            For i = 0 To (rs.Fields.Count - 1)
                Debug.Print "AttributeName : " & CStr(rs.Fields(i).Name) & " Value : " & "-" & rs.Fields(i) & "-"
            Next i
           rs.MoveNext
        Loop
        rs.Close
    End Sub

    To use 32 bit oraoledb, you'll need to set IIS to run in 32 bit mode.
    Or, install 64 bit oledb/client instead.
    Hope it helps,
    Greg

  • SAP BW Multidimensional OLEDB Provider and NOPROMPT option

    Hello
    I'm trying to connect to a SAP system using the SAP BW oleDB provider with this kind of connection string:
    Provider=MDrmSap.2;Data Source=SAP VPN;Password=PASSWORD;User ID=USERID;Location="";Integrated Security=False;Persist Security Info=True;Impersonation Level=Anonymous;Mode=Read;Protection Level=None;Extended Properties="SFC_CLIENT=001;SFC_LANGUAGE=EN";Initial Catalog=$INFOCUBE;Prompt=4
    I use the "Prompt=4" parameter in order to prevent the driver from displaying any window.
    => I get this error:
    Authorization failed.
    I'am sure of the login.
    Moreover, if I remove the Prompt=4 parameter, a login box is displayed, then I just click OK, and the connection succeeds...
    code (C#):
    var conn = new OleDbConnection(theConnectionString);
    conn.Open();
    The currently installed version of SAP gui is
    SAP GUI for Windows 7.20 (Compilation 1)
    the version of mrdrmsap.dll (the "SAP BW DRM OLE DB for OLAP Provider") is 3.8.0.4
    Has anyone already encountered this behaviour please?
    I know this used to work with a previous version of the SAP Client.
    Is it a known problem with this specific version of the SAP client ?
    Thanks in advance for any information,
    Mary.

    Hi Nikee,
    can you make sure the OLAP BAPI component from the SAP Integration Kit is installed on the BusinessObjects server ?
    thanks
    ingo

  • 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

  • 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

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

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

  • 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

  • Cant connect to Ora8.1.6 db using OLEDB provider for Ora8.1.7 cant find 8.1.6 OLEDB

    Hello,
    I need to connect to an Oracle 8.1.6 Database using OLEDB. Currently, we have one workstation with an ODBC connection and has an OLEDB Provider for Oracle 8.1.6. I can connect to Oracle using OLEDB on this machine (Winnt4 SP4) and see data from the tables. But I need to connect to the same Oracle DB from another workstation (Winnt4 SP6).
    I dowloaded the OLEDB Provider for Oracle8i from the Oracle Website, and on install I observed that this one was for Oracle 8.1.7. I keep getting an error message that it can't resovle the Service Name. I have played with the Net8 Configuration assistant for Oracle8i and the other selection for Oracle8.0 or 7.0. But I keep getting the same error on the NT SP6 machine. I have looked at the tnsnames.ora file on the SP6 machine and the SP4 machine. They are different, and I tried to make the .ora file on the SP6 machine match the .ora file on the SP4 machine but still can't resolve the Service Name. I would be very grateful if someone could help me out - either finding an earlier OLEDB Provider or some configuration trick.
    Many thanks,
    Rich Protzel

    Did you ever get this issue resolved? Do you know where I can get the Oracle Provider for OLE DB for 8.1.6?
    Aaron

  • Oracle database connectivity using oledb provider and atl classes in c++

    dear friend ,
    i m connecting oracle database in c++. i m using ATL classes and oledb provider for oracle. however i m facing some defficulties in stored procedure.
    Normally MYSQL and sql server database is resulting result set in stored procedure i.e. we can use " select * from tablename" query in c++ to returning result. but in oracle we can not use this approch as because it dosent support. so how can i execute below stored procedure in c++ code. i have to retuen result set in STP. i m using SYS_REFCURSER in oracle . but how do i execute it in c++ code.
    create PROCEDURE stp_getRecord ( p_curser SYS_REFCURSER) as
    begin
    open p_curser for select * from table_name;
    end;
    please help me asap.

    I tried it, commented out the reader.read and have the following connection string
    string connectionString = "provider=ORAOLEDB.ORACLE; data source=ORCL; password=****; user id=****; OLEDB.NET=True"
    Unfortunately the result is the same.
    Edited by: Dino2dy on Nov 24, 2011 12:53 AM

Maybe you are looking for

  • Image not displayed programmtically stored in blob column

    Hi, I altered student table to store photoes of students. For this I added STIMG as blob, MIMETYPE,FILENAME,IMAGE_LAST_UPDATE COLUMNS to studentadmitted table. Image stored and displayed in report very nicely. With the following query select "ROWID",

  • Syncing my 2 Macs and iWeb with .mac

    Hello people... I am having troubles with iWeb. I started using it today for the first time. I love very easy to use and looks great. My problem is this... I use 2 macs and want iWeb to update changes made on both of the machines. Example : I update

  • ITunes links not working

    Folks, Am running iTunes 11.1.4.62 on Windows 7 64-bit and am having a few issues, which I suspect are related: When I buy a season pass and emails arrive with a link to download newly posted shows that have already been purchased, the links do not o

  • How much space is needed?!?!

    I uploaded my music to my Nano, and I had about 28mb's left over, and it still wouldn't let me download 3 pictures to it. They're small pictures too. I tried loading them first, which worked, then uploaded my music. The pics only took up 1 mb, then w

  • Ubuntu 14.04 taking forever to install

    Hi, When installing Ubuntu 14.04 LTS on my 2013 MacBook Air, I get to the partition bit, partition and it gets stuck and has taken over 12 hours so far, with no progress. Is there anything I am doing wrong? Thanks in advance