Instant Client/ODBC 10.2.0.4 doesn't use PK

Hi,
i got the problem in our application (VB6, JET-Engine, ODBC - old school access) simple statements doesn't uses primary keys (constraints). Instead it does a "Full Table Scan" and i don't know why.
More Infos:
It's a simple table called e.g. DOCUMENT, it's has a few rows, the important one ist DOC_RECID which was created like this...
CREATE TABLE DOCUMENT (
DOC_RECID number NOT NULL,
PRIMARY KEY (DOC_RECID));
The Access is via DYNASET, the statement like this "select * from document where doc_recid = 123"
Tested with Instant Client/ODBC 10.2.0.2, 10.2.0.4 and DataDirects Wired Driver
Edited by: user11230853 on 04.06.2009 07:35

Hi, thanks for answering...
- I don't know if it's not the instant client (i read there's a bug 4608183 in IC < 10.2.0.2, but that's just with double and float)
And it's doesn't make a "Fullt table scan" when i don't use the application (same statement)
Quote:
Note.257828.1 Ext/Pub Full Table Scan While Quering DATE Columns Using Oracle ODBC Driver:
Note.403198.1 Ext/Pub Full Index Scan in Execution Plan With Access and Double or Float as Primary Key:
Note.373129.1 Ext/Pub Slow Performance Exhibited by Oracle ODBC Against 10.2 Oracle Database:
- Yes it is the statement
- Yes there i updates the statistics myself, and ich also dropped the other indizies and created them again.
- There are 275.000 rows in the table and 58 columns (varchar2, number, datetime, 2 CLOBs and 1 BLOB)
Edited by: user11230853 on 04.06.2009 23:42

Similar Messages

  • Instant-client odbc installation

    I am trying to connect to remote database using R .So i downloaded client-basic-nt and instant-client -odbc from oracle .Unzipped both of them in the same folder and then tried to run odbc_install.exe.
    It doesn't give me an error but it i feel it just doesn't execute and escapes .First i thought that it did install the client but i cant see any sqlnet.ora files and tnsname.ora file .In fact i cant find oracle/network directory ?can anyone suggest me is there another set of installation i require before this step ?

    this is how I installed Instant client:
    1.downloaded oracle client extracted to C:\Oracle Client\
    all the files extracted are in the folder as you see here C:\Oracle Client\instantclient_11_2
    2.created a C:\Oracle Client\tnsnames.ora
    make sure you have the db connection details you want to connect to in this tns file
    3. set env. variables. (I hope you know how to do this in windows)
    Variable name : TNS_ADMIN Variable value : C:\Oracle Client
    Variable name : LD_LIBRARY_PATH Variable value : C:\Oracle Client\instantclient_11_2
    Variable name : Path Variable value : C:\Oracle Client\instantclient_11_2 (include this to already existing variable 'path')
    hope this helps. reply back if you have a question.
    KR

  • Help Using Instant Client ODBC on Linux

    I am familiar with using ODBC and visual basic under Windows. I would like to use the Oracle instant client ODBC under Red Hat ES3 within a C or C++ program to access an Oracle database.
    Where can I find documentation related to this:
    a) setting up an ODBC connection on Linux
    b) installing the Oracle instant client on Linux
    c) building an application with Oracle instant client ODBC
    Am I correct in assuming that any C/C++ ODBC code examples from windows could also be used on Linux.
    Thanks,
    Werner

    We are also interested in the very same thing. We are using third party compiler called SIMSCRIPT from CACI which has a module called SDBC for database connectivity. SDBC requires ODBC to be installed/configured. Our application is for Linux, therefore we are interested in using the ODBC driver on Linux clients to connect Oracle database servers on Linux and Sparc. I see the odbc related zip (for 10g) and rpm (for 11g) instant client files on the OTN Instant Client download page. How to install/configure odbc instant client? Is there a document/whitepaper/Metalink Note ?
    Thank you

  • Instant client ODBC package

    I'm trying to use the instant client odbc driver but seem to have a problem when calling SQLConnect. Here is my call to the function:
    SQLConnect(connHandle, database, SQL_NTS, username, SQL_NTS, password, SQL_NTS)
    The username and password are passed correctly but for some reason the database (SID) is not. When I specify the SID in TWO_TASK it works fine. Here is the connect string from cli.trc when not specifying the SID in TWO_TAKS:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=beq)(PROGRAM=/home/oracle/instantclient/bin/oracle)(ARGV0=oracletest3)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')(DETACH=NO))(CONNECT_DATA=(CID=(PROGRAM=db2xml)(HOST=XXXXXXX)(USER=root))))
    Any idea why I wouldn't be able to specify the SID in the SQLConnect function but I'm able to with TWO_TASK?
    Thanks.

    Are you only having this problem when using Instant Client, rather than the full client?

  • #Deleted in all fields using Instant Client ODBC

    Finally I got Instant Client ODBC installed and working. The trick seemed to be defining ORA_HOME, TNS_ADMIN, and the PATH to point to the Instant Client directory - and alphabetizing the entries in tnsnames.ora!
    Anyway, now in linking tables within MS-Access there is one particular table that displays "#Deleted" in all columns of all rows. If I link to the same table using the regular Oracle ODBC driver, everything displays as it should.
    I don't believe there is anything unusual about the table, no bigints. I show the columns below. Is there an explanation, and more importantly, a fix for this?
    ML_TRANSACTION_ID VARCHAR2 16
    ML_NAME_FIRST VARCHAR2 50
    ML_NAME_LAST VARCHAR2 50
    ML_ADDR1 VARCHAR2 64
    ML_ADDR2 VARCHAR2 64
    ML_CITY VARCHAR2 32
    ML_STATE CHAR 2
    ML_POSTAL_CODE VARCHAR2 10
    ML_COUNTRY VARCHAR2 50
    ML_PHONE VARCHAR2 25
    ML_EMAIL VARCHAR2 150
    ML_TRANSACTION_DATE DATE 7
    ML_TRANSACTION_FREQ NUMBER 3,0
    ML_TRANSACTION_AMT NUMBER 11,2
    ML_TRANSACTION_TYPE CHAR 5
    ML_REPEAT_ID VARCHAR2 16
    ML_REPEAT_DATE DATE 7
    ML_COMMENT VARCHAR2 512
    DONATION_ID NUMBER 22,0
    IS_PROCESSED CHAR 1
    FILEDATE_STRING VARCHAR2 10
    IMPORT_DATE DATE 7
    BATCHNO VARCHAR2 16

    Hi all. Just got ODBC working w/the instant client and would like to add what I've found with this with some quick testing.
    I created a new Access 2002 database and created links to a test database on our 8.1.7.4 db. Created a link to the same schema/table in the test 10g database. The table from 8x works fine. The table from 10g has the #deleted for all data. On tables from 10g where the primary key is defined using a numeric column (seq number generated) the data look fine. If the table has a text based PK then I get the #deleted for all rows. The same keys in the 8x tables work fine.
    Hope this helps in tracking down what might be amiss.

  • Instant client ODBC driver for Linux

    I had previously posted this under the ODBC forum, but didn't get a response there.
    I am familiar with using ODBC and visual basic under Windows. I would like to use the Oracle instant client ODBC under Red Hat ES3 within a C or C++ program to access an Oracle database.
    Where can I find documentation related to this:
    a) setting up an ODBC connection on Linux
    b) installing the Oracle instant client on Linux
    c) building an application with Oracle instant client ODBC
    Am I correct in assuming that any C/C++ ODBC code examples from windows could also be used on Linux.
    Thanks,
    Werner

    Hi,
    >>a) setting up an ODBC connection on Linux
    go to http://www.unixodbc.org/
    More information you can take a look on Note:404041.1 from Oracle Metalink
    >>b) installing the Oracle instant client on Linux
    You can take a look on this link below:
    http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
    Cheers

  • Where can I download the instant client ODBC driver for windows 7

    I upgrade to windows 7 and my instant client connecting to oracle from ms Access stop working. Is there any documentation on how it works on windows 7. I use instant client and odbc cleint for xp.
    Thanks

    11.2 is currently the only supported version on Win7, and you can get the instant client here:
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
    Hope it helps,
    Greg

  • Instant Client ODBC driver name

    On one machine the driver is called "Oracle in instantclient11_1" while on another it is called "Oracle in instantclient_11_2"
    Is the 11_1 and 11_2 just different versions of the client, or does this mean that this is my 2nd install of the client?
    Cheers,
    Daniel
    Edited by: Daniel L Williams on Jul 26, 2011 3:00 PM

    That is just the name of the directory where Instant Client was installed.
    Due to the way the Instant Client ZIP files are packaged, that usually contains the name of the version.
    I guess the reason is to avoid a name collision of ODBC drivers from different Oracle versions on the same machine.
    You can change the ODBC configuration if you want different names.
    Yours,
    Laurenz Albe

  • Instant Client with SQL Server - HELP!!

    G'day all...
    My goal is to connect to a server using Oracle Database version 8.1.7.4, from a server which does not have either Oracle Database or the full Oracle Client, preferrably using SQL Server DTS packages.
    With that said, I have installed instant client basic and instant client ODBC suppliment on our first development server using the instructions at the following link without any difficulties, although I do admit that I only have a tnsnames.ora file and not a sqlnet.ora file:
    http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html
    The trouble is, when I attempt to deploy it on any of our other servers it fails. When I attempt to connect using Microsoft ODBC Driver for Oracle in a DTS package in SQL Server I get the following error message:
    HResult of 0x8004005 (-2147467259) returned Unexpected error occurred. An error result was returned without an error message.
    (Note: This is seen on all other servers I've tried this on except for the first one).
    I have also tried setting up a System ODBC connection using the Instant Client driver but it returned this error message:
    Unable to connect
    SQLState=S1000
    [Oracle][ODBC][Ora]ORA-12705: invalid or unknown NLS parameter value specified
    In desperation I have also tried installing the Oracle RDB Driver and the Oracle 8.1.7.8.1.0 ODBC driver. Both appear to install successfully yet nothing seems to work.
    As far as I can tell,l these are the differences between the first server and the other servers:
    - First server is MS SQL Server 2000 version: 8.00.760, rest are 8.00.818
    - First server is running MS SQL Server Analysis services, rest are not
    - First server is MS Windows 2000 Advanced Server, rest are MS Windows 2000 Server
    So my first question: Does anyone know if the Instant Client tool works with SQL Server version: 8.00.818?
    My second question: Can anyone else suggest something that I haven't tried yet, short of installing the Full Oracle Client on this server? Not that I'm opposed to doing that, it's just that it's a last resort idea as of now...
    Please help - need to roll this into production soon...

    Kent, I see that many others have reported that error (doing
    a google search), but I see no ready answers. I saw something that
    reminded me of a connection string value that I've seen answer some
    problems. May be worth a shot for you: try adding this string to
    the connection string (in "advanced options") for your datasource:
    AuthenticationMethod=Type2
    If it doesn't solve it, remove it. But keep it handy in case
    it ever may help with some other problem.
    Here's one other possible answer for you:
    http://www.webmasterkb.com/Uwe/Forum.aspx/coldfusion-server/3206/SQL-Server-2000-Windows-A uth
    Sorry I can't be more clear for you.

  • Instant client 10.2.0.3 used with ms sql linked server doesn't work

    Hi,
    instant client version 10.2.0.3 doesn't work as microsoft sql linked server (both 2000, 2005) while 10.2.0.1 does. (tested by overwriting files in instant client directory - basic instalation, then restart mssql services) - the message is, that the oracle client is not installed when running sql (registration of linked server is ok).
    Is it a known issue or is there any workaround?
    (Windows XP, 2003, MS SQL 2005, MS SQL 2000, Oracle 9.2.0.6)
    Thanks,
    Pavel

    I installed oracle-instantclient-basic-10.2.0.3-1.i386.rpm on a redhat box to
    connect oracle database server 9.2.0.8.0 install on win box.Is there any other Oracle software installed on the RedHat machine?
    In which directory did you install Instant Client?
    Can you login with sqlplus?
    On the database server, I defined parameters like this :
    NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    NLS_NUMERIC_CHARACTERS='. 'This will have no effect on your problem - these are client environment variables.
    Before starting apache (lampp) I set Oracle environement like this :
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    export NLS_NUMERIC_CHARACTERS='. '
    My application worked very fine.
    BUT a few days ago (1 week), in my application, the date format display wrong,
    I have this format : DD/MON/YYYY even with
    export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
    before starting apache.The ancient question: Do you remember what you changed before it stopped working?
    So I stop my apache and try set Oracle environment like this :
    export ORACLE_HOME=/usr/lib/oracle/10.2.0.3/clientAs has been said, do away with that.
    export PATH=$ORACLE_HOME/bin:$PATHYou don't need that either.
    Except is might be nice to have the directory that contains sqlplus in PATH.
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHNow that surprises me.
    Normally, instant client shared libraries are not installed in a subdirectory.
    Does this "lib" directory exist?
    You should add the directory containing the *.so files to LD_LIBRARY_PATH.
    When I restart apache and test my application, an error php message occurs :
    Ocisessionbegin error while trying TO retrieve text FOR error ora-12705
    I check my oracle_home, I don't think I make a mistake?It seems that Oracle cannot find the instant client shared library libociei.so.
    This library must be found in LD_LIBRARY_PATH.
    In this context it would be interesting to know (as I asked above) if any other Oracle products are installed on this machine.
    Yours,
    Laurenz Albe

  • Odbc instant client configurtion on Intel core i7,Windows 7,64 bit system

    Hi all,
    I tried to install the odbc instant client on the above mentioned configuration following the instructions given in the instant client package after downloading from the link given below(Basic and odbc packages).
    http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
    But i cannot get this to work,i cannot find the microsoft odbc for oracle driver in the data sources in the system dsn tab.Did anyone come across such a scenario and make this work.It would be great if you can help find a way out of this.
    Thanks!

    You getting everything mixed up. First it's not the "odbc instant client", but the Oracle Instant Client. The Oracle Instant Client is not an ODBC driver but Oracle native drivers (OCI). Secondly the "microsoft odbc for oracle" driver is, as it's names implies, a Microsoft driver, not an Oracle driver so it's never going to be installed by the Oracle Instant Client. Finally you shouldn't need to use ODBC for Oracle. Use OCI to connect to Oracle databases.

  • Oracle Instant Client & Oracle 9i Client Co-existence

    I am having problems installing Instant client with existing Oracle 9i client. Some of our users have Oracle 9i client already installed. In this case, I need to do the following to make it work.
    1. Add the Instantcclient dir path
    2. Remove oracle_home from registry
    3. SET NLG_LANG and TNS_ADMIN env variables.
    The main issue we are facing is with TNS_ADMIN. When you set this variable to Instantcclient dir , then both Oracle 9i and InstantClient 10g started using the tnsnames.ora in instant client dir. This is not acceptable , as some of the might intend to use Oracle 9i network/admin/tnsnames.ora file when they use Oracle 9i ODBC driver.
    Can you please tell me how to install/configure Instant client 10g with an existing Oracle 9i client. Also, can you send me the ODBC Connection string thats doesn't use tnsnames.ora.
    Your help is appreciated.
    Thanks

    Metalink note 90419.1 describes how to connect to a database without using tnsnames.ora. eg
    sqlplus system/manager@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=tiger5.com)(Port=1521))(CONNECT_DATA=(SID=V815)))
    I cannot use this method when creating an ODBC DSN. I tried the Oracle9i ODBC driver, the Microsoft ODBC driver for Oracle but not the Oracle10g instant client ODBC driver. I suspect that the long string exceeds the ODBC specification.
    I have had some success using a MS-DOS Batch File to launch an application that required the Oracle7 client long after it had been removed from the registry. This could work for the Oracle10 Instant Client
    REM set up the environment variables
    REM these are local to this application
    set ORACLE_HOME=%CD%\oracle7client
    set TNS_ADMIN=%ORACLE_HOME%\NETWORK\ADMIN
    SET ORA_NLS32=%ORACLE_HOME%\NLSRTL32\DATA
    set NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    set API=%ORACLE_HOME%\DBS
    path=%ORACLE_HOME%\BIN;%PATH%
    REM run the application
    DBOUTIL.EXE

  • Connectionstring to be used in ASP for instant client ??

    Hi,
    I'm trying to use oracle instant client for one of my projects.
    I have installed basic, sqlplus and ODBC for instant client.
    I have set all the environment variables. I have the tnsnames.ora and sqlnet.ora
    So far I have succeeded in connecting to a DB Server through sqlplus. I also created a DSN successfully using the driver "Oracle in instantclient10_2" which gets installed when I install instant client ODBC. These indicate that mos tof settings are right. It is good so far.
    Now I'm trying to use a connection string in ASP which connects to a DB server using this instant client.
    I need one DSN connection string and one DSN-less connection string.
    So far I have tried the following:-
    1)
    Driver={Oracle in instantclient10_2};Server=<Service Name>;Uid=<UserID>;Pwd=<Password>;
    This resulted in the error:-
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Oracle][ODBC][Ora]ORA-12560: TNS:protocol adapter error
    2)
    StrCon.Open "Driver={Oracle in instantclient10_2};Dbq=<Server IP address>:<port>/<serviceName>", "UserID", "Password"
    This resulted in the error:-
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Can you please help me out with these?
    Thanks in advance
    Jai

    Hello,
    I tried to use either of the 2 connections you gave but I still get an error:
    DSN
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'
    Specified driver could not be loaded due to system error 5 (Oracle in instantclient10_2).
    DSN-less Connectionstring:
    Specified driver could not be loaded due to system error 5 (Oracle in instantclient10_2).
    Thanks in advance,
    Do you have an idea as why this happens?

  • Instant client for SQLLDR

    I see Oracle provides several instant client downloads. Is there a SQLLDR instant client, or a lite version that doesn't require the whole Oracle client for Linux (both 64 and 32 bit)?

    yes - i am sure - things to consider:
    the sqlldr needs to be from the same O/S (if obv, sorry)
    you need to copy the contents of the rdbms/mesg/ folder so the status messages can be displayed.
    make sure you've got a ln to bin and lib.
    here is a typical instant client folder contents:
    rdbms/mesg/ (directory)
    network/admin/tnsnames.ora (directory & file)
    lib     ->     ../instantclient_10_2
    bin     ->     ../instantclient_10_2
    install          (directory)
    libclntsh.so.10.1
    libociei.so          
    libnnz10.so          
    libocci.so.10.1          
    libclntsh.so.10.1          
    ojdbc14.jar          
    libocijdbc10.so          
    classes12.jar          
    sqlplus          
    libsqlplus.so          
    libsqlplusic.so          
    glogin.sql          
    sqlldr          
    hope this helps; let me know
    also - i still have no exception or idea if Oracle Support will support this.

  • Win7 x64 - how to configure 32-bit Instant Client

    I am having difficulty getting Instant Client to establish an ODBC link to Excel 2007, a 32-bit app.  My OS is Windows 7 Professional x64 on a Windows 2008 domain.
    I installed Oracle 11g Client 64-bit (11.2.0.3.0), Instant Client Basic 64bit, and Instant Client ODBC 64bit.  Path and TNSNAMES parameters were set correctly, and I was able to use Windows Admin Tools to successfully establish a connection to PowerSchool's Oracle database.  So far, so good.
    When I tried to use this connection in Excel 2007, I got an error message stating that "the specified DSN contains an architecture mismatch between the Driver and Application."  More research led me to conclude that I need to install 32-bit Instant Client Basic and ODBC.
    So I downloaded the appropriate versions of both of these, installed it into c:\ora\<username>\product\11.2.0\client32 (a sibling to the 64-bit client_2 folder), and now I'm stumped.  Running windows\sysWOW64\odbcad2.exe, I see what I think is the 64-bit client, which gives an error message about incompatible architecture (again, 64 vs 32 bit).
    What parameters need to be set with odbcad2.exe, and how?  Do I need to run the odbcconf.exe program in sysWOW64?  I tried adding the ...\client32 folder to PATH; no effect.  Is this described in excruciating detail anywhere?

    Ferdimar,
    This problem sounds like the server is incorrectly configured. You can try verifying that it is setup correctly for the TNS listener.

Maybe you are looking for

  • Maxl Import Dimensions

    Hello, I need implement a maxl script to load member in essb 9.3.1 LOGIN user pass ON server; IMPORT DATABASE app.db DIMENSIONS From LOCAL TEXT DATA_FILE 'G:\\Produc.txt' ---client folder USING SERVER RULES_FILE 'PrdPearl' ON ERROR APPEND TO 'G:\\er_

  • 10.1.3 Cluster setup on Linux

    Hi there, Can someone successfully setup Oracle 10.1.3 cluster on Linux? Unlike 10.1.2, this release don't have Infrastructure and Metadata Repository installtion type. I just wonder if this release provides us to setup a cluster enviornment. Thanks,

  • JSP using BC4J with MS SQL Server

    I use JDevelop to develop my JSP apps with BC4J. When I Run a JSP app, the error happened. The error message is [Microsoft][SQLServer 2000 Driver for JDBC]Can't start a cloned connection while in manual transaction mode. Who can tell me what the erro

  • Printing in Linux

    Hi all, I've tried to print using Java with Ubuntu and with redhat and never succeeded. The question is: has anybody get success in printing with java+linux? I use CUPS and it works when printing pdfs, text and OpenOffice.org documents. But when I tr

  • AIX - Oracle Application Server  10.1.3 Sofware

    Hi All, We downloaded the AIX version Oracle Application Server 10.1.3 from Oracle WebSite and tried installing the same in our AIX Machine. But we are getting an error saying that the file has been corrupted. We downloaded using download director fo