Registering Instant Client path

To install Instant Client in my windows2000 server PC I followed these instruction steps:
1. I have downloaded Instant Client Basic
2. unzipped files to c:\Ora_instacli directory. The files in this directory are two .jar files and some .dll files
Step 3 says " Set the library loading path in your environment to the directory in Step 2". What are the correct steps to do this?
I have a directory c:\program files\oracle with Inventory,jre and oui folders inside it, installed sometime ago. Must I delete it?. I deleted c:\OraHome1 and changed the registry entries pointed to this to point to Ora_instacli.

We have a system which uses OCCI to connect to a
database. The database connection is optional for the
system. As it is an optional module, we didn't want
our clients to install something on their OS which is
only needed by our system. Therefore, we thought that
distributing the occi instant client would be a good
solution. We deliver the libraries which are provided
by the instant client along with our application. The
libraries and the executable are in the same
directory so that the application can access those
dlls. This is sufficient if there is no oracle client
installed on the system.
But if there is already an oracle client
installation, things get somehow mixed. I found out
that even if I uninstall the existing oracle client,
there will be some registry entries used.
This is why I asked for the possibility to use the
instant client parallel to the existing installation.
If you could provide me the things to be considered,
that would be really great.I see. I'll try to compile a list of problems we encountered and things to consider, but it might not be a complete list and I take no responsibility :^)
The following assumes that we are on Windows.
- Make sure that only one client is in the PATH environment variable. There is a bug (fixed, I think, in 10.2.0.3) that may cause a mix of shared libraries from both clients to be loaded if both are in the PATH.
- If you want to run the instant client, make sure that no Oracle environment variables are set except for TNS_ADMIN and maybe LDAP_ADMIN or any of the NLS_* variables. Do not set ORACLE_HOME, ORACLE_SID and the like.
- Make sure there is no "oracle.key" file in your Instant Client directory.
In your case, you could modify the environment before you start Oracle Instant Client and make sure that PATH does not include another Oracle client.
Yours,
Laurenz Albe

Similar Messages

  • Instant client on windows 2000, path problems

    I have successfully installed the client and all work fine. But from time to time for no apparent reason php script gives an error
    "Warning 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 the environment variables, they are correct.
    If you restart Apache, everything starts to work fine. What may be the problem?
    (sorry for my English, it's not my native language)

    I agree, but this is for the QA group and they generally test the app and access the DB using app only but now for some certain modules they want to check the data in the database but they dont know how to write SQL so they decided to use microsoft sql writer (I never used it :) ) and for that they want to setup odbc and for that they need client, so they are not going to use sqlplus and that why I just wanna install instant client on their desktops.
    Daljit Singh

  • Instant client AIX library search paths

    If you use the AIX "dump -H" command against the various Instant Client libraries, you'll notice that some non-existant paths (from the original build) are included.
    For example:
    $ dump -H libclntsh.a
    shows a library search path of:
    /b/114/lib:/usr/lib:/lib
    This can create security problems, particulary with set-uid programs which link against such libraries.
    When you next build your AIX libraries, you may wish to use the "-bnolibpath" or perhaps an explicit "-blibpath" directive with the loader.
    Just a thought. Thanks for providing the Instant Client.

    Thanks for the report.
    -- CJ

  • TNS_ADMIN (path to tnsnames.ora) using Instant Client IGNORED

    Hi,
    I developed a simple utility which uses OCCI LIB from 10g release. I'm deploying it with Oracle Instant Client lite libraries.
    Everything works fine when tnsnames.ora is present in the same dir. When I move it somewhere else and set TNS_ADMIN to that directory, it doesn't work anymore:
    C:\uplob>set TNS_ADMIN=c:\tns;
    C:\uplob>echo %tns_admin%
    c:\tns;
    C:\uplob>uplob u/p@xe 15 input.dat
    Exception:12154 ORA-12154: TNS:could not resolve the connect identifier specif
    ied
    This seems very simple, but I still cannot determine why TNS_ADMIN is not being taken into account.
    Thank you for any help with this issue,
    david

    I think for Windows ,
    You may have to set this in MY-COMPUTER-->Advanced-Env-Variables
    and reboot to take effect.
    rgds

  • Not able to connect VS Web Developer Express through instant client 10

    I just spent 10 hours attempting to connect Web Developer Express 2010 to an Oracle 10g database. In the end the solution was beyond simple, but with the existing threads there is a lot of talking around the problem. I’m posting this in case it might help someone else.
    Obtain the Oracle instant client software that will work for your database. You will only need the basic package.
    http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
    Extract the contents to a temp location on your hard disk
    Create a directory for the application – it could be anything, but here is what I used
    C:\instantclient
    Copy the extracted files into the directory you just created.
    Right click on my computer and choose properties
    Under advanced and environment variables you will need to add the directory you created above to the system variables PATH. You will need to create a new system variable called TNS_ADMIN and put the same c:\instantclient path in it.
    Create the file tnsnames.ora under the c:\instantclient directory and put your customized entry in it. Below is an example.
    tnsnams.ora file contents
    <Alias for this tnsnames entry> =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <Your Oracle Server>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = <Your database instance>)
    It’s a good idea to restart your system after this installation.
    In web developer express use the .NET Framework Data Provider for OLE DB.
    Here is the key piece of information!!
    Under server name you need to use the alias from the tnsnames.ora file entry. If you do not do this it will not pick up the SERVICE_NAME parm and will give you some goofy error like:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
    or
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

    I just spent 10 hours attempting to connect Web Developer Express 2010 to an Oracle 10g database. In the end the solution was beyond simple, but with the existing threads there is a lot of talking around the problem. I’m posting this in case it might help someone else.
    Obtain the Oracle instant client software that will work for your database. You will only need the basic package.
    http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
    Extract the contents to a temp location on your hard disk
    Create a directory for the application – it could be anything, but here is what I used
    C:\instantclient
    Copy the extracted files into the directory you just created.
    Right click on my computer and choose properties
    Under advanced and environment variables you will need to add the directory you created above to the system variables PATH. You will need to create a new system variable called TNS_ADMIN and put the same c:\instantclient path in it.
    Create the file tnsnames.ora under the c:\instantclient directory and put your customized entry in it. Below is an example.
    tnsnams.ora file contents
    <Alias for this tnsnames entry> =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <Your Oracle Server>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = <Your database instance>)
    It’s a good idea to restart your system after this installation.
    In web developer express use the .NET Framework Data Provider for OLE DB.
    Here is the key piece of information!!
    Under server name you need to use the alias from the tnsnames.ora file entry. If you do not do this it will not pick up the SERVICE_NAME parm and will give you some goofy error like:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
    or
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

  • Instant Client on 64-bit Windows 7: Driver does not appear in System DSN

    Instant Client on 64-bit Windows 7: Driver does not appear in System DSN tab when creating a new Data source.
    What I did so far:
    I downloaded the basic and odbc zips for Window 64-bit.
    Unzipped the basic zip.
    Unzipped the odbc zip to the same directory.
    Added the dir path to the System Environment Variable called Path.
    Double-clicked on the odbc_install.exe to run it from Windows Explorer.
    Then I tried to add the driver to create a new data source but it does not appear in the list of drivers.
    From a cmd window, I navigated to the instant client directory and tried to run odbc_install again.
    I got the message: Oracle ODBC Driver with same name already exists.
    What am I missing?

    hello, I did it like that you say,but the result also is "oracle odbc driver with same name already exists". I don't kown what can I do it ,Thank you!

  • Windows 7 64 Bit machine with Instant Client and 32Bit application

    Hello everybody,
    the last days a tried to get a 32Bit application to run on a Windows 7 SP1 64 Bit machine ... unfortunately with no success. The application runs on XP Pro and Vista Pro 32 Bit machines against a 11g RDBMS for years. As a refenence we use SQLTools from sqltools.net. It has nearly the same behaviour like the application, because it is a 32 bit application too.
    First thing was to install a 64 bit environement to verify if the connection is allright.
    - Downloaded instantclient-basic-windows.x64-11.2.0.2.0.zip an instantclient-sqlplus-windows.x64-11.2.0.2.0.zip
    - Unpacked both packages into C:\oracle so that they reside in C:\oracle\instantclient_11_2
    - Made a directory C:\oracle\tnsnames with tnsnames.ora in it, because the app uses it
    - Set the environement variables TNS_ADMIN to point to C:\oracle\tnsnames and added C:\oracle\instantclient_11_2 in front of the path variable
    - Restarted the machine
    - Opened a commnd shell and startet sqlplus user/password@sid
    Everything was allright, I was able to connect to the database as expected
    Second thing was to start SQLTools, but as I feard it quitted with an error message when trying to access oci.dll of the instant client.
    So i decided to switch to a 32 bit environement as a third thing.
    - Downloaded instantclient-basiclite-nt-11.2.0.2.0.zip and instantclient-sqlplus-nt-11.2.0.2.0.zip
    - Deleted the old C:\oracle\instantclient_11_2
    - Unpacked both 32 bit packages into C:\oracle so that they reside in C:\oracle\instantclient_11_2
    - Didn't change anything in the environement, because nothing changed from the view of the system
    - Opened a commnd shell and startet sqlplus user/password@sid
    But now I wasn't able to connect and got the following error
    ORA-28547: connection to server failed, probable Oracle Net admin error
    SQLPlus was able to start now, but when trying to connect to the database I got the same error like when connecting with sqlplus.
    Does anybopdy have an idea how to manage to get a 32 bit application to run on a Windows 7 64 Bit machine?
    Thanks in advance
    My packages:
    Windows 7 64 bit SP1
    Oracle Instant Client basic lite 11.2.0.2.0
    SQLPlus 1.5 22D

    Have you tried WOW64 ? I have not used this emulator for sqlplus but it works for other 32 bit applications.
    http://msdn.microsoft.com/en-us/library/aa384249%28v=VS.85%29.aspx
    Thanks

  • Can I install Oracle XE on a system that has the Instant Client installed?

    Hello,
    After installing Oracle XE (Oracle Database Express Edition 11g Release 2 for Windows x64) on my Windows 8.1 64-bit system, I can not connect to the "Get started" url (http://127.0.0.1:8080/apex/f?p=4950).
    The output of "Start database" shows:
    The OracleXETNSListener-service is being started.
    The OracleServiceXE-service is being started.
    The OracleServiceXE-service has been started.
    The OracleXETNSListener service refuses to start. Could the presence of the Instant Client have something to do with this?
    The Instant Client is installed in C:\Apps\Oracle, with a tnsnames.ora in C:\Apps\Oracle\network\admin.
    Oracle XE is installed in C:\Apps\OracleXE.
    There is a system wide environment variable ORACLE_HOME, pointing to C:\Apps\Oracle.
    In the registry under HKLM\Oracle there are keys KEY_odac, KEY_ORACLE_HOME, KEY_XE, ODP.NET and OracleMTSRecoveryService.
    HKLM\Oracle\KEY_ORACLE_HOME\ORACLE_HOME = C:\Apps\Oracle
    HKLM\Oracle\KEY_XE\ORACLE_HOME = C:\Apps\OracleXE\app\oracle\product\11.2.0\server
    Thanks,
    George

    XE was the last installed Oracle product. I installed it on my development laptop, so I can use an Oracle database when not connected to the company network.
    The instant client was broken by the XE install. Uninstalling Xe fixes this, even without a reboot.
    The output of tnsping is:
    TNS Ping Utility for 64-bit Windows: Version 11.2.0.2.0 - Production on 21-APR-2015 07:18:00
    Copyright (c) 1997, 2014, Oracle.  All rights reserved.
    Message 3511 not found; No message file for product=NETWORK, facility=TNSTNS-03505: Message 3505 not found; No message file for prod
    uct=NETWORK, facility=TNS
    The Oracle related directories in the PATH environment variable are (in this order):
    C:\Apps\OracleXE\app\oracle\product\11.2.0\server\bin
    C:\Apps\Oracle\
    C:\Apps\Oracle\bin\

  • Is my PHP + Oracle9i + Instant client setup ok ?

    Hello
    I have to developp a script in PHP for windows, using an Oracle 9i database.
    Here's my setup :
    Windows 2003 Server R2 (all patches applied)
    PHP 5.2.0
    Oracle 9i 9.2.0.1.1
    Instant client 10g 10.2.0.2-20060508
    Oracle9i was installed in C:\oracle\
    Oracle Instant client extracted to C:\dev\oracle\instantclient_10_2
    Here 's the PATH env variable (only oracle partis shown):
    C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\dev\php5.2;C:\dev\oracle\instantclient_10_2
    I deleted the "C:\oracle\ora92\bin" from PATH env variable in order to
    the Instant client to be used instead of. Is this a good solution ? Since now I have no more oracle tools available in command line without specifing full path.
    PHP is configured to use php_oci8.dll of course. No problem with that.
    I tryied to activate PDO but get an error message :
    When I run PHP from command line, same error message :
    Warning: PHP Startup: Invalid library (maybe not a PHP library)
    'php_pdo_oci8.dll' in Unknown on line 0
    Maybe it's a bug in PHP, I m not the first complaining about that as far as I know.
    My main question remains : Is my configuration the best way to do ? Is there a way not to loose oracle9/bin from PATH ?
    Thanks in advance
    Message was edited by:
    user541613

    Thanks, now I understand better.
    What is "Oracle Runtime"?
    Did you install Instant Client from the Oracle Client CD or did you download Instant Client from http://www.oracle.com/technology/software/tech/oci/instantclient/index.html ?
    Which version of Instant Client is this?
    Can you show us the contents of your tnsnames.ora file?
    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!

  • Attempting to Run 'Instant Client' via XCode on Mac OS X (v10.4.6)

    Environment: OS X (10.4.6) on G4.
    The Setup:
    I used 'Oracle Instant Client Installer' {http://www.kyngchaos.com/} to install the necessary Oracle libraries here:
    [Users/oracle]ls /usr/local/oracle/lib
    libclntsh.10.1.dylib* libclntsh.so@ libnnz10.dylib@ libocci.dylib.10.1@ libocijdbc.dylib@
    libclntsh.dylib@ libnnz.10.dylib* libocci.10.1.dylib* libociei.dylib* libocijdbc10.dylib@
    libclntsh.dylib.10.1@ libnnz.dylib@ libocci.dylib@ libocijdbc.10.dylib*
    I've read that LD_LIBRARY_PATH is rather "archaic" for the Mac OS X vs a directory of dylibs accessable directly from XCode.
    2) I set the XCode 2.2.1 Library search Path as:
    USER_HEADER_SEARCH_PATHS = /usr/local/oracle/sdk/include
    LIBRARY_SEARCH_PATHS = /usr/local/oracle/lib
    ==============
    So my questions are:
    1) How do I find the available APIs?
    I've looked at an on-line example but don't know what I'm doing.
    I saw some source-code demo on-line so I essentially cut/pasted the following code.
    The following is what I've done within the NSApp's Delegate method:
    #include "/usr/local/oracle/sdk/include/oci.h"
    static OCIEnv *p_env;
    static OCIError *p_err;
    static OCISvcCtx *p_svc;
    static OCIStmt *p_sql;
    static OCIDefine p_dfn    = (OCIDefine ) 0;
    static OCIBind p_bnd    = (OCIBind ) 0;
    int p_bvi;
    char p_sli[20];
    int rc;
    char errbuf[100];
    int errcode;
    @implementation AppDelegate
    - (id)init {
         self = [super init];
         if (self) {
              rc = OCIInitialize((ub4) OCI_DEFAULT, (dvoid *)0, // Initialize OCI
              (dvoid * (*)(dvoid *, size_t)) 0,
              (dvoid * (*)(dvoid *, dvoid *, size_t))0,
              (void (*)(dvoid *, dvoid *)) 0 );
              // Initialize environment
              rc = OCIEnvInit( (OCIEnv **) &p_env, OCI_DEFAULT, (size_t) 0, (dvoid **) 0 );
              // Initialize handles:
              rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_err, OCI_HTYPE_ERROR,
                             (size_t) 0, (dvoid **) 0);
              rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_svc, OCI_HTYPE_SVCCTX,
                             (size_t) 0, (dvoid **) 0);
         NSLog(@"{Appdelegate} Init.");
         return self;
    } // end init().
    ==============
    What I get is:
    test has exited due to signal 6 (SIGABRT).
    [Session started at 2006-05-20 16:01:28 -0700.]
    ZeroLink: unknown symbol '_OCIInitialize'
    2) Am I on the right track or what am I doing wrong?
    -- Oracle/OS X neopyte.
    Ric.

    Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • Oraclle 11g instant client x64 doesn't  work in windows 7 x64

    First of all I've read the software requirements in the installation guides for 11g instant client x64 and no support for Windows 7 is mentioned.. I'm not sure if this is the case any how here is the details of the problem:
    I downloaded instant client (basic) and (sqlplus) and unzipped them on drive E, afterwards I created tnsnames.ora file with the following:
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = IGGY) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    and saved it in the instant client directory, afterwards I included the instant client directory in the user variable PATH value, and created system variable TNS_ADMIN and added the location of tnsnames.ora in the value.
    Now the problem starts when I open MS-DOS and type: sqlplus system @ORCL, It then prompts for the password and when I try to enter anything the cursor doesn't move unless I press enter and the result is that I get the following error:
    ORA-12154: TNS: COULD NOT RESOLVE THE CONNECT IDENTIFIER SPECIFIED
    Any idea what the reason of this problem is?

    Hello again,
    I was able to reproduce ORA-12154 and the error raised beacause my DUMMY-HOST was not reachable. Using the correct hostname/IP address solved the issue. Can you check if you are able to ping and to telnet your hostname (IGGY).
    Regards,
    David
    # Reproducing issue
    E:\instantclient_11_1>sqlplus system/manager@//DUMMY-HOST:1521/PROD
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Nov 27 10:37:54 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve the connect identifier specified
    Enter user-name:
    # Hostname is not pingable
    E:\instantclient_11_1>ping DUMMY-HOST
    Ping request could not find host DUMMY-HOST. Please check the name and try again.
    # Pinging host which is alive
    E:\instantclient_11_1>ping stlin3p
    Pinging stlin3p [192.168.1.123] with 32 bytes of data:
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Reply from 192.168.1.123: bytes=32 time<1ms TTL=64
    Ping statistics for 192.168.1.123:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    # Connecting to port 1521 at DUMMY-HOST fails as well
    E:\instantclient_11_1>telnet DUMMY-HOST 1521
    Connecting To DUMMY-HOST...Could not open connection to the host, on port 1521:
    Connect failed
    # Connecting to port 1521 at stlin3p is successful
    E:\instantclient_11_1>telnet stlin3p 1521
    ... connected ...
    # Content of tnsnames.ora
    PROD =
    DESCRIPTION =
    ADDRESS = (PROTOCOL = TCP) (HOST = stlin3p) (PORT = 1521)
    CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = PROD)
    # Connecting to DB server using TNS methods is successful
    E:\instantclient_11_1>sqlplus system/manager@PROD
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Nov 27 10:36:40 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    # Connecting to DB server using EZCONNECT is also successful
    E:\instantclient_11_1>sqlplus system/manager@//stlin3p:1521/PROD
    SQL*Plus: Release 11.1.0.7.0 - Production on Fri Nov 27 10:38:21 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Release 10.2.0.4.0 - 64bit Production
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.4.0 - 64bit Production

  • Imp Exp utility in ubuntu 10.4 with oracle instant client 10

    Hi,
    I have a problem with the imp/exp utility on Ubuntu 10.4.
    I have installed the oracle instant client 10, and I have followed this thread
    [http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/impexp.htm#CHDDBGDF]
    So, I've set env variable in my .bashrc
    ORACLE_HOME=/home/lucia/Programmi/instantclient10_1
    export ORACLE_HOME
    LD_LIBRARY_PATH=/home/lucia/Programmi/instantclient10_1:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    PATH=/home/lucia/Programmi/instantclient10_1:${PATH}
    export PATH
    SQLPATH=/home/lucia/Programmi/instantclient10_1:${SQLPATH}
    export SQLPATH
    Sqlplus works fine, but when I try to use the utility exp/imp
    exp DB_USER/DB_PW@DB_SCHEMA owner=DB_USER buffer=300000 LOG=DB_USER.log FILE=DB_USER.dmp compress=n
    I have the following error:
    No command 'exp' found, did you mean:
    Command 'xep' from package 'pvm-examples' (universe)
    Command 'ex' from package 'vim' (main)
    Command 'ex' from package 'nvi' (universe)
    Command 'ex' from package 'vim-nox' (universe)
    Command 'ex' from package 'vim-gnome' (main)
    Command 'ex' from package 'vim-tiny' (main)
    Command 'ex' from package 'vim-gtk' (universe)
    Command 'axp' from package 'axp' (universe)
    Command 'expr' from package 'coreutils' (main)
    Command 'expn' from package 'sendmail-base' (universe)
    Command 'epp' from package 'e16' (universe)
    exp: command not found
    (I cannot use data pump exp)
    Any suggestions?
    thanks in advance.
    Lucia

    root@laptop:~# /tmp/CVU_11.2.0.1.0_lucia/runfixup.sh
    Response file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.response
    Enable file being used is :/tmp/CVU_11.2.0.1.0_lucia/fixup.enable
    Log file location: /tmp/CVU_11.2.0.1.0_lucia/orarun.log
    [: 845: true: unexpected operator
    [: 860: unexpected operator
    Any suggestions?
    thanks
    LuciaHello,
    I had the same problem. It was related to the shell script interpreter being used: it is really a bash script asking to be interpreted as sh. For the impatient, the solution was to change the first line of the script orarun.sh to read as:
    #!/bin/bash
    Explanation:
    1. The script runfixup.sh calls orarun.sh. The latter is the one that fails starting at line 845.
    2. The script is really a bash script as can be seen from the if syntax used. For example at line 191 we see the double equall sign ==:
    if [ "`echo $SET_KERNEL_PARAMETERS | tr A-Z a-z`" == "true" ]
    3. The bash man page says:
    string1 == string2
    string1 = string2
    True if the strings are equal. = should be used with the test command for POSIX conformance.
    string1 != string2
    True if the strings are not equal.
    (End of man page excerpt)
    Notice in particular that for a bash script to be POSIX it should avoid the == and just use =
    4. orarun.sh has on its first line #!/bin/sh. On my Ubuntu system, sh is a softlink to dash and the dash man page says:
    s1 = s2 True if the strings s1 and s2 are identical.
    s1 != s2 True if the strings s1 and s2 are not identical.
    5. So this script script uses bash syntax but is interpreted by dash. It is possible that this worked fine for the Oracle developer if on their system sh was softlinked to bash (which is often the case). Apparently, one should then be very careful to not use idioms that are not POSIX compliant.
    6. Another solution is to change the /bin/sh softlink from dash to bash. Personally, I was less comfortable doing this (the possible repercussions were wider than the proposed solution above).
    After making the change, the script ran perfectly. I think the best solution is for Oracle to update the script to be POSIX compliant or to identify itself as bash.
    Hope that helped,
    Mark Gaber
    Edited by: user1112514 on Jun 30, 2010 3:28 AM

  • 10g instant client "Zero Sized Response"

    tried to get instant clients for sol64bit, sol32bit, AIX64bit.
    all give:
    ERROR
    The requested URL could not be retrieved
    While trying to retrieve the URL: http://download-uk.oracle.com/otn/solaris/instantclient/instantclient-basic-solaris32-10.1.0.3.zip
    The following error was encountered:
    * Zero Sized Reply
    Squid did not receive any data for this request.
    Your cache administrator is [email protected]
    Generated Mon, 29 Nov 2004 15:19:47 GMT by undertow.inchinnan.grahamtech.co.uk (squid/2.5.STABLE1)

    Custom client is the path we chose. This is because you cannot upgrade the Instant client (thanks from another post).

  • OCIEnvNlsCreate():Oracle Instant Client libraries

    Pls help solve this error:
    [Mon Feb 18 13:45:14 2008] [error] [client 0.0.0.0] 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 in C:\\EID_Web\\test.php on line 3
    [Mon Feb 18 13:45:14 2008] [error] [client 0.0.0.0] PHP Warning: oci_close() expects parameter 1 to be resource, boolean given in C:\\EID_Web\\test.php on line 14
    [Mon Feb 18 13:45:18 2008] [error] [client 0.0.0.0] 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 in C:\\EID_Web\\test.php on line 3
    [Mon Feb 18 13:45:18 2008] [error] [client 0.0.0.0] PHP Warning: oci_close() expects parameter 1 to be resource, boolean given in C:\\EID_Web\\test.php on line 14.
    tried to change the path but still no changes.
    this is what i use:
    apache 2.2,oracle server 10g ,instant client 10g, windows 2000,php 5.2
    Message was edited by:
    tamse

    Make sure that you have only one Oracle Client on the client machine.
    Delete/uninstall all others. Best uninstall all Oracle Software on that machine and reinstall one client.
    Before you try to connect from a PHP script, try to connect with sqlplus. If that works, proceed.
    The PHP you use must compiled and linked against the Oracle client version you use, else it won't work.
    Now try again. If you still get the same errors, post the error messages and relevant parts of the PHP script.
    Be aware that this forum is for Instant Client, so there might be better forums for PHP questions.
    Yours,
    Laurenz Albe

Maybe you are looking for

  • Assign/Change page image in TOC - RoboHelp 9

    I would like to have 2 sep. page images in my TOC. One = [?] and another indicating that a video link is contained on page. I changed the URL image link but can't find out how to assign the image to the page. Is this the way to go? If so, how do I as

  • Where we use the window class in the sql and how to use it

    where we use the window class in the sql and how to use it

  • IPhone 6 issue with Siri - she's not listening to me!

    The phone's working fine and I have a good wireless and cell connection. When you activate Siri it makes all the right noises but it seems the microphone is disconnected. (it works fine on phone calls) Any ideas

  • The keyboard isn't showing when I want to text someone?

    The scroll on the side stops like it there but there is nothing? it happened the other day when I received a message and I could text back. I've nothing to the settings? It's only happening on my text and iMessages

  • FF is not letting me open an FTP site.

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/860511]]</blockquote> Well, I am trying to open an FTP site, and FF says the connection timed out. I know that when I use this site in Internet Explorer I have to click on "