Is my Instant Client Working or is it User Error?

From a help desk standpoint, How can I help my users to eliminate that it isn't the software and it is probably a user error? In the past I have used TNSPING to verify that at least the tns entry is being used and is communicating with a listener, but that isn't in an instant client so what do the Instant Client Experts do for testing the software?

My favourite tool is a client trace - it's no good if you have to help somebody over the phone, but it is the best diagnostic tool if you can get your hands on the machine.
It takes some practice to read Oracle client traces; if you have access to Metalink, note 156485.1 will prove helpful for you.
Yours,
Laurenz Albe

Similar Messages

  • Using SQLDriverConnect with special characters in password fails, same info with ODBC (Oracle instant client) works fine

    Hi,
    on a windows 2008 machine that has the Oracle instant client 11_1 installed (11.01.00.06) i am calling SQLDriverConnect in the following way:
    std::string str = "Driver={Oracle in instantclient11_1};Dbq=//10.10.101.66:1521/orcl;;Uid=myUser;pwd=a;b";
    odbcRc = SQLDriverConnect(hdbc, NULL, (SQLTCHAR*)str.c_str(), str.size(), (SQLTCHAR*)szConnStrOut, 1024, &cbConnStrOut, SQL_DRIVER_NOPROMPT)) == SQL_ERROR);
    as long as the password contains no special chars (namely semicolon) it works fine. but when I try to use special chars in the password It stops working, with an invalid username/password error.
    State: 28000 Native error: 1017 Message: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied
    i tried different variations of adding " (\") over the password, over the entire pwd=a;b or braces { but nothing seems to work.
    the thing is that using ODBC works! what I did was:
    open ODBC, go to System DSN tab, add "Oracle in instantclient11_1", then fill the following information:
    Data source name: Anything
    TNS Service Name: //10.10.101.66:1521/orcl
    User ID: myUser
    then i press test connection, enter the password "a;b"
    and it works!
    I cannot figure out what's my problem.
    Thanks,
    Roy.

    I've created your test table in my Oracle database using this extra character and I'm able to describe it properly.
    SQL> desc test;
    Name Null? Type
    ATTIVITÀ VARCHAR2(40)
    My character set being used is:
    SQL> select * from v$nls_parameters;
    NLS_CHARACTERSET
    WE8ISO8859P15
    NLS_NCHAR_CHARACTERSET
    AL16UTF16
    NLS_LENGTH_SEMANTICS
    BYTE
    So as long as it doesn't work for you in your native Oracle database I don't think it would work with DG4ODBC. So yes, it would be best to log a service request so that the Oracle database support can check out the NLS issue.
    Edited by: kgronau on Sep 28, 2011 9:21 AM
    To be complete here the describe of the MySQL table native and using DG4ODBC:
    mysql> create table TEST (attività Varchar(40));
    Query OK, 0 rows affected (0.00 sec)
    mysql> desc TEST;
    ---------------------------------------------------+
    | Field | Type | Null | Key | Default | Extra |
    ---------------------------------------------------+
    | attività | varchar(40) | YES | | NULL | |
    ---------------------------------------------------+
    1 row in set (0.00 sec)
    SQL*Plus: Release 11.2.0.2.0 Production on Wed Sep 28 09:20:17 2011
    SQL> desc "gateway"."TEST"@MYSQL_DG4ODBC_EMGTW_1122_DB;
    Name Null? Type
    attività VARCHAR2(80)
    So in general it should work.

  • Oracle instant Client and unixODBC for Linux has Error

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    Apologies - thought it was a database to database connection that you were trying to create.
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directoryThe readline library is in package readline-4.3-13 on RHEL4 and in readline-5.1-1.1 for RHEL5 on my servers (minor version number are of course dependent on the kernel version used).
    This is also not an ODBC or Oracle issue. It seems that isql is using rlwrap or similar - this requires the readline library. And possibly LD_LIBRARY_PATH to be set too.

  • 64-bit Instant Client for Oracle 9i

    Based on what I've read here, it looks like there are no Instant Clients for prior to 10.1.
    - Is this correct?
    - Does a 10.1 Instant Client work for accessing 9i databases?
    Thanks

    Yes, and yes. Except that the database should be 9.2, as connections to 9.0 are desupported.
    Yours,
    Laurenz Albe

  • Solaris PHP 5.2.12 Oracle Instant Client Error

    We are testing a Oracle Solaris Express 11 Server with the standard Apache and PHP installation. But we need the Oracle Instant client and the oci8 module enabled for our company applications.
    We did this by using ./pecl install oci8 in /usr/php/5.2/bin. We set the LD_LIBRARY_PATH in /etc/apache2/2.2/envvars
    a 32bits solaris (x86) version of the Oracle Instant Client 11.2 is installed in /opt/oracle/instantclient_11_2 with the symbolic link made.
    envvars:
    LD_LIBRARY_PATH=/opt/oracle/instantclient_11_2
    ORACLE_HOME=/opt/oracle/instantclient_11_2
    ORACLE_BASE=/opt/oracle/instantclient_11_2
    he oci8 module installed and php loads it.
    phpinfo(); output:
    oci8
    OCI8 Support enabled
    Version 1.4.6
    Revision $Revision: 313688 $
    Active Persistent Connections 0
    Active Connections 0
    Oracle Run-time Client Library Version 11.2.0.2.0
    Oracle Instant Client Version 11.2
    Temporary Lob support enabled
    When we first view a site there is no problem but very randomly we get the following error:
    OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries*
    but when we use echo getenv("LD_LIBRARY_PATH"); in php the output is "/opt/oracle/instantclient_11_2"
    now the strange this is as randomly as it appears it disappears we can load the web-page without problems and after a couple of clicks the error is back. if we wait a coupe of seconds you can reload the page and it loads normaly.
    The error appears to be random and we get it over and over agian, it comes and goes after a cpl of pages are viewed. It seems to appear more when there are multiple users browsing on the website.
    Is there a fix for this? is this an known bug? It seems strange the instant client works some times and fails a second later without a change in the system.
    Hope someone can help us.
    Edited by: user10978378 on Sep 3, 2011 4:20 AM

    Solved it by compiling apache 2.2.20 into 64bits using:
    CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure enable-so enable-cgi enable-info enable-rewrite enable-deflate enable-ssl
    and compiling php 5.3.8 into 64bits:
    CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure with-apxs2=/usr/local/apache2/bin/apxs with-gd with-zlib disable-ipv6 with-jpeg-dir=/usr/ with-png-dir=/usr/ with-freetype-dir=/usr/ with-pear with-openssl with-oci8=instantclient,/opt/oracle/instantclient_10_2
    and using the 10.2.0.4 instant client.
    there might be a bug in the 11.x ones, they dont seem to work on Oracle Solaris 11.

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

    I have some problems with a computer having Windows98. Does Instant Client work fine with this OS? If YES: how I can to set the Path and the TNS_ADMIN? (On Windows 2003, right-click "My Computer", click Properties, click the Advanced tab, click the "Environment Variables" button, select the "path" variable and click the Edit button. In Windows98 how can I do?)
    Thanks

    According to Re: Instant Client does not work on Windows98, why?
    Windows 98 is not supported.
    -- CJ

  • Instant Client 11.1.0.1, Perl DBD::Oracle, and Kerberos

    Hi all,
    I'm trying to get an Instant Client working so I can connect to remote server and sync the data up with our own. It works, but there is a problem. Basically, if I connect via the Perl DBI and DBD::Oracle, Kerberos authentication bits get screwed up for the rest of the process. If I connect to the remote server, and then a local non-Oracle service via Kerberos, the latter fails. Note that, if done separately, they work fine.
    Looking into it, it appears that it wants to open the file /krb5/krb.conf, which doesn't exist for me (/etc/krb5.conf is the Kerberos config file). I found something online (http://download-west.oracle.com/docs/cd/B10501_01/network.920/a96573/asoappb.htm) that suggests that I should change some KERBEROS* parameters in $ORACLE_HOME/network/admin/sqlnet.ora. Either I'd like to have it try to open the right Kerberos config, or just ignore Kerberos altogether. Unfortunately, I have an old sqlnet.ora, that appears to have been generated by some external interface, and I'd like to maybe do this again, the "right way".
    [koczan@ator] ~ $ cat /s/oracle-csl/network/admin/sqlnet.ora
    # SQLNET.ORA Network Configuration File: /local.gazoo/oracle/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = cs.wisc.edu
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    The other thing I'm wondering is why it's even looking at Kerberos. Doing ldd on the sqlplus binary, the libraries, and the DBD::Oracle shared library showed no reference to Kerberos.
    [koczan@ator] ~ $ ldd /s/oracle-csl/perl5/lib/site_perl/5.8.6/i686-linux-64int/auto/DBD/Oracle/Oracle.so
    linux-gate.so.1 => (0x0043d000)
    libclntsh.so.11.1 => /s/oracle-csl-0/lib/libclntsh.so.11.1 (0x00783000)
    libocci.so.11.1 => /s/oracle-csl-0/lib/libocci.so.11.1 (0x00110000)
    libociei.so => /s/oracle-csl-0/lib/libociei.so (0x02cf2000)
    libc.so.6 => /lib/libc.so.6 (0x00272000)
    libnnz11.so => /s/oracle-csl-0/lib/libnnz11.so (0x004ea000)
    libdl.so.2 => /lib/libdl.so.2 (0x003b2000)
    libm.so.6 => /lib/libm.so.6 (0x003b6000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x003dd000)
    libnsl.so.1 => /lib/libnsl.so.1 (0x003f4000)
    libaio.so.1 => /usr/lib/libaio.so.1 (0x0040b000)
    libstdc++.so.6 => /s/gcc-3.4.4/i386_cent40/lib/libstdc++.so.6 (0x0215a000)
    libgcc_s.so.1 => /s/gcc-3.4.4/i386_cent40/lib/libgcc_s.so.1 (0x0040d000)
    /lib/ld-linux.so.2 (0x004cf000)
    So, is there something I'm missing? What would be a good way to make everything happy? I tried looking online for this, and asking the DBD::Oracle people, and I couldn't find anything.
    I'm running Instant Client 11.1.0.1 on Red Hat Enterprise Linux 5.1, Perl 5.8.8, DBI 1.602, DBD::Oracle 1.19, Kerberos 1.6.2.
    Thanks. I know this was a lot of info and questions for this, but any help would be appreciated.

    There's no SQLNET.AUTHENTICATION_SERVICES set in my sqlnet.ora. I assume it's using some sort of default or trying everything, is there a way to tell what it's doing even though nothing is set?
    All I need to do is connect via password-based authentication to a remote server. What should SQLNET.AUTHENTICATION_SERVICES be set to for that?
    I couldn't find any clear resource documenting SQLNET.AUTHENTICATION_SERVICES, if you could point me to one that would be excellent.
    Thanks.
    P.S. Here's the entirety of my sqlnet.ora file.
    # SQLNET.ORA Network Configuration File
    # Generated by Oracle configuration tools.
    # Originally on gazoo - /local.gazoo/oracle/network/admin/sqlnet.ora
    # Modified for use with Oracle InstantClient
    NAMES.DEFAULT_DOMAIN = cs.wisc.edu
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    SQLNET.KERBEROS5_CONF=/etc/krb5.conf

  • Instant Client Installation

    Dear All
    How to install instant client ? i install database 10g in my server and using 10g client for client but i want to know how to use instant client on client machine
    Regards
    Shahzaib ismail

    I installed instant client 11.1 on windows XP. Also put sqlplus in the same directory.
    Set TNS_ADMIN environment variable = "C:\instantclient_11_1\tnsnames.ora"
    set ORACLE_HOME environment variable = "C:\instantclient_11_1"
    I put a valid tnsnames.ora in said directory too.
    Sqlplus gives error
    Message file sp1<Lang>.msb not found
    Error 6 initializing SQL*Plus
    which is absurd because this is an instant client. There is not supposed to be a home, all this is supposed to be automatic. MS Visual Studio 2008 cannot connect to it either.
    Does 11g instant client work on XP at all ?
    I have installed 10g instant client on mac os x and windows xp, no problem.
    Thanks for answering. Any help appreciated. Also, if you can think of another forum I should ask this question, would appreciate it.
    Dean

  • Instant Client Basic Lite 10.2.0.1 & VS2005

    Here is the scenario...built a VB2005 thin client app/10g backend with 9i client installed on local machine....works great. Tried app on another machine and app failed due to the app requiring OC 8.1.7 or greater (this machine had OC 8.0.6.2c). Built an MSI installer to install Instant Client Basic Lite 10.2 files and update path and installed on this machine. Problem fixed so I thought. Works great on machine which previously had OC 8.06.2c, however when installing the app and Instant client on a machine which never had an Oracle client, the app fails stating Oracle Client 8.1.7 or greater must be installed.
    What am I missing?
    Paul

    Thanks for the quick reply.
    It is a .NET app which uses the OracleClientAdapter packaged with VS2005. I find it interesting that installing the instant client in combination with OC 8.0.6.2c results in a working App considering 1) The App requires 8.1.7 or above and 2) the info you just provided that it does not yet support .NET.
    To answer your question - on the non-working App on the XP machine that has just the PATH set to Instant Client, ORACLE_HOME is not specified. It's is an end users machine, where it was the first time testing the prototype App.
    Do you think setting ORACLE_HOME=x:\instantclient has a chance of making the instant client work on this machine? I will try this out tomorrow as the end user is in town and has offered their machine for a couple of hours.
    The only significant differences that are obvious to me between my XP machine using instant client successfully and the non- working machine is the following:
    Installed on My Machine
    ===========================
    1. OC 8.0.8.2c is previously installed
    2. ORACLE_HOME is set
    3. TNSNAMES - which doesn't seem to matter - i tested renaming the file to another name and instant client still works
    3. Merant Oracle ODBC drivers
    Looks like I may be forced to install the full Oracle Client on machines running this App. I'll tryi setting ORACLE_HOME on the non-working machine tomorrow and let you know how it goes.
    Thanks,
    Paul

  • Why do I need instant client if I installed 11g1 and it works

    sqldeveloper works
    em works
    sqlplus works
    I have a problem with oci8, php 5.2.6, apache 2.2 ...all are installed and working
    All the instructions I've found (and there are many) talk about
    (1) Zend installs what I already have
    (2) installing apache, oci8, php and instant client form scratch
    I am NOT going to reduce a working system to scratch.
    BTW my oci programs work and they have in the past worked through a client.

    What Oracle Software is installed on the machine: client or server?
    I concur that there is no need for Instant Client here, indeed it would be a bad idea.
    Anything that works with Instant Client should also work with the regular client.
    If you encounter any Oracle-specific error messages, feel free to post them and ask for an opinion (even though this forum is reserved for Instant Client, it might be an obvious problem).
    Yours,
    Laurenz Albe

  • Can't get instant client to work on Win XP

    This is driving me nuts. I'm trying to get instantclient10_1 (10.1.0.4) to work reliably on Win XP so I can use it in deploying a Python app I'm writing. I have one XP system on which I have the instant client installed and working. By this I mean that it works with the appropriate of sqlplus. It also works with cx_Oracle. However, I do need to set ORACLE_HOME in order to achieve this (contra the documentation). I do not seem to need to set SQLPATH.
    But I can't get it to work on any other system. I copy my instantclient10_1 directory over and use the same batch file that works on the "good" system, but I get "invalid or unknown NLS parameter value specified". I'm using a command of the form
    sqlplus user_name/[email protected]:1521/db_name
    I've also tried a "fresh" install on that machine. Same story. I've tried it on another machine as well. Same story. It only works on this one machine!
    It actually took me quite a while to get it to work on that machine, involving installing and uninstalling the full client, the instant client, both, etc. But it does work there.
    Another odd "feature": On the "good" machine, if I fail to set ORACLE_HOME, it errors and suggests I do this. On the "bad" machine, I just get the "invalid or unknown NLS" error.
    There are other ORACLE directories on these machines (e.g., ORA17). But I get the same results if I hide these and take all reference to them out of environment variables.
    Any suggestions will be greatly appreciated. Why is it working on the one system? Why isn't it working on the others?

    There's one more way that the previously-existing Oracle directories on the other machines might be tripping you up - with registry settings. In particular, the HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\(some home)NLS_LANG registry key may be associated with the "invalid or unknown NLS parameter value specified" error you're getting.
    Of course, the Instant Client isn't supposed to have to mess with the registry, so that makes me suspicious. And I got Instant Client SQL*PLUS on a clean XP machine to work without setting an ORACLE_HOME. All this makes me suspicious that some stuff from outside your Instant Client is being run. I know you said you cleaned your environment variables, but double-check that the other Oracle directories are out of your PATH.
    If you have permission to, you might want to thoroughly scrub the old Oracles from the other machines (starting with running the Oracle Installer, then hand-cleaning the registry, the c:\Ora92 or whatever directory, and then c:\Program Files\Oracle). If you have MetaLink, Document 74790.1 is a dated but good guide to cleanly de-installing an old Oracle installation from Windows. It's much more difficult than it ought to be; sometimes it feels like an Oracle home is never truly gone. If you can't do that, perhaps save a copy of your registry and then temporarily rename HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE to ORACLE_HIDDEN, or something - something to keep any existing registry settings from distracting your Instant Client.
    Good luck!

  • Oracle instant Client and unixODBC for Linux not work

    Hi experts,
    I have two Redhat EL 5. On the first Rehat(xxx.xxx.xxx.121 --> called Redhat1) I have installed Oracle 10g database server. On the second Redhat(xxx.xxx.xxx.123 --> called Redhat2) I want to connect to Oracle database server on xxx.xxx.xxx.121 via ODBC. But it does not work. Pls help me!
    I have done steps as following:
    Login to Redhat2 as root and type commands:
    1)Install Instant Client + sqlplus
    # rpm -ivh oracle-instantclient-basic-10.2.0.4-1.i386.rpm
    # rpm -ivh oracle-instantclient-sqlplus-10.2.0.4-1.i386.rpm
    2)Setting environment variable
    # LD_LIBRARY_PATH=/usr/lib/oracle/10.2.0.4/client/lib:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
    # SQLPATH=/usr/lib/oracle/10.2.0.4/client/lib:${SQLPATH}; export SQLPATH
    3)Testing connection to Redhat1(Oracle DB server) using sqlplus
    # sqlplus abc/[email protected]:1521/lab2
    Connected.
    5)Begin to install unixODBC
    # rpm -ivh oracle-instantclient-odbc-10.2.0.4-1.i386.rpm
    # rpm -ivh unixODBC-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-devel-2.2.11-7.1.i386.rpm
    # rpm -ivh unixODBC-kde-2.2.11-7.1.i386.rpm
    6)After installation above packages I check for existing of odbc.ini and odbcinst.ini in /etc --> ok
    # ls /etc | grep odbc
    odbc.ini
    odbcinst.ini
    7) Tar unixODBC-2.2.14-linux-x86-32.tar.gz and copy file to /usr/local/bin, /usr/local/include, /usr/local/lib
    # tar -xzf unixODBC-2.2.14-linux-x86-32.tar.gz
    # ls /usr/local/bin/
    dltest isql iusql odbc_config odbcinst
    # ls /usr/local/include
    autotest.h odbcinstext.h odbcinst.h sqlext.h sql.h sqltypes.h sqlucode.h unixodbc_conf.h uodbc_extras.h uodbc_stats.h
    # ls /usr/local/lib
    libboundparam.la libgtrtst.la libodbccr.la libodbcinst.la libodbc.la
    libboundparam.so libgtrtst.so libodbccr.so libodbcinst.so libodbc.so
    libboundparam.so.1 libgtrtst.so.1 libodbccr.so.1 libodbcinst.so.1 libodbc.so.1
    libboundparam.so.1.0.0 libgtrtst.so.1.0.0 libodbccr.so.1.0.0 libodbcinst.so.1.0.0 libodbc.so.1.0.0
    # NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
    # TNS_ADMIN=/root; export TNS_ADMIN
    # ODBCINI=/etc/odbc.ini; export ODBCINI
    7)Retest sqlplus to Redhad1(Oracle database server) with local tnsname
    # sqlplus vonphoto/vonphoto@lab2
    SQL*Plus: Release 10.2.0.4.0 - Production on Sat Mar 27 03:20:55 2010
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    8) Edit odbc.ini and odbcinst.ini
    ---odbcinst.ini
    # Included in the unixODBC package
    [Oracle 10g ODBC driver]
    Description = Oracle ODBC driver for Oracle 10g
    Driver = /usr/lib/oracle/10.2.0.4/client/lib/libsqora.so.10.1
    Setup =
    FileUsage =
    CPTimeout =
    CPReuse =
    ---odbc.ini
    [ora_dns]
    Driver = Oracle 10g ODBC driver
    DSN = ora_dns
    ServerName = xxx.xxx.xxx.121
    UserID = vonphoto
    Application Attributes = T
    Attributes = W
    BatchAutocommitMode = IfAllSuccessful
    BindAsFLOAT = F
    CloseCursor = F
    DisableDPM = F
    DisableMTS = T
    EXECSchemaOpt =
    EXECSyntax = T
    Failover = T
    FailoverDelay = 10
    FailoverRetryCount = 10
    FetchBufferSize = 64000
    ForceWCHAR = F
    Lobs = T
    Longs = T
    MetadataIdDefault = F
    QueryTimeout = T
    ResultSets = T
    SQLGetData extensions = F
    Translation DLL =
    Translation Option = 0
    DisableRULEHint = T
    TraceFile = /backup/sql.log
    Trace = Yes
    9)Testing the driver and the data source
    # odbcinst -q -d
    [Oracle 10g ODBC driver]
    # odbcinst -q -s
    [ora_dns]
    10) Test connection via ODBC from Redhat2(xxx.xxx.xxx.123) to Redhat1(xxx.xxx.xxx.121)
    # isql -v ora_dns
    isql: error while loading shared libraries: libreadline.so.3: cannot open shared object file: No such file or directory
    I have spent 4 days to search on the internet. But it still error.
    Pls help me.

    I don't understand your step 7 (the first step 7, actually).
    What is that unixODBC-2.2.14-linux-x86-32.tar.gz, where did it come from, and why are you doing all that?
    unixODBC should be installed after step 5.
    I guess that that is the cause of your problem.
    isql is not linked against readline at all on my RHEL 5 system.
    Do you notice any improvement after removing the files from that tar.bz file?
    Yours,
    Laurenz Albe

  • 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

  • Instant Client not working on Windows Server 2003

    Hi everybody,
    I have installed the Instant Client libraries on a machine running Windows Server 2003 in order to connect to a remote Oracle server. I also installed the sqlplus package. I copied them in a local directory, updated the Environment variable PATH and restarted. When I try to execute sqlplus to test if everything works fine, I get the following errors:
    sqlplus user/[email protected]:1521/orcl
    SP2-1503: Unable to initialize Oracle call interface
    SP2-0152: ORACLE may not be functioning properly
    Also, when I try to use PHP OCI8 functions like oci_connect() I get an error like:
    PHP Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries
    I checked it and the PATH variable points to the instant client libraries.
    Any ideas?
    Thanks in advance!

    I get the following errors: sqlplus user/[email protected]:1521/orcl SP2-1503: Unable to initialize Oracle call interface SP2-0152: ORACLE may not be functioning properly Also, when I try to use PHP OCI8 functions like oci_connect......Like the error suggested, the instant client libraries does not include the Network Service required by SQLPLUS.
    The connect string you are trying to use doesn't work for SQLPLUS. SQLPLUS will need proper TNS names configured.
    In another words, instanct client libraries installation is not enough to use sqlplus. Use Runtime installation or Customized installation.

Maybe you are looking for

  • Transfer of account

    I mistakenly applied for the Adobe account for my personal email, but it was meant to be used for my work email. How can I transer it?

  • With reference sale orde text issue

    While creating  sale order with reference to exisiting sale order of document type OR , the text should not be copied. What i did is while creating with reference to existing sale order when ever the text comes for copying i will select delete option

  • Why won't my album cover won't show on my iPod touch 4g or my computer?

    Why won't my album cover won't show on my iPod touch 4g or my computer?

  • No pressure sensitivity in krita/qt

    I'm trying to get my graphire 4 to work in krita (2.1, 2.2), everything seems to work fine except the pressure sensitivity... I've installed xf86-input-wacom and linuxwacom from aur (also tried linuxwacom-dev). /etc/hal/fdi/policy/10-wacom.fdi <?xml

  • Regd Footer in Webui

    Dear all, I am using SAP Integrated ITS 640 patch level 18 . I want to know whether we can change the footer display  in webgui . In SAP GUI for window we can change the footer in such a way to display the transaction / program / system / client etc