ODBC SQL_ATTR_PARAM_BIND_OFFSET_PTR  and SQLPrepare

I am having a problem with Oracle ODBC driver 9.02.00.65 when using both parameter bind offset pointer and peparing the statement using SQLPrepare.
If the statement is not prepared then the parameter bind offset pointer is used correctly by the driver for inserts, deletes, but once the statement is prepared, the driver uses the parameter bind offset only for the first execution of the statement

Using the same code insert records to MS sql server 2008 successful. I guess when Orcale meet a issue, it will auto rollback to the last right snapshot. how to turn off the rollback?

Similar Messages

  • Oracle ODBC driver and TIMESTAMP with timezone

    Does anyone know if it is possible to return data from a "TIMESTAMP WITH TIMEZONE" column using the Oracle ODBC driver and an ADO Recordset?
    I am using the Oracle driver version 10.2.0.2 and TIMESTAMP fields work fine.
    I can call Recordset->Open() with a query like "SELECT * FROM TABLE" when the table contains a column of type timestamp with timezone but when I execute a statement to see if there are results as in
    if (!(srcRecsetPtr->BOF && srcRecsetPtr->EndOfFile))
    my application throws an unhandled exception and exits. The exception is not a COM exception and I'm not sure how to get back additional information if that's possible.
    The only information I've been able to find in searching TechNet and MetaLink is that a workaround is to wrap the columns in a TO_CHAR or TO_DATE conversion first but that's not a good solution for my problem since I am executing user specified SQL which may join multiple tables.
    I've found one other note that says the documentation should be corrected and that these fields are NOT supported period (Bug #4011640).
    I've experimented with the Bind Timestamp as Date option in the ODBC connection and with various ALTER SESSION settings to attempt to change the NLS_TIMESTAMP_TZ_FORMAT but I have been unable to get past the problem.
    Any ideas are greatly appreciated.
    Thanks,
    Troy

    Hi Justin
    Thanks for your help.
    I tried what you mentioned and I could connect myself via SQL*Plus without passing a password and a login, Extern authentification seems to work and my user seems to be right configurated.
    But he problem goes on via ODBC. When I test connection in the ODBC Data Source Administrator of Windows XP, test fails and seems to forbid connection without userID and password. When I try to connect via ODBC in my program the same problem appears : "Unable to connect SQLSTATE=28000 [Oracle][ODBC][ORA]Ora-01017: Invalid username/password;logon denied" I could not connect in this way.. What's wrong ?

  • Olite ODBC driver and windows service problems

    Hi,
    I use the SOA Suite 10.1.3 and when I try in my code to locate BPEL Processes by instances using the following code:
    WhereCondition where = new WhereCondition(SQLDefs.CX_index_1 + " = ?");
    where.setString(1, deployedId);
    // Find Instances
    IInstanceHandle[] instanceHandles = locator.listInstancesByIndex( where );
    I get this error message:
    <ERROR> <default.collaxa.cube.engine.data> <BaseCubeInstancePersistenceAdaptor::listInstanceMetaData>
    java.sql.SQLException: [ODBC S1002] invalid column number
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinSQLError(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.thinGetData(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.getVal(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getString(Unknown Source)
    <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "finder": Cannot find instances.
    An attempt to fetch the instances using the where condition "index_1 = ?" from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: SELECT * FROM admin_list_cx WHERE ci_domain_ref = 0 AND index_1 = ?
    ORABPEL-04002
    Cannot find instances.
    An attempt to fetch the instances using the where condition "index_1 = ?" from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: SELECT * FROM admin_list_cx WHERE ci_domain_ref = 0 AND index_1 = ?
         at com.collaxa.cube.engine.adaptors.common.BaseCubeInstancePersistenceAdaptor.listInstanceMetaData(BaseCubeInstancePersistenceAdaptor.java:1199)
         at com.collaxa.cube.engine.data.AdminFinder.__listInstanceMetaData(AdminFinder.java:387)
         at com.collaxa.cube.engine.data.AdminFinder.listInstancesByIndex(AdminFinder.java:629)
         at com.collaxa.cube.ejb.impl.FinderBean.listInstancesByIndex(FinderBean.java:250)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at FinderBean_RemoteProxy_4bin6i8.listInstancesByIndex(Unknown Source)
         at com.oracle.bpel.client.Locator.listInstancesByIndex(Locator.java:602)
         at com.oracle.bpel.client.Locator.listInstancesByIndex(Locator.java:571)
         at webUI.CheckProcStatus.findInstance(CheckProcStatus.java:85)
         at webUI.CheckProcStatus.doGet(CheckProcStatus.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: [ODBC S1002] invalid column number
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinSQLError(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.thinGetData(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.getVal(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getString(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getString(Unknown Source)
         at com.collaxa.cube.engine.util.DBUtils.sql_getString(DBUtils.java:63)
         at com.collaxa.cube.engine.data.AdminFinder$InstanceMetaDataLoader.load(AdminFinder.java:120)
         at com.collaxa.cube.engine.data.AdminFinder$IndexMetaDataLoader.load(AdminFinder.java:142)
         at com.collaxa.cube.engine.adaptors.common.BaseCubeInstancePersistenceAdaptor.listInstanceMetaData(BaseCubeInstancePersistenceAdaptor.java:1179)
         ... 39 more
    It looks like there is a problem with the ODBC driver of Olite. I tried to see the configuration parameters in the Windows ODBC Data Source Administrator but when I click on the Configure button, the window closes and nothing appears. When I use another program (Aqua Data Studio) to query the Olite DB, everything works fine as long as I use basic queries without a "where" clause. When I use a "where" clause, windows opens a message box complaining about memory access error from the "olsv2040.exe", which is the Olite windows service, and it stops the service.
    There is also this error message when I launch the SOA Suite and it comes to the part of loading the BPEL processes:
    Loading processes for BPEL domain "default" ...
    <2007-04-30 18:48:54,551> <INFO> <default.collaxa.cube.engine.deployment> Process "TaskManager" (revision "1.0") successfully loaded.
    07/04/30 18:48:55 30 Apr 2007 18:48:55 - org.apache.commons.transaction.file.FileResourceManager - EMERGENCY - Recovering status information from 'C:\product\10.1.3.1\OracleAS_1\integration\esb/oraesb/artifacts/work/metadata/[B@266395/transaction.log' failed! Could not find file
    07/04/30 18:48:55 30 Apr 2007 18:48:55 - org.apache.commons.transaction.file.FileResourceManager - EMERGENCY - java.io.FileNotFoundException: C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\work\metadata\[B@266395\transaction.log (The system cannot find the file specified)
    07/04/30 18:48:55 java.io.FileNotFoundException: C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\work\metadata\[B@266395\transaction.log (The system cannot find the file specified)
    07/04/30 18:48:55      at java.io.FileInputStream.open(Native Method)
    07/04/30 18:48:55      at java.io.FileInputStream.<init>(FileInputStream.java:106)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager$TransactionContext.recoverState(FileResourceManager.java:1471)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager.recoverContexts(FileResourceManager.java:1219)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager.recover(FileResourceManager.java:441)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager.start(FileResourceManager.java:394)
    07/04/30 18:48:55      at org.apache.slide.store.txfile.AbstractTxFileStoreService.connect(AbstractTxFileStoreService.java:135)
    07/04/30 18:48:55      at org.apache.slide.common.AbstractServiceBase.connect(AbstractServiceBase.java:120)
    07/04/30 18:48:55      at org.apache.slide.store.AbstractStore.connect(AbstractStore.java:216)
    07/04/30 18:48:55      at org.apache.slide.common.AbstractServiceBase.connectIfNeeded(AbstractServiceBase.java:192)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.connectService(Namespace.java:524)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.retrieveStore(Namespace.java:623)
    07/04/30 18:48:55      at org.apache.slide.common.Uri.parseUri(Uri.java:347)
    07/04/30 18:48:55      at org.apache.slide.common.Uri.<init>(Uri.java:66)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.getUri(Namespace.java:671)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.getUri(Namespace.java:651)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:782)
    07/04/30 18:48:55      at org.apache.slide.common.Domain.initNamespace(Domain.java:845)
    07/04/30 18:48:55      at org.apache.slide.common.Domain.init(Domain.java:432)
    07/04/30 18:48:55      at org.apache.slide.common.Domain.init(Domain.java:366)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.slide.SlideHandler.initializeSlide(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.slide.SlideHandler.checkSlideInit(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.setupRepoURLScheme(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.setupRuntime(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.initializeESB(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter$PingTester.run(Unknown Source)
    07/04/30 18:48:55      at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    07/04/30 18:48:55      at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    07/04/30 18:48:55      at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    07/04/30 18:48:55      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    07/04/30 18:48:55      at java.lang.Thread.run(Thread.java:595)
    <2007-04-30 18:48:55,923> <INFO> <default.collaxa.cube.engine.deployment> Process "TaskActionHandler" (revision "1.0") successfully loaded.
    <2007-04-30 18:48:56,785> <INFO> <default.collaxa.cube.engine.deployment> Process "MainPatient" (revision "1.0") successfully loaded.
    A file transaction.log is missing. It's strange because when I installed the SOA Suite, it never complained about the installation of the files. How can I re-install this file or generate it without installing the whole SOA Suite?
    I am sorry if my message is too long, but all these problems are related to the Olite DB. Is there a way to re-install the ODBC drivers and the service without re-installing the whole SOA Suite?
    Any would be greatly appreciated.
    Amir                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Ok, after having installed the Oracle XE database and configured the data-sources of the BPEL PM. I still had the same error message complaining about invalid column number. I changed the code and put directly the connection pool:
    DataSource dataSource = (DataSource)_initialContext.lookup("java:comp/env/jdbc/BPELServerDataSource");
    Connection con = dataSource.getConnection();
    Statement stmt1 = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet rs1 = stmt1.executeQuery("SELECT cikey, process_id FROM admin_list_cx WHERE index_1='"+deployedId+"'");
    And now it works! The row is found and no error. I am wondering, is there a problem with my code (it worked with the former BPEL PM API 10.1.2) or is there a problem with the function listInstancesByIndex of the Locator object or something else (look at the Exception trace). Did somebody successfuly used this method of locating processe's instance using the index_1 parameter with the 10.1.3 API?
    Cheers.
    Amir

  • Can anyone tell me how to setup odbc driver and configure in the setup

    Can anyone tell me how to setup odbc driver and configure in the setup

    You can't switch languages in OS X programs, just in the OS itself. Insert the Leopard OS X disc, and choose your new preferred language when prompted.

  • Administrator ODBC crash and restart

    Hi all, I get the follow error:
    > odbc administrator a problem caused the program to stop working correctly. The windows will close the program and notifies you if there is a possible solution.
    I get the above error when I try add a DSN System Connection. The Administrator ODBC crash and restart.
    Issue as with Windows 7 Professional 64Bits - to connect to a SQL Studio 2012 (Pro).
    The issue only appens at this particulary machine, on others are fine.
    How can I fix this?
    Thank you

    thank you for your reply @Elvis Long
    here is the Thread open at IT Pro hxxp://social.technet.microsoft.com/Forums/en-US/a7980c6e-f674-41ce-acda-9e8e68d27a12/administrator-odbc-crash-and-restart?forum=w7itprogeneral
    In case here the msg
    Problem signature:
    Problem EventName:BEX
    Application Name:odbcad32.exe
    Application Version:6.1.7600.16385
    StampDate / TimeofApplication:4a5bcd4c
    FaultModuleName:sqlsrv32.dll_unloaded
    FaultyModule Version:0.0.0.0
    StampDate / TimeModulewithFailures:4ce7ba09
    DeviationException:73358bf5
    Exception code:C0000005
    ExceptionData:00000008
    OS Version:6.1.7601.2.1.0.256.48
    RegionID:2070
    Additional Information 1:0a9e
    Additional Information 2:0a9e372d3b4ad19135b953a78882e789
    Additional Information 3:0a9e
    Additional Information 4:0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
    go.microsoft.com/fwlink/?linkid=104288&clcid=0x0816
    If theonline privacy statementis not available,please readour privacy statement
    offline:
      C:\Windows\system32\pt-PT\erofflps.txtt
    (I have translate msg, the machines are in pt-PT)</quote>
    I have reinstall OS at Windows 7 Pro 64bits. But problem presist.
    btw: SQL Server run in a dedicated machine (Windows Server 2012 Standart Edition - SSD 500GB - 16GB of Ram - Intel Xeon [email protected] - 64bits)

  • Setting up an Oracle ODBC Driver and Essbase

    Hi all,
    I am trying to retrieve data directly from Essbase into SAS (Statistical Analysis Software) by setting up an Oracle ODBC Driver and Essbase.
    I read this document in the below link and I was convinced that I could use ODBC to connect to Essbase, but our data administrator says that Essbase is an OLAP database and can NOT use ODBC.
    http://docs.oracle.com/cd/E10530_01/doc/epm.931/esb_sqlint.pdf
    I am a SAS programmer, but I have no background in technical configuration, so I was wondering if someone can help me if it is really possible or not to connect to Essbase using ODBC.
    If it is possible, I have a follow up question...
    I followed this link below to do a set up and did so successfully before the actual step to add a new data source to ODBC driver.
    I should be able to select the TNS Service Name from the drop down list. This name will be that which I named in the TNSNAMES.ora file’s Alias = section, but I don’t see this option…
    It would be great if someone knows why I do not see this option populated under drop-down in the screenshot.
    Setting up an Oracle ODBC Driver and Data Source | Ten Six Consulting

    1) As I recall, the problem of returning 0 is caused either by an outdated version of the ODBC driver or of the MDAC (Microsoft Data Access Components). Updated versions of the ODBC driver are available here on OTN and updated versions of the MDAC are available at <http://www.microsoft.com/data>.
    2) Versioning-
    To determine the version of the Oracle8 ODBC driver you should be using, simply match up the first three digits of the ODBC driver version and the Oracle client version (see chart Mr. Oehl posted). The 8.1.5.6 ODBC driver should go on an 8.1.5.x.x system, the 8.1.6.1 ODBC driver should go on an 8.1.6.x.x system. If you have an Oracle7 client, you'll need one of the version 2.5x Oracle7 ODBC drivers.
    Any ODBC driver should connect with any Oracle database. No need to match anything up there. You can determine the version of the database you're connected to by calling the ODBC function SQLGetInfo with the InfoType SQL_DBMS_VER.
    A little elaboration on version numbers
    - Oracle versions are generally 5 digits (i.e. 8.0.5.2.4, 8.1.5.1.1). The versions that you get on CD's are generally (always?) x.x.x.0.0 versions (i.e. 8.1.5.0.0, 8.1.6.0.0). The last two digits are incremented by periodic patchkit releases <ftp://oracle-ftp.oracle.com/server/patchsets/wgt_tech/server/windowsNT/>
    - ODBC drivers must report versions in 4 parts, each part having 2 digits (i.e. 8.01.05.05). Since we're lazy about typing extra 0's, we simplify this and just refer to the 8.1.5.5 ODBC driver.
    - The 8.1.5.x ODBC driver is built with the client libraries that ship with Oracle 8.1.5.x.x, the 8.1.6.x ODBC driver is built with the client libraries that ship with Oracle 8.1.6.x.x, etc. This is why I said above that you need to match the first 3 version numbers between Oracle client and ODBC driver to determine which to use.
    I hope this is more enlightening than confusing...
    Justin Cave
    ODBC Development
    null

  • Architecture mismatch between ODBC driver and application

    Hi,
    I have Windows 2008 server R2 OS which is 64 bit OS. I have created an SQL Server ODBC connections for my CMC database. I am trying to install Crystal Reports Server 2008 V1 SP3 but I am getting this "architecture mismatch between ODBC driver and application" error while choosing the ODBC datasource for CMS.
    I thought CRS 2008 version would easly be installed on Windows 2008 server as it mentioned on the installation guide.
    How do I resolve this issue?

    Moved to BOE Admin forum.
    CRS 2008 is a 32 bit app so all attachments, Printers, DB clients, etc. must all be 32 bit or support 32 bit applications.
    Use the 32 ODBC administrator in \windows\syswow64 folder.
    Thank you
    Don

  • Cannot perform a clean install of CF 10 - ODBC Agent and ODBC Server are not in Services - Win2k8 R2

    I've tried to perform a clean install on a Win2k8 R2 x64 server several times and I can't seem to get it to install.
    I was upgrading from CF 9, which took several attempts. I eventually got CF 10 working and running with the latest updates. But the server would only run for about 15 minutes and everything would come to a screaching hault. ColdFusion pages would fail to load with no error. The pages would hang and wait for the server to respond, which it never did. Restarting IIS would fix the problem.
    I have about 20 CF sites on the machine. I came accross an article that talked about pool sizes, etc. I ended up trying a few things with the Web Server Configuration Tool, and as I was adding/deleting servers, I got an error that some application unexpectedly quit, but it wasn't the wsconfig tool. This happened about 3 times as I was deleting servers that I had previously added. Then I tried loading the CF Admin and I got a 500.0 internal server error.
    So I bit the bullet and figured I would start all over again. I uninstalled CF 10... now there's nothing on the machine. Re-installed CF 10, and I get the same 500.0 Internal Server Error. I uninstalled, restarted, installed... same thing. Then I found an error in the event viewer that reads:
    The description for Event ID 0 from source ColdFusion 10 ODBC Server cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    ColdFusion 10 ODBC Server error: 0
    StartServiceCtrlDispatcher Error!
    Then I found out that neither the ColdFusion 10 ODBC Agent or the ColdFusion 10 ODBC Server have been installed... at least they're not showing up in the list of services. msconfig also shows that they don't exist at all. I tried reinstalling several times and I can't get them to show up.
    PS: It's 6:15 AM and I've been working on this since 10 PM last night. I NEED HELP! Thanks!

    Hello,
    Once you move your application from any prior version of ColdFusion to ColdFusion 10, you will have to tune your application, as the architecture changed from JRun to Tomcat.
    You can refer to the article http://blogs.coldfusion.com/post.cfm/tuning-coldfusion-10-iis-connector-configuration for parameters, that needs to be tuned appropriately to make CF connector works flawlessly.
    Hope this helps
    Regards,
    Anit Kumar

  • Using multiple ODBC Drivers and software

    I am tring to connect to both an Oracle 7.3.2 server and an Oracle 8.6.1 server on UNIX machines from the same Windows2000/pro machine. I currently have the 8.1.5 Oracle8i Client package installed and I can access the 8.1.6 server through the proviced Oracle ODBC driver. There is a bug in the ODBC test application but that is beside the point.
    Now, how do I connect to the Oracle 7.3.2 server too. Net8 can connect to an 8.0 server but tring it on the 7.3.2 locks it up dring the test connection function.
    The listener.log file on the oracle7.3.2 shows the connection just fine. I seems like I need an older client package for the oracle7 box installed. If so can I have both installed?

    Actually, it is the Oracle Universal Install application that is reporting this error, the file is there on my windows2000/pro system and can be listed as a file by several methods, DOS, Windows Explorer... The properties of this file show the user as having full access to the file in question so it doesn't seem to be an OS problem.
    I am just running the setup.exe program that came out of the zip file from this download. It spawn's the Java Oracle Universal Installer software. I am running nothing else during the install. It gives this error after you select Next after the File Locations screen.
    I know for a fact that the dll is there where it wants it to be so it must be an installation error. All I can think to do is to go back to 8.1.5 and apply all patch levels to 8.1.5.1.0. 8.1.5.1 claims to be contain all Oracle8i Client 8.1.5.0 patches in its readme file so I went strait to it. Read the other Patches that weren't inclusive in the 8.1.5.1.0 and they were for the server not the client according to their documentation, could the docs be wrong?
    On my 5th attempt after making sure on applications were sharing this file and shutting down a couple of times I just choose to continue with the installation. Now it shows the Patches in the Installed Products under the OUI (Oracle Universal Installer) but it when you actually run the Net8 client it says 8.1.5 on the about screen. The installed products list shows 8.1.5.1 so the two don't correspond.
    null

  • Oracle ODBC Driver and Numbers in ASP

    When I try to retrieve a number field from my RecordSet I allways get 0, allthow when viewing the field from SQL Plus I get another value.
    objRs is an ADODB.resultSet and state is a Number(5) field.
    I've tried:
    objRs("state")
    objRs("state").value
    objRs.Fields("state")
    objRs.Fields("state").value
    but they all return 0
    null

    1) As I recall, the problem of returning 0 is caused either by an outdated version of the ODBC driver or of the MDAC (Microsoft Data Access Components). Updated versions of the ODBC driver are available here on OTN and updated versions of the MDAC are available at <http://www.microsoft.com/data>.
    2) Versioning-
    To determine the version of the Oracle8 ODBC driver you should be using, simply match up the first three digits of the ODBC driver version and the Oracle client version (see chart Mr. Oehl posted). The 8.1.5.6 ODBC driver should go on an 8.1.5.x.x system, the 8.1.6.1 ODBC driver should go on an 8.1.6.x.x system. If you have an Oracle7 client, you'll need one of the version 2.5x Oracle7 ODBC drivers.
    Any ODBC driver should connect with any Oracle database. No need to match anything up there. You can determine the version of the database you're connected to by calling the ODBC function SQLGetInfo with the InfoType SQL_DBMS_VER.
    A little elaboration on version numbers
    - Oracle versions are generally 5 digits (i.e. 8.0.5.2.4, 8.1.5.1.1). The versions that you get on CD's are generally (always?) x.x.x.0.0 versions (i.e. 8.1.5.0.0, 8.1.6.0.0). The last two digits are incremented by periodic patchkit releases <ftp://oracle-ftp.oracle.com/server/patchsets/wgt_tech/server/windowsNT/>
    - ODBC drivers must report versions in 4 parts, each part having 2 digits (i.e. 8.01.05.05). Since we're lazy about typing extra 0's, we simplify this and just refer to the 8.1.5.5 ODBC driver.
    - The 8.1.5.x ODBC driver is built with the client libraries that ship with Oracle 8.1.5.x.x, the 8.1.6.x ODBC driver is built with the client libraries that ship with Oracle 8.1.6.x.x, etc. This is why I said above that you need to match the first 3 version numbers between Oracle client and ODBC driver to determine which to use.
    I hope this is more enlightening than confusing...
    Justin Cave
    ODBC Development
    null

  • Help w/ODBC driver and Oracle 7 (and maybe 8)

    Hi,
    Can anyone give me some information about using the Oracle ODBC driver for Windows? I know that it is no longer supported, but our application uses the Oracle 7 (7.3.4) client to connect to an Oracle 8i server. I have some reports written in a MS Access front end that connect through the ODBC (Oracle 7 driver) to the server.
    When I run a query that takes a long time to return results, I find the connection times out whenever I use Windows2000/NT but is fine when I use 98. I also have this problem when I use the Oracle 8 client/driver and I am sure to remove the check from the "Enable Query Timeout" box in the ODBC setup. Again, even with 8, no problem on 98, but timeouts still happen on NT/2000
    Is there a known bug out there on this and is there some way to fix it?
    Thanks for your help and regards,
    Eugene

    The Oracle ODBC driver is certainly still a supported product. There are old versions (i.e. the Oracle7 driver that are no longer supported).
    Which version of the Oracle 8 client & ODBC driver are you using? If you're using a older 8.0.x client and ODBC driver, those may not have been certified on Windows 2000. Can you connect to the database with SQL*Plus on the machines where the Oracle 8 client & ODBC driver are installed?
    Is it possible that the user that's running the Access front-end doesn't have sufficient privs to the %ORACLE_HOME% directory? I know NT & 2000 actually enforce this sort of thing, where 98 doesn't.
    Justin

  • MAXDB ODBC driver and MS SQL SERVER

    Dear SAP Community
      I need to set up a linked server from MS Sql Server to a MAXDB instance.
    Well, after installing the ODBC driver, I've set up a data source and then I could successfully establish a connection to my MAXDB from a sample Excel file using that datasource.
    Then I moved to Sql server in order to define a linked server with this data source, likewise.
    Therefore, in the first option as a provider I've selected "Microsoft OLE DB provider for ODBC drivers" then I specified that datasource for both Product Name and Data Source (same setting), however I got the following error.
    Could you kindly help me? I have almost spent 2 days on this problem without figuring it out, and any help or hint would be extremely appreciated.
    Many many thanks in advance
    Alberto
    The OLE DB provider "MSDASQL" for linked server "MAXDB2" reported an error. The provider did not give any information about the error.
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MAXDB2". (Microsoft SQL Server, Error: 7399)

    Just for your information,
    I have the connection tested and running, without errors: I had to force the authentication before actually creating it.
    However, I don't see any table at the moment, so it would be extremely appreciate if anybody could provide me with some hints, perhaps I do have to put a connection string, as I kept blank those settings (just set only Product Name and Data Source).
    Many thanks in advance!
    Alberto
    /****** Object:  LinkedServer [MAXDB3]    Script Date: 07/18/2011 17:10:29 ******/
    IF  EXISTS (SELECT srv.name FROM sys.servers srv WHERE srv.server_id != 0 AND srv.name = N'MAXDB3')EXEC master.dbo.sp_dropserver @server=N'MAXDB3', @droplogins='droplogins'
    GO
    /****** Object:  LinkedServer [MAXDB3]    Script Date: 07/18/2011 17:10:29 ******/
    EXEC master.dbo.sp_addlinkedserver @server = N'MAXDB3', @srvproduct=N'MAXDB3', @provider=N'MSDASQL', @datasrc=N'MAXDB3'
    /* For security reasons the linked server remote logins password is changed with ######## */
    EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'MAXDB3',@useself=N'False',@locallogin=NULL,@rmtuser=N'DBADMIN',@rmtpassword='########'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'collation compatible', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'data access', @optvalue=N'true'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'dist', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'pub', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'rpc', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'rpc out', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'sub', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'connect timeout', @optvalue=N'0'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'collation name', @optvalue=null
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'lazy schema validation', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'query timeout', @optvalue=N'0'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'use remote collation', @optvalue=N'true'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'remote proc transaction promotion', @optvalue=N'true'
    GO

  • How to add in ODBC connection and configuration for data connection

    Hello expert,
    on my computor, there is a oracle client for oracle 10g. now there is new oracle 11g installed , I want to create a ODBC connection to this new database. but when I create ODBC , I can't find server type for oracle 11g , there only has driver for oracle 10g. will you please tell me how to create ODBC for this new DB? will you please tell me where is the configuration file for data source on my computor?
    Many Thanks,

    918440 wrote:
    Hello expert,
    on my computor, there is a oracle client for oracle 10g. now there is new oracle 11g installed , I want to create a ODBC connection to this new database. but when I create ODBC , I can't find server type for oracle 11g , there only has driver for oracle 10g. will you please tell me how to create ODBC for this new DB? will you please tell me where is the configuration file for data source on my computor?
    Many Thanks,So, on this machine you have
    - Oracle 10g client (only), and in a seperate ORACLE_HOME
    - Oracle 11g rdbms
    First, the 10g client will connect quite well to the 11g database
    Second, the 11g database includes the basic client admin software, but the odbc drivers are not installed by default. You have to run OUI and choose 'custom' installation, then select 'windows components' from the list of available components.
    I've never wanted to install the odbc driver as part of the database installation. Only on remote client installations.
    What are you really trying to achieve?

  • JDBC-ODBC Bridge and Lotus Notes

    Greetings
    Got this message in the Event Viewer when testing my ODBC
    connection to a Lotus Notes DB:
    Description:
    The description for Event ID ( 0 ) in Source ( ColdFusion 8
    ODBC Server ) cannot be found. The local computer may not have the
    necessary registry information or message DLL files to display
    messages from a remote computer. You may be able to use the
    /AUXSOURCE= flag to retrieve this description; see Help and Support
    for details. The following information is part of the event:
    ColdFusion 8 ODBC
    Server@LOCALHOST,ErrorCode=3004,ErrorMessage=sched.swschd.1424.Internal
    error, an unexpected exception was detected..
    The Notes DB is on another server. I have installed NotesSQL
    and created an ODBC data source in Windows. I created the data
    source in CF admin pointing to the Windows ODBC. When I tested the
    connection I got the message above. I can connect to the Notes DB
    using the Notes Client installed on the server with Coldfusion.
    Any thoughts?
    Thanks

    >
    It's not a CLASSPATH problem.
    Did you create an ODBC DSN named test?
    You have two choices:
    (1) Create an ODBC DSN named test, OR
    (2) Rewrite your database URL as:
    String url = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\foo\\bar\\baz.mdb";
    Make the DBQ equal to the path to your Access database and it'll work.
    I prefer the second idiom, because it doesn't require setting up a DSN. - MOD
    Yes, I have created a DSN with the name 'test'.
    The second option "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\foo\\bar\\baz.mdb" -> is the part 'baz.mdb' the name of the my database. So it will be: "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\foo\\bar\\test.mdb";
    But what is the biggest different between those two? What is the advantage and the disadvantage?

  • JDBC/ODBC Bridge and getArray()

    I'm trying to use the getArray() method and I get the following:
    java.lang.UnsupportedOperationException
    I'm using the sun.jdbc.odbc.JdbcOdbcDriver
    Is there any other (free) bridge that allows you to use JDBC 2.0's getArray() method?
    Thanks,
    Michael

    I would look for a driver for the particular DBMS that you are using. Take a look here http://industry.java.sun.com/products/jdbc/drivers and here http://ourworld.compuserve.com/homepages/Ken_North/jdbcvend.htm
    Col

Maybe you are looking for