Bug in Oracle ODBC

Hi,
I tried to use ADODB.Command to call a stored procedure in a Oracle 9i.
when I try a procedure with many parameters and the name I put lower case letters in property CommandText (eg com.commandtext = "Insert_Person")
the web server (IIS) hangs and only a reboot solves.
Flavio

Hi,
I just found out what my problem was.
Oracle ODBC driver 8.1.6.3 does not support
positioned updates. For that you must use
the cursor library. When I did my test
in Windows95, I had a resource problem; the
cursor library could not be loaded. The
Oracle ODBC driver 8.1.6.3 probably uses
more resources than older versions !!
-- Andre W.
null

Similar Messages

  • Oracle ODBC known issues/bugs

    Hi
    Where can I find a list of known issues with Oracle ODBC driver
    Thanks
    Inder

    Assuming you have a support contract, you can query the bug database from Metalink.
    Justin

  • Oracle ODBC error when inserting "end" or "begin"

    I think I may have found a bug in the Oracle ODBC driver....
    I am using version 8.01.73.00 of the Oracle ODBC driver, and my VB application is trying to insert a record into a table using ADO. All works fine, until the user tries to enter the word "end", or "begin" into any of the text (CLOB) fields. The following code shows how I am doing an insert:
    Dim cmd As ADODB.Command
    Set cmd = New ADODB.Command
    cmd.ActiveConnection = "DSN=Envoy;uid=Envoy;pwd=significance;"
    cmd.CommandText = "Insert into Mon_Reading (Creation_User, Creation_Date, Reading_Date, Param_ID, Mon_ID, Value, ApplicableYN, Site_ID, Prev_MEter_Value, MeterResetYN, UOM_ID, LimitsApplicableYN, Lower, Upper, Limit_UOM_ID, ApprovedYN, Comments ) Values ('Matttt', '01-jan-2002', '01-jan-2003', 1, 1, 1., 'Y', 1, 0, 'N', 1, 'N', 0, 0, 0, 'Y', ' end ');"
    cmd.CommandType = adCmdText
    cmd.Execute , , adExecuteNoRecords
    As you can see, the text " end " is being added to the comments field, a CLOB data field. When executed, this causes an Oracle ORA-0911 error (invalid character), and the insert fails.
    Heres the weird thing - if you change the word "end" to anything else apart from "begin" - it will work!!! Also, it only fails if you wrap the "end" in spaces?!!?!! Users that reported this were entering comments like "this is the end of June" - this would have caused the error. If you copy teh failed SQL and paste it into SQLPlus, it executes OK.
    I can only presume this is an Oracle bug. Anyone else have an ideas? What can I do as a workaround?

    First thought would be to grab the updated 8.1.7.x ODBC driver (8.1.7.7 IIRC). Perhaps this problem has already been solved.
    Justin

  • Oracle ODBC driver: NO_DATA_FOUND blocked

    Hello,
    I found that NO_DATA_FOUND exceptions thrown inside stored_procedures are sometimes not propagated to ODBC errors. This happens with the Oracle ODBC driver, but not with the MS one (the MS one does propagate the exception/error).
    Test-Procedure:
    Create or Replace Procedure throws_exception(p1 in number)
    IS
    BEGIN
    raise NO_DATA_FOUND;
    END;
    If I call this stored_procedure the ODBC call will return with no errors:
    Begin THROWS_EXCEPTION(1); end;
    Versions:
    - oracle server: 10.02
    - oracle driver: 10.02
    - mirosoft driver: 2.575
    Is this a known bug in the oracle ODBC driver, or is this a bad setup, etc?
    If this is a bug, it is a very inconvenient one, because basically it means your stored_procedure can fail completely silentely. It implies that the use of the oracle driver is completely unreliable.
    I have copied this text from another user, he got no answer to this :-(
    Thanks
    Joachim Paulus
    Message was edited by:
    user517727
    Message was edited by:
    user517727

    Any answers? Same problem on 10.2.0.2.0

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

  • "[Oracle][ODBC]Restricted data type attribute violation

    Hi,
    I have a program that use the database object,TQuery in Borland C++ Builder 5 to access information on an Oracle8i table. The program was working fine until I updated the Oracle8i ODBC driver from 8.1.5 to 8.1.6.
    I am getting the error :
    "[Oracle][ODBC]Restricted data type attribute violation."
    I can't see what I have done wrong with the SQL statement in the query as it is only a select * from table statement. Can anyone help me with this ? Thank in advance.
    C.M.

    I think I had found what is causing the problem. It looks like the latest Oracle ODBC driver doesn't like any table that
    consists of any 2 fields of type NUMBER but with 1 of them having
    NOT NULL. >example : >Name Null? Type>-------- --------
    ----------------- NO1 NUMBER>NO2 NOT NULL NUMBER>I think this is
    a bug. >null
    I am not sure what you mean by the statement
    "the latest Oracle ODBC driver doesn't like any table that
    consists of any 2 fields of type NUMBER but with 1 of them having
    NOT NULL"
    Do you mean there cannot be two not null number columns in a
    table witht he latest Oracle ODBC driver.
    I am running into the same problem as you did. I am getting a
    restricted type violation, and have isolated the column and it is
    a number(x,y). I have the the Oracle Client 8.01.06.00 driver
    and I have PowerBuilder8.0 as the GUI.
    Any help would be much appreciated,
    Thanks in advance,
    Khanh

  • Oracle ODBC Driver version

    Hello,
    I installed the latest ODAC version (ODAC 11.2 Release 3 and Oracle Developer Tools for Visual Studio (11.2.0.2.1)) on my Windows system.
    However, when I check the ODBC driver version in ODBC Data Source Administrator I see:
    Orcale in OraClient11g_home1 - version 11.01.00.07
    I was expecting version 11.2.0.2.0
    How can I check what Oracle ODBC driver version I have installed?
    Thank you,
    M.R

    Problem solved, the driver has been updated but not the version number+ (there is a bug filled for that).
    Edited by: user7047382 on Jan 12, 2011 9:51 AM

  • Oracle ODBC Driver - latest version

    Hello,
    I installed the latest ODAC version (i.e. ODAC 11.2 Release 3 and Oracle Developer Tools for Visual Studio (11.2.0.2.1)) on my Windows system.
    However, when I check the ODBC driver version in ODBC Data Source Administrator I see:
    Oracle in OraClient11g_home1 - version 11.01.00.07
    I was expecting version 11.2.0.2.0
    Also, if I create a new ODBC data source and click on Test Connection -> About, I get:
    Oracle ODBC Driver
    Version 11.1.0.7.0
    Copyright @ 1996, 2007 Oracle
    I am really confused, why I cannot see the latest 11.2.0.2 version installed???
    Thank you,
    M.R

    There's a bug filed for that. The driver is actually 11202 (you can check the build date), but the version number didnt get rev'd.
    Greg

  • Using Oracle ODBC Gateway connecting to a remote Oracle database

    Oracle 11gR2
    RHEL 6.4
    Has anyone use the Oracle ODBC Gateway to connect to another Oracle database?  Any issues with that configuration?  Where do I get the ODBC drivers for Linux?
    (I know, "why not use a dblink?" -- well that would be against company security policies)

    Hi,
       From the Oracle point of view we support using DG4ODBC for Oracle to Oracle connections. However, we have not actually tested it as DG4ODBC is primarily designed for access to non-Oracle databases.
    How DG4ODBC will work between Oracle databases depends on the ODBC driver and what that supports. You will need an ODBC Oracle driver which you can get from various suppliers including Oracle but also vendors such as DataDirect, Easysoft etc. You could try a Google search.
    You say you do not want to use database links but that is how DG4ODBC is used, You cannot do -
    sqlplus user/password@dg4odbc_oracle
    Once Dg4ODBC is setup and configured as in this note - if you are using Linux 64-bit -
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    then in the Oracle database you create a database link and select from tables in the other Oracle database -
    select * from table@dg4odbc_db_link ;
    Regards,
    Mike

  • Problem with Oracle ODBC Driver on Windows 7

    Hi,
    Please help with this problem I have with a Windows 7 machine. I have installed Oracle Client 11g on my Windows 7 machine but when I want to create an ODBC Data Source, I cant find any driver for oracle. How can I resolve this issue? I need the data source for an application to work and I cant figure out what is happening. Someone please help!

    There's a dedicated Oracle ODBC forum:
    ODBC
    As this forum deals with connections from Oracle to foreign data stores it would be better to close this thread and post it again in the ODBC forum.

  • How do I install just the Oracle ODBC drivers on a Windows NT workstation?

    I want to access a remote Oracle database on my network via ODBC
    from Visual Foxpro. When I try to set up the ODBC data source,
    I'm told it doesn't exist. I downloaded the ODBC driver
    (ora8175.exe) from Oracle, but I cannot get it to run.
    I am new to Oracle, so any assistance you can provide will be
    greatly appreciated. (I am very familiar with VFP).
    Thanks,
    Jeff

    You have to install the Oracle client in order to be able to use
    the Oracle ODBC driver. The ODBC driver relies on, among other
    things, the network communication libraries of the Oracle client.
    If you're willing to pay for an ODBC driver, Merant (now
    DataDirect I believe) has an ODBC driver that doesn't require
    the Oracle client to be present. I've not used it, so I can't
    recommend it, but it's an option.
    Justin

  • Oracle ODBC  - Internal Error - unable to initialize NLS during driver load

    I'm having some trouble with my ODBC connections which I hope someone can please help me with!
    About 6 weeks ago all was working as normal.
    As far as I know there have been no updates to the ORacle DB, the Windows XP operating system or the ODBC Drivers.
    Today when I opened access and visual case 2 to connect to Oracle I was at first greeted with a:
    unable to connect SQLState=IM004 SQL_HANDLE_ENV
    error. ODBC also kept crashing.
    I restarted the computer and was confronted with a different error:
    odbc SQLSTate 08004 ORA 12154 TNS could not resolve the connect identifier specified
    I was able to fix this error by setting the environment variable TNS_ADMIN in windows xp environment variables. I'm extremely confused about how this happened though as it was working and I don't think anything has changed.
    I was then able to connect to the database via Microsoft Access but when I opened Visual Case 2 and tried to make an update, I was confronted with the following error:
    Oracle ODBC Driver - internal error - unable to initialize NLS during driver load
    I looked in the registry at:
    HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraClient10g_home1
    HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraClient10g_home2
    HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraDb10g_home1
    and NLS_LANG was set to "AMERICAN_AMERICA.WE8MSWIN1252" in all 3 places.
    (Though KEY_OraClient10g_home2 only had 4 entries as opposed to KEY_OraClient10g_home1's 13 entries)...
    Since I made those changes I can no longer connect through Access.
    I just receive a ODBC - connection to 'xxx' failed
    Advice greatly appreciated!!!!
    Edited by: user11150264 on Aug 25, 2009 10:21 PM

    Actually it sort of does...
    I switched the ODBC connection to use instant client and now it's all working again.
    The biggest mystery is what changed to make it suddenly stop working the old way...

  • Error in connecting oracle odbc driver 9.1.0.8

    java.SQLException:[Microsoft][ODBC Driver Manager][Driver's SQLAllocHandle on SQL_HANDle_ENV failed
    this error is raised when connecting oracle 9i database using oracle odbc 9.1.0.8 driver. please help me                                                                                                                                                                                                                                                                                                                                                                                                                               

    java.SQLException:[Microsoft][ODBC Driver Manager][Driver's SQLAllocHandle on SQL_HANDle_ENV failed
    this error is raised when connecting oracle 9i database using oracle odbc 9.1.0.8 driver. please help me                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Ms-access XP front-end and oracle ODBC driver

    Hi all,
    I need to set up 5 workstations with ms-access front end accessing an oracle database through Oracle ODBC 9.2.0.5.0 driver and linked tables.
    My main concern is to learn about any issues that may limit what can and can�t be done through access as opposed to an oracle client. I found out that the maximum size of an access XP database is 2GB, but I have not found accurate information as to the maximum number of records ms-access can handle per table. This would be of critical importance to me because the tables I'm working with may eventually hold up to hundreds of thousands of records.
    Concurrency control is also an important topic since 2 or more of the clients may at some point read or write information on the same tables.
    Answers to these questions and any other issues of special importance would be greatly appreciated.
    Thanks a lot,
    JP.

    Just seen this message you had posted to OTN. I am currently looking for some sample codes developing applications using MS Access as front end connected to Oracle database. I appreciate if you can provide me some sample codes that has a master-detail-relationship type of access form that performs an inserts into the master and detail table. Thanks a lot.

  • MS ODBC or Oracle ODBC driver?

    Can anyone tell me which is the correct driver to use when developing front end MS Access 2003 to retrieve and update data on a Open VMS platform with Oracle 8.1.7.3 database?
    I have serval Access 2000 databases that run on most WinNT or W2K clients with a couple of W2K Dell exceptions. These Access 2000 db's connect to the Oracle database using linked tables and SQL pass-through queries that work with ODBC Manager-DNS system setup using the Microsoft for Oracle ODBC driver.
    Now we are upgrading to Office Pro 2003 so new W2K images have been setup with Oracle 8.1.7 Client. SQL*Plus works on these clients but when I create the System DNS the Access databases return an error "ODBC connection failed". I can however connect with a pass-through query using Oracle's ODBC driver. Not enough time in roll-out plan to change the ODBC connection string in hundreds of Access SPT queries.
    Please help!
    Bonnie

    if you still need assistance reagarding this...email me directly..
    shah
    null

Maybe you are looking for

  • Bad encoding in jsf

    Hi. I used this tutorial - http://www.netbeans.org/kb/55/vwp-inserts_updates_deletes.html#05 to learn how to build database applications in Visual Web Pack. Everything is fine, but I have one problem - I am using Mysql 5.0.22 as the database server a

  • Oracle 9i Lite and CPU problems

    Are there any known problems with 9i Lite clients on Celeron or other CPU models ? I know there were JVM related problems with one of the Oracle Universal Installers (been there) but this problem occurs when running msql to access the polite db. eg.

  • [SOLVED] Hibernate Windows or boot Archlinux, can't do both.

    Hi, I couldn't hibernate Windows, when I tried to the computer locks up. But I fixed it executing "diskmgmt.msc" and marking the C: partition as active. Now I can hibernate, but when I power on the computer I can't see syslinux boot screen. What can

  • Consignment issue Problem

    The problem we encounter is that in the consignment issue order which is created by reference to fill-up order, every time issue order will set the quantity of the material to be the quantity in referred fill-up order. For example, if fill-up order h

  • Component and text not visible in dashboard

    Hi expert, After launching Dashboard in BI Portal Calender component and Button text and normal was not displaying. Dashboard Design layout component is displayed. After launching calender component text,button text,normal text was not displaying the