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?

Similar Messages

  • Instant client basic package usages needed

    Hi,
    I have installed oats in my laptop in windows xp operating system which is using the default database 10g express edition that comes along with the installation process of oats.
    Now i want to use the 11g database which is in oel5 in my desktop
    Both of the system are in a same network
    in order to connect,oats and 11g, the instant client basic package is needed and also the odbc supplement and i have downloaded both of the packages and extract them to the same directory in windows xp and the necessory changes have been made in system environment variable also
    when performing the system DSN test process it is failed and the error is occured TNS no listener
    help me pls

    I recommend that you do not install Instant Client on your laptop at all.
    Instead, use the Oracle client that is included in the 10g server.
    It is difficult to have more than one Oracle installation on one Windows machine, because Windows is not designed as a multi-user OS.
    All you have to do is change the connection string to point to the other database (the documentation of oats, whatever it is, should tell you how).
    Yours,
    Laurenz Albe

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

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

  • 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

  • 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

  • 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 with ODBC driver

    Hi, I have problem with the instant client version 10.2 with ODBC driver. I have the instant client base package and ODBC package installed in my computer. the Oracle ODBC driver did appear in the ODBC driver list, when I test the connection with driver, it gives error "Unable to connect, SQLState=08004 [ORACLE] [ODBC] ORA-12154 TNS could not resolve the connect identifier specified" I have another computer which has Oracle 8i client installed and works fine. I copied sqlnet.ora and tnsnames.ora to the instantclient installation folder, same error appears. here is the contents of sqlnet.ora:
    # SQLNET.ORA Network Configuration File: c:\oracle8i\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    here is the contents of tnsname.ora:
    # TNSNAMES.ORA Network Configuration File: c:\oracle8i\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    barkeep =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = 1521))
    (CONNECT_DATA =
    (SID = barkeep)
    I test the host connection with telnet, it works.
    can anybody out there walk me through how to set up instant client?
    thanks.

    Thanks Sanjay - I had this problem and your suggestion fixed it: setting the TNS_ADMIN did the trick.
    Note: This was on a development PC which already had the Oracle Client drivers installed (so I already had a different TNS_NAMES.ORA in that installation).
    It is worth noting that on my target deployment machine which DOESN'T have the Oracle Client drivers (just the InstantClient + Instant-ODBC) I didn't need to set TNS_ADMIN
    I'm using the 11g InstantClient (11.1.0.6.0 32 bit)
    Hope this helps someone, and thanks again Sanjay for posting :o)

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

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

  • Oracle instant Client and memory

    Hello everybody,
    I have just installed the Oracle Instant Client on my Linux server (Redhat distibution), I recompiled PHP (4.4.2 version) with the oci8 extensions and I reboot Apache (1.3.34 version)...
    In short, the installation of OIC goes perfectly (No error messages...), and I can request a remote Oracle server from a PHP file. (All this, for one PHP script that I use only once a day, to load data in a MySQL table).
    However, since I installed the OIC, my Apache processes exceeds the 200 MB and my server has a commit memory more than 2GB (sometimes it goes until 5GB).
    Is it a problem that can come from the OIC ? Maybe, a parameter could fix that problem ?
    Thx in advance.
    Maat

    If you can't upgrade from PHP4, you should upgrade at least the OCI8
    extension. All PHP 4 releases have a very, very old version of OCI8.
    Steps to upgrade are given in the free Underground PHP and Oracle Manual
    The Instant Client Basic package uses a chunk of (shareable) memory
    for all its NLS data. The Instant Client Lite package uses a smaller
    footprint.
    Make sure you know what you are measuring and whether what you are
    seeing actually has an effect on performance.
    -- cj

  • 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

  • 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

  • Help on reading from a file !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    hi there the following is a method that reads lines from a file and save them to a string. public void readFrom() StringBuffer sb = new StringBuffer(); String line = ""; while (true) try line = br.readLine(); sb.append(line);           sb.append(NEW_

  • HT201401 how to unlock my iphone 4s

    Help!!!!          How do I unlock my iphone 4s without having to restore it????

  • Use bean in jsp, please help me out

    Hi all, As a beginner in jsp I want to use a bean into my jsp page. But this bean is sourcing from a old applet (i've converted the code applet into beans code), and should return a chart (grpahics). Here is the heart of my problem : how can i replac

  • Error while loading throug sql loader

    Hi All, Trying to use sql loader in order to laod csv format data. However, during load, I come across with errors. Please find below my log,control and datafile. ------------Ctl File---------------- load data discardfile 'c:\dis.log' infile      'c:

  • Using pdf in inner pages

    I am have a page in my website http://www.etcourses.com/5-things-to-consider-before-taking-interior-design-courses/ that i would like to post some pdf files.. how to embedd?