ODBC and XA

Hi all.
We are thinking about using ODBC in our tuxedo services to make easy the migration
between one database and other of a different vendor. We also need to use XA.
Have some of you information about using ODBC and XA, (conception, problems, ...)
and how many DB ODBC drivers support it?
Thx in advance.

I suspect you're not going to be able to retrieve Spatial data via ODBC. The ODBC protocol doesn't have the capability to request an Object type, so it can't retrieve Spatial. Unfortunately, the ODBC standard doesn't provide any mechanism to reasonably ask for an object or for the ODBC driver to return one.
Justin

Similar Messages

  • Oracle ODBC and DAO extremely slow

    Hi
    I'm using Microsoft DAO 3.6 with an Oracle ODBC connection (version 9.2) in an VB6 application.
    Opening an updateable dynaset is extremely slow, I have measured the performance with Oracle ODBC, Microsoft Oracle ODBC and Microsoft SQL-Server ODBC as follows:
    Oracle ODBC: 1952 ms
    MS Oracle ODBC: 360 ms
    MS SQL-Server ODBC: 40 ms (connection to a MS SQL-Server)
    If I use the SQLpassthrough option the result is about 10 ms in all 3 cases, but the dynaset is readonly !
    The testing program is as follows:
    Option Explicit
    Private Declare Function timeGetTime Lib "winmm.dll" () As Long
    Private Sub Form_Load()
    Dim wsdata As DAO.Workspace
    Dim db As DAO.Database
    Dim dbconn As String
    Dim rs As DAO.Recordset
    Dim start As Long
    dbconn = "ODBC;DSN=AdhocitORA;UID=adhocit;PWD=adhocit;"
    Set wsdata = DBEngine.Workspaces(0)
    Set db = wsdata.OpenDatabase("", False, False, dbconn)
    start = timeGetTime
    Set rs = db.OpenRecordset("Select * from Afdeling", dbOpenDynaset)
    rs.MoveLast
    rs.MoveFirst
    rs.Close
    Set rs = Nothing
    MsgBox "Time " & timeGetTime - start
    End Sub
    Is there any setting in the Oracle ODBC, that need to be adjusted ??
    Erling

    Why are you doing a moveLast followed by a moveFirst? That's going to force Oracle to retrieve all the records in the recordset. If there are a lot of records, you'll probably see a benefit if you increase the prefetch in the Oracle ODBC DSN configuration.
    Justin

  • ORACLE-ODBC and ACCESS2000

    Hi,
    I am working with Oracle-ODBC-Driver 8.01.61.00 (from 28.04.2000) and Access2000 under Windows2000 in a german-version.
    Access removes the comma by decimal-types.
    In Oracle I have 5.12 but access shows me 512 !!! :-((
    Who can help me ???
    This is very, very, very urgent !!!!
    Thanks !
    Hallo,
    Ich habe Oracle-ODBC-Treiber 8.01.61.00 vom 28.4.2000 dazu Access2000 und Windows2000 auf deutsch.
    Leider entfernt Access alle Dezimaltrenner bei Zahlen mit Dezimalstellen.
    In der Oracle steht 5,12 und Access zeigt mir 512 an !!!
    Wer kann helfen ??? Es ist dringend !!!
    Danke

    Note that the original poster asked the same question a day earlier in the thread "ACCESS and ODBC and Numeric's" which has received a couple of replies.
    Justin Cave
    ODBC Development

  • ODBC and OCI not working with OBIEE 11g Client on 64 bit machine

    Hi,
    I have Installed OBIEE 11g client (Admin tool) on Windows XP Professional 64 bit machine.. I have Installed 11g database on the same machine but while importing Metadata using admin tool. getting "Connection has failed" error message... Can someone tell me whats the issue..
    ODBC and OCI works fine with OBIEE 10g Admin..

    Hi,
    Oracle_BI1\network\admin folder gets installed with full obiee 11g Installlation and I have installed only 11g client as I have OBIEE 10g already Installed on my machine..
    Installation is as follows:
    ORACLE 11g CLIENT Installation is as follows:
    C:\Program Files\Oracle Business Intelligence Enterprise Edition Plus Client
    ORACLE 10g Installation is as follows:
    C Drive:
    ORACLE BI
    ORACLE BI Data ( everything is working with this)
    latest Log Info is as follows:
    [2012-02-02T11:05:00.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: ] [tid: 24fc] [nQSError: 16001] ODBC error state: 08004 code: 12154 message: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified.
    [2012-02-02T11:05:16.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: ] [tid: 2f3c] [nQSError: 16001] ODBC error state: 08004 code: 12154 message: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified.
    [2012-02-02T11:32:53.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: ] [tid: 2f3c] [nQSError: 16001] ODBC error state: 08004 code: 12154 message: [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolve the connect identifier specified.

  • ODBC and CLI info !

    Hi All
    This is for my knowledge sake : can someone tell me (or clear my doubts) , With Example , about ODBC and CLI ???
              What I know about ODBC is we configure data source in Windows ODBC administrator, and depending upon whether Application is 32/64 bit, 32/64 bit ODBC is invoked, am I correct ?
    Where do we use ODBC or CLI ?
    Why should we prefer CLI over ODBC ?
    Thanks a lot for the knowledge imparted, in advance.

    The release notes that accompany each download will have a pretty detailed listing of the feature changes and the bug fixes. Are you looking for more than that?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Reason to explain these performances of odbc and occi...

    I wrote some simple test programs to compare the performances of odbc and occi accessing Oracle.
    These programs were wrote in C++. The occi and odbc were given under almost the same circumstance.
    The result is: when executing query(simple select) the odbc is fast than occi. When executing insert sentences, the occi is much more fast than odbc does.
    My computer environment: Oracle 10g, Oracle instant cilent, VS 8.0.
    Do they all access oracle through OCI interface? How to explain the result?
    Someone give me some hints , please.

    Hi,
    With the limited info available, I can't offer any specific suggestions that will help here.
    Usually sqlnet tracing is a good thing to check to see if maybe it's round trips causing the discrepency, packet/buffer sizes, query differnces, etc.
    Server side sql tracing is often useful as well to check bind types, query execution, etc.
    Yes, both Oracle's ODBC driver and OCCI are written in OCI, but they have completely different implmentations: array fetching, statement caching, buffer sizes, etc. Simply because they're both written in OCI doesnt mean they share an implmentation.
    Hope it helps,
    Greg

  • MS Access, ODBC and SPs returning ref cursor

    I have some functions and procedures in a package returning ref cursors that work fine in my C++ batch applications. I would like for the GUI to be able to call these as well.
    Unfortunately, we are using Access as the front end (for now), and we have not been able to get the ref cursors to work. Is this supported? We are using Oracle 8.0.5 on Solaris, and our clients is Access 97 on NT using Intersolv's ODBC driver.
    My procedure looks something like:
    package jec is
    procedure open_sale_cur(
    p_client_id number,
    sale_curvar out sale_curtype)
    is begin
    open sale_curtype for select ... ;
    end;
    end;
    And the Access code looks like this:
    strSql = "begin jec.open_sale_cur(27, ?); end;"
    qdfTemp = conMain.CreateQueryDef("", strSql)
    qdfTemp.Parameters(0).Direction = dbParamOutput
    qdfTemp.Execute()
    This is the error when Execute() is called:
    PLS-00306: wrong number or types of arguments in call to 'OPEN_SALE_CUR'
    I am not an Access programmer; I am simply passing along this information. Any help would be greatly appreciated.

    We tried the {call...} syntax originally, but when we use it, we get an Oracle syntax error for the statement
    SELECT * FROM {call ...}
    Apparently Access prepends "SELECT..." before passing the SQL text to Oracle.
    This is also the case for procedures with normal scalars, such as numbers, returned as OUT values. When we use anon PL/SQL syntax and "?" placeholders with such procedures, they work. When we use {call ...} syntax or omit OUT placeholders, they do not.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Justin Cave ([email protected]):
    I suspect that you want to simply execute the statement
    strSql = {call open_sale_cur( 27 )}
    The ODBC driver will automatically figure out that there's an output parameter which is a ref cursor and return that as the result set. Note that you may want to download the latest 8.0.5 ODBC driver (8.0.5.10 I believe) if there are any problems.
    Justin<HR></BLOCKQUOTE>
    null

  • Newbie: Problem with jdbc-odbc and MS SQL server 2005

    I'm on win vistax64 with SQLSERVER 2005 and I have set up the odbc source as system dsn using the SQL Native Client driver with SQL authentication and the connectivity test in the end succeeds.
    I'm trying to make a simple web app that will connect to the database and perform simple querries. It's a school assignment.
    I'm using the jdbc-odbc bridge because it's the simplest way to do it and it's what we were shown in class.
    I get the following irritating error:
    "Cannot establish a connection to jdbc:odb:sstmdb using sun.jdbc.odbc.JdbcOdbcDriver ([Microsoft][ODBC Driver Manager] Data source name not found and no default driver specifies)".
    I'm working with netbeans 5.5.1 and this error is what I get when in the runtime tab I try to connect with the jdbc-odbc. I get a similar error in the logs when I try to run the app on the j2ee server.
    This is the java class that establishes the connection.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class Connector {
        private static final String dbUrl="jdbc:odbc:sstmdb";
        private static final String user="kimon";
        private static final String password="jackohara";
        public static Connection getConnection(){
            Connection conn = null;
            try {
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                conn = DriverManager.getConnection(dbUrl,user,password);
            } catch (SQLException e) {
                e.printStackTrace(); 
            } catch (ClassNotFoundException e) {
                e.printStackTrace(); 
            return conn;
    }It has worked perfectly on my school PC with winXP and MSDE2000.
    What am I missing?

    Ok, help came from an other way where I was inquiring about a different problem:
    Connectivity works fine by using User DSN instead of System DSN for the ODBC source.

  • Windows 2008 R2 Terminal Services, ODBC and Oracle 10.2.0.5 32-bit client

    Hi All,
    I am setting up an application to work under windows 2008 R2 terminal services/Citrix XenApp which is 32bit. This application uses ODBC connections and not relying directly on TNSName for connection resolution.
    I installed 10.2.0.3 and patched to 10.2.0.5, and when trying to create an ODBC connection I only see "junk" in the connections list for TNS Server Name without regard to what exists in the TNSNAME.ORA file.
    We have JDE on the same server which uses TNSNAMES and work fine, so I don't think it is Oracle client related directly, but I've not seen this before.
    Has anyone seen this before and know how to resolve?
    Geoff

    Patches are only available to Oracle customers with valid support contracts. If you do have such a contract, pl contact the person in your team who has access to My Oracle Support to download the needed patch. Patches cannot be posted on public servers as this violates ones support contract
    Srini

  • Cannot access remote FoxPro dbf file using jdbc-odbc and system DSN

    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database. I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

    Laura Ren wrote:
    Hi all,
    I have a foxpro database sitting on remote server (netware server). the dbf folder is shared and I can access it using windows explore on my weblogic server (windows 2003). I created a system dsn for that. I can access the database from the a stand alone java program using
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection surgConn = DriverManager.getConnection("jdbc:odbc:FoxDB", " ", " ");
    But when I use the same thing in my weblogic 8.1 application, I cannot access the database.What exception do you get? WebLogic is just like any other Java App. That code
    should work OK (though I have a better way)... Be warned that the JDBC ODBC
    bridge is specifically dangerous. It is not threadsafe.
    Joe
    I didn't config any data source in weblogic 8.1
    Why?
    When I try this on my own computer - windows 2000, weblogic 8.1 workshop. remote foxpro database dbf folder. it works.
    Any idea?
    Thanks very much

  • DTW - Trouble using ODBC and Configuration Files

    I am using SBO SP1 PL2 and DTW 2005.
    I have been making use of saving the configuration for the import of an object and then using the command line to run it, as described in DTW help under "Schedule Run".
    I typically use tab-delimited files saved from Excel and the above method works very well.
    However, I would prefer to use ODBC directly from the template tables I have in a SQL database. It works perfectly using the GUI within DTW, and it lets me save the configuration file, but when I try to run DTW from the command line using ODBC, I get these error messages:
    Can not connect to ODBC data source.
    Can not get SQL handler.
    Does anyone have any suggestions on how I can use DTW from the command line while using ODBC sources?
    Thank you.

    I've got the same problem.
    I solve it once by editing the xml file's <ExID> tag from <ExID></ExID> to <ExID />
    So the problem resides at the XML syntax.
    My problem is that I lost the XML file I used and now I can't make it work again.
    Have anybody found the solution at this problem or is there an updated version of DTW?

  • Oracle ODBC and BLOB in html

    Hi,
    I would like to ask you if cad I use Oracle-ODBC driver (whuch version) for reading BLOB (LRAW) column in html(asp) - JavaScript.
    create table JPG
    CLZM NUMBER(6) not null,
    JPG_FILE LONG RAW null ,
    <% @ LANGUAGE=JavaScript%>
    <%
    Response.Buffer = true;
    Response.ContentType = "image/jpeg";
    Response.AddHeader("Content-Disposition","attachment; filename=test.jpg");
    Response.CacheControl = "public";
    Response.Expires = 0;
    oConn = Server.CreateObject("ADODB.Connection");
    oConn.Open("DSN=ORACLE;UID=scott;PWD=tiger;");
    // Query SQL to obtain recordset containing gif BLOB
    oRs = oConn.Execute("SELECT JPG_FILE FROM JPG WHERE CLZM='3156'");
    // Obtain local variable of /*
    PicSize = oRs("JPG_FILE").ActualSize;
    Pic = oRs("JPG_FILE").GetChunk(PicSize);
    // ??? Obtain only 4 bytey - why ???
    Response.BinaryWrite(Pic);
    Response.End();
    %>
    Thank's
    Ondrej

    I had the same problem using VBScript.
    What you have to do isread in blocks of let's say 1k in a loop and check wether the return value is exactly 1k, if not you may end your loop.
    Here's my code in VBScript.
    Dim varBlob
    Dim varChunk
    Const chuckSize = 1024
    Do
    varChunk = objRs.Fields("blobField").getChunk(chuckSize)
    varBlob = varBlob & varChunk
    Loop While (len(varChunk) = chuckSize)
    the contents of varBlob is your Picture
    null

  • JDBC-ODBC and PreparedStatement.addBatch?

    Hi
    I am using the driver "sun.jdbc.odbc.JdbcOdbcDriver". I want to use preparedStatement and addBatch, but I get the error message:
    java.sql.SQLException: Driver does not support this function
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.addBatch(Unknown Source)Are the any way to come around this or do i have to execute one SQL-command a time?

    suladna wrote:
    I'm using MySQL Connector/J version 5.1.6 as JDBC. Huh?
    No you are not.
    Connector/J is a type 4 jdbc driver. And it most definitely is not the driver that you are using in the exception that you printed.
    If you have Connector/J then the problem is that you are loading the wrong driver and using the wrong connection string.

  • Unix ODBC and Oracle Instant Client

    When I dowloaded Oracle 11 Instant client the the zip file does not contain the libsqlora.so.11.1 file. the odbc_update_ini file contains reference to it. I am trying to configure ODBC on HP UX Pa Risc to use the Instant Client. I have downloaded the UnixODBC driver manager from UnixODBC.org. But I can't seem to figure out how to hook up Oracle 11 Instant Client. Everything I have searched for indicates that libsqlora.so.11.1 is required for the driver manager to work. Who develops this, is it Oracle, is it UnixODBC.org? Do I need to use an older version of Oracle Instanct Client?
    Thank you in advance for any help.

    is it "libsq.." or "libsql.."? Did you check odbc.zip? "libsqora.so.11.1" suppose to be part of odbc.zip. From which location you have downloaded? because in my install location I can see that "libsqora.so.11.1" is part of odbc.zip file and same has been referred by odbc_update_ini file. Download fresh tar(odbc.zip) and recheck!

  • "Log on failed" with ODBC and Stored Procedure

    I am in the process of porting our application from CR10 to CR.NET and am having some trouble setting the log on info.
    I have a report that was designed against a stored procedure and a development database.  The connection at design time is ODBC to a SQL Server.  At runtime I want to set the database and logon credentials to that of the production server, set the stored procedure parameters, and then display the report.  No matter what I do always get "Log on failed" error.
    After having considerable trouble with ApplyLogOnInfo on the tables where it seemed to not actually apply my changes, I finally found code which appeared to work elsewhere on this forum.  So this is the code that I have now, but the call to VerifyDatabase on the report always throws the Log on Failed exception:-
    void SomeClass::SetLogOnInfoForReportRecursively(ReportDocument^ ReportObj)
            CrystalDecisions::Shared::TableLogOnInfo^ l_pTableLogOnInfoToSet = gcnew CrystalDecisions::Shared::TableLogOnInfo();
            CrystalDecisions::Shared::ConnectionInfo^ l_pConnectionInfo = l_pTableLogOnInfoToSet->ConnectionInfo;
            l_pConnectionInfo->AllowCustomConnection = true;
            l_pConnectionInfo->ServerName = gcnew String(m_strServerName);
            l_pConnectionInfo->DatabaseName = gcnew String(m_strDatabaseName);
            l_pConnectionInfo->UserID = gcnew String(m_strUserID);
            l_pConnectionInfo->Password = gcnew String(m_strPassword);
            DbConnectionAttributes^ l_pConnectionAttributes = gcnew DbConnectionAttributes();
            l_pConnectionAttributes->Collection->Set("Database DLL", "crdb_odbc.dll");
            l_pConnectionAttributes->Collection->Set("QE_DatabaseName", String::Empty);
            l_pConnectionAttributes->Collection->Set("QE_DatabaseType", "ODBC (RDO)");
            l_pConnectionAttributes->Collection->Set("QE_SQLDB", true);
            l_pConnectionAttributes->Collection->Set("SSO Enabled", false);
            l_pConnectionInfo->Attributes = l_pConnectionAttributes;
            //main connection
            ReportObj->SetDatabaseLogon(l_pConnectionInfo->UserID, l_pConnectionInfo->Password, l_pConnectionInfo->ServerName, l_pConnectionInfo->DatabaseName, false);
            //other connections
            for each(CrystalDecisions::Shared::IConnectionInfo^ pConnection in ReportObj->DataSourceConnections)
                pConnection->SetConnection(l_pConnectionInfo->ServerName, l_pConnectionInfo->DatabaseName, l_pConnectionInfo->UserID, l_pConnectionInfo->Password);
                //pConnection->SetLogon(l_pConnectionInfo->UserID, l_pConnectionInfo->Password);
                pConnection->LogonProperties->Set("Data Source", l_pConnectionInfo->ServerName);
                pConnection->LogonProperties->Set("Initial Catalog", l_pConnectionInfo->DatabaseName);
            // Now we need to set the log on info for any subreports otherwise they will always look for the datasource they were set up with.
            if (!ReportObj->IsSubreport)
            for each (ReportDocument^ l_pSubReport in ReportObj->Subreports)
                 SetLogOnInfoForReportRecursively(l_pSubReport);
            for each (CrystalDecisions::CrystalReports::Engine::Table^ l_pTable in ReportObj->Database->Tables)
                TableLogOnInfo^ l_pCurentTableLogOnInfo = l_pTable->LogOnInfo;
                l_pCurentTableLogOnInfo->ConnectionInfo = l_pTableLogOnInfoToSet->ConnectionInfo;
                l_pTable->ApplyLogOnInfo(l_pCurentTableLogOnInfo);
                if (!l_pTable->TestConnectivity())
                   // handle error situation
    ... then the calling code
    SetLogOnInfoForReportRecursively( pReportObj );
    // l_Parameters contains the stored proc param name/values pairs to set at runtime
    for each (KeyValuePair<String^, String^> param in l_Parameters)
            pReportObj->SetParameterValue(param.Key, param.Value);
    pReportObj->VerifyDatabase();
    which then fails.  Can anyone see what I am doing wrong?
    Thanks

    Hi Paul,
    Are you using CR for VS SP 13? If not you can get it here:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    And MS SQL Server does not use a blank database name:
    l_pConnectionAttributes->Collection->Set("QE_DatabaseName", String::Empty);
    Set it to a database used in the report.
    And you don't need to call .Verify, unless the reports are not up to date, which is not recommended, you should be using ReplaceConnection. ( Search for this, KBA's and posts on how to use it )
    So rather that call .Verify try CRTable.TestConnectivity();
    If that fails then you know your log on failed also.
    Curious, if you try to preview the report it should prompt for log on info, if the Server and Database names are grayed out ( not editable ) then CR can't find the client either.
    And MS recommends using the client that matches the version of SQL Server, So if 2005 and less you can use the MDAC SQL Client driver, for MS 2008 then use the SQL Native 10 or above.
    Don

Maybe you are looking for

  • PO - Service tab gross price field is in display mode

    Dear all, My client requires Contract relase order with reference to Service contract, the price for the service codes which is adopted from the service contract, it is picking and displaying it contract release PO. But the gross price is in changeab

  • Xvid and ac3 quicktime codec

    Hi All, got my mini yesterday, hooked it up and all is good. All my movies and tunes are stored on my NAS and sync with front row via aliases. I need an quicktime xvid and ac3 codec that is compatable with intel macs. The regular ones wont work, but

  • How to give an option to sutoinstall Flash reader ?

    Dear webmates : My customer entered the site and couldn't see the SWF (because didn't have the Flash Player) then I installed it, but she asked me to create a way so, if any computer has not installed the Flash Player, it displays a link and installs

  • Securing new 2.5" SSD in my MBP

    I successfully followed the guide for Upgrading Your MacBook Pro With a Solid State Drive about a week ago, cloning and switching out the Toshiba 256GB SSD (pictured below) that came with my my mid-2010 MBP (I've put the details at the bottom of the

  • Running Shell Script from

    Dear Friends!          I have one requirement, I have to trigger Unix Shell script from ABAP program.   but only twist in the story is my SAP box is not in Unix system so I cant use external command execute function module.  Is any one come accross t