Pro*C with instant Client

Hello, I'm creating a Pro*C application using Oracle 10g Database. But when I run the application on a different machine with no oracle installed but only 10g instant client. the application wont work. it ask for such dll orasql10.dll, which is not even present in instant client.
HELP HELP HELP !!!

Hi,
Maybe duplicate thread.
how run Pro*C application with Instant Client 10g
Cheers

Similar Messages

  • How to run Pro*C application with Instant Client in Oracle 10g

    i am try to run but Pro*C application give error orasql10.dll
    i have downlod Instant Client in Oracle 10g from site. i have unzip and maked environmental virable in PC.
    but application not run. given error orasql10.dll .......
    my problem is thrat i want to run Pro*C application with Instant Client in Oracle 10g .....
    oracle say that run but how........

    According to this thread, it does not work on Windows:
    Does Instant Client 10.1.0.4 for Windows 32 support ProC ?

  • Database connectivity problem with instant client.

    Guys,
    I've installed the Oracle instant client basic and ODBC files in my system.
    But when I create a system DSN and test the connectivity my database connectivity,it fails with
    ORA-12637:Packet receive failed error
    My TNSNAMES reads below:
    ONDSP101.DIGITALINDIASW.NET =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = namesrv1.xy.zz.com)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ONDSP101)
    and my SQLNET as below:
    AUTOMATIC_IPC = OFF
    TRACE_LEVEL_CLIENT = ON
    SQLNET.INBOUND_CONNECT_TIMEOUT=20
    NAMES.DEFAULT_DOMAIN = na.pg.com
    NAME.DEFAULT_ZONE = na.pg.com
    SQLNET.CRYPTO_SEED = "kdg:9yv2$-plo*u6b2x!"
    NAMES.DIRECTORY_PATH = (ONAMES,TNSNAMES)
    NAMES.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = TCP.xy.zz.com)
    (PROTOCOL = TCP)
    (Host = namesrv1.xy.zz.com)
    (Port = 1522)
    (ADDRESS =
    (COMMUNITY = TCP.xy.zz.com)
    (PROTOCOL = TCP)
    (Host = namesrv2.xy.zz.com)
    (Port = 1522)
    I've placed my TNSNAMES and SQLNET file in the same folder having the instant client files and I've set my TNSADMIN,LD_LIBRARY_PATH and PATH environmental variable to the folder location.
    Note:I'm able to connect to the database using SQLplus.
    Thanks,
    Bhagat

    12637, 00000, "Packet receive failed"
    // *Cause:  A process was unable to receive a packet from another process.
    // Possible causes are:
    // 1. The other process was terminated.
    // 2. The machine on which the other process is running went down.
    // 3. Some other communications error occurred.
    // *Action: If the cause is not obvious, contact Oracle Customer Support.
    These days I very seldom use ODBC for Oracle - most recently it was simply to get Enterprise Architect to "talk" to Oracle. I never used it for my client applications (unlike in the fast distant past), so what I know about ODBC is seriously outdated.
    Even so, a few comments. :-)
    Have you tried creating a user DSN, in case a system DSN somehow works different environment wise?
    The above error description sounds like the original TCP connection was successful (i.e. it is not a host unknown or not reachable error). Subsequent packets seem to fails.
    To confirm, run the listener on namesrv1.xy.zz.com with logging enabled and have a look at the listener.log - does it show a connection being accepted/handled from your PC when you use the ODBC DSN?
    Have you tried the Oracle ODBC drivers? When getting EA connected I had problems (also with Instant Client) and Microsoft ODBC driver for Oracle. Downloaded and installed the Oracle ODBC driver and it worked just fine first time around.
    PS. You should raise this topic on the Instant Client Forum instead.

  • Can't find example oci makefile with instant client

    A couple of references indicate that Instant Client comes with an example make file. Where is it?
    I've installed all the instant client rpm files, including the 'developer' file. But I can't find the example makefile. The 'developer' rpm file is described on the download web page as follows:
    *Instant Client Package - SDK: Additional header files and an EXAMPLE MAKEFILE for developing Oracle applications with Instant Client
    So far I can't find the example makefile. I see the header files and some shared library (.so) files but no example makefile.
    Anybody know how to find the example makefile?
    Anybody have any pointers on how to make OCI programs on an instant client system? My programs already run on another system. The other system has a full blown Oracle development environment instead of instant client.
    I am trying to make the programs on a RedHat enterprise linux 4 system (actually a clone of RHEL4 called centos4).
    thanks,
    David
    xyz

    Never mind. Don't bother. I think I found it.
    I forgot that it's not called "Makefile", "makefile", or anything that you might ordinarily think to look for. It's called demo.mk instead.
    David

  • Can a program compilied with 32 libraries work with Instant Client 64 bit?

    We are compiling our program on IBM AIX 5L and HP-UX PA_RISC with 32 libraries (using ORACLE_HOME/lib32)
    for AIX and HP-UX RISC the only available Instant Client 10gR2 is 64 bit. there is no 32 version.
    can a program compilied with 32 libraries work with Instant Client 64 bit?

    64 bit clients can be downloaded from here: http://www.oracle.com/technetwork/topics/dotnet/downloads/index.html
    That said, Visual Studio itself is 32 bit, so if you want the developer tools to work, you'll need a 32 bit client. If you're not using the developer tools in your project and you're compiling your project for AnyCPU or x64, the 64 bit client will work. If you're compiling for x86, you need the 32 bit client. (If you want to do both, you'll need two clients installed.)
    edit - Actually, it looks like in this case you might be running into a problem of needing a 32 bit client & ODBC connection. The error mesage could be misleading here as Visual Studio itself is 32 bit. Did you create the ODBC connection using control panel? If so, that's a 64 bit connection.
    32 bit ones are created using c:\windows\syswow64\odbcad32.exe
    Edited by: Tridus on Jan 3, 2013 3:24 PM
    Edited by: Tridus on Jan 3, 2013 3:24 PM

  • Cannot get ODBC to work with Instant Client

    Hi,
    I am having problems getting ODBC working with instant client. This is what I have done so far:
    1. I installed Instant Client from this page: http://www.oracle.com/technetwork/topics/winsoft-085727.html
    The file I downloaded was: instantclient-basic-win32-10.2.0.3-20061115.zip
    2. Next, I installed SQL*Plus with this file: instantclient-sqlplus-win32-10.2.0.3-20061115.zip
    Now I have SQL*Plus working with instant client.
    3. After that I downloaded instantclient-odbc-win32-10.2.0.3-20061115.zip for ODBC.
    4. I unzipped the odbc zip file into the Instant Client folder and ran odbc_install.exe. Now I have 'Oracle in instantclient 10_2' showing up in the drivers tab of ODBC Data Source Administrator.
    5. Now, if I try to add add a DSN and choose 'Oracle in instantclient 10_2' as the data source, I get an error "ODBC Administrator has stopped working" (http://i50.tinypic.com/jifl2g.png)
    I can add DSNs using any other data source without problems. The aforementioned error comes up only when I use 'Oracle in instantclient 10_2' as the data source.
    Can someone please let me know how to resolve this?
    I am running Windows Vista Business edition 32-bit.
    Thanks & Regards,
    Ubaidullah Nubar.
    Edited by: unubar on Dec 17, 2012 9:42 PM

    Two dimensions of compatibility/requirements:
    Vertically - This is your application, APIs, .Net, operating system etc. that may define requirements on Oracle Client version, and vice versa.
    Horisontally - "on the wire" or connectivity wise - Oracle certifies client - server interoperability at least two releases or major versions back/apart, so yes, 10.2 is/was* supported. See MOS interoperability matrix for your specific case.
    (*was since 10.2 Database is out of support or even Extended support by now. Perhaps it is time to upgrade the server side also ;-))

  • 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

  • Problem with Instant Client 10.2 with ODBC and Studio 6.0

    Has anyone else had the issue of not being able to make a second connection after the first connection has been closed and the free HENV is called via the object distructor? What actually fails is the second time thru the SQLDriverConnect call returns -1. If the connection object is a global but close is still called it will work. So this leads me to believe the problem might be from the SQLFreeEnv call in the distructor.
    If I run test using the 10.1 Instant cleint it works fine. I have included some code that I use to test with below.
    I am using:
    XP Pro sp2
    Visual Studio 6.0 sp6
    Instant Client 10.2
    MDAC 3.51
    Oracle Server 10g
    Thank you for anyone suggesting advice, help, direction....
    #include "stdafx.h"
    #include <afxdb.h>          
    #include "DriverTest.h"
    #include <odbcss.h>
    #ifdef _DEBUG
    #define new DEBUG_NEW
    #undef THIS_FILE
    static char THIS_FILE[] = __FILE__;
    #endif
    static char CONN_STRING[] = "DSN=TMTest2;UID=TMMain;PWD=TMMain1;";
    CWinApp theApp;
    using namespace std;
    CDatabase cdGlobalTMMainDB;
    BOOL TestOnStack();
    BOOL TestGlobal();
    int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
         int nRetCode = 0;
         // initialize MFC and print and error on failure
         if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
              // TODO: change error code to suit your needs
              cerr << _T("Fatal Error: MFC initialization failed") << endl;
              nRetCode = 1;
         else
              // TODO: code your application's behavior here.
              cout << "---------------------- Testing connection as global ------------------------" << endl;
              TestGlobal();
              TestGlobal();
              cout << endl << "---------------------- Testing connection on stack -------------------------" << endl;
              TestOnStack();
              TestOnStack();
              cout << endl << "---------------------- Testing connection as global(again) -----------------" << endl;
              TestGlobal();
              TestGlobal();
         return nRetCode;
    BOOL TestOnStack()
         CString sMessage;
         BOOL bOkay = false;
         try
              CDatabase cdStackTMMainDB;
              // try open connection
              cout << "Attempt open on stack... " ;
         bOkay = cdStackTMMainDB.OpenEx( CONN_STRING, CDatabase::noOdbcDialog );
              // close connection
              cdStackTMMainDB.Close();
              cout << "Successful" << endl;
         catch( CDBException *pX )
              CString cszTheStr;
              printf("FAILED - CDBException has occurred %s\n", pX->m_strError );
              pX->Delete();
         catch( CMemoryException *pX )
              printf("FAILED - CMemoryException has occurred\n" );
              pX->Delete();
         catch( ... )
              printf("FAILED - Other exception has occurred.\n" );
         // return results
         return( bOkay );
    BOOL TestGlobal()
         CString sMessage;
         BOOL bOkay = false;
         try
              // try open connection
              cout << "Attempt open as global... " ;
         bOkay = cdGlobalTMMainDB.OpenEx( CONN_STRING, CDatabase::noOdbcDialog );
              // close connection
              cdGlobalTMMainDB.Close();
              cout << "Successful" << endl;
         catch( CDBException *pX )
              CString cszTheStr;
              printf("FAILED - CDBException has occurred %s\n", pX->m_strError );
              pX->Delete();
         catch( CMemoryException *pX )
              printf("FAILED - CMemoryException has occurred\n" );
              pX->Delete();
         catch( ... )
              printf("FAILED - Other exception has occurred.\n" );
         // return results
         return( bOkay );
    }

    For what it is worth, I am having a similar problem with an application I support. When I upgraded from 10.2.0.2 to 10.2.0.3 to fix a performance problem, we now have this connection problem. If I can not get a good solution for the InstantClient I will have to start using the Full 10.2.0.3 Client and I am not looking forward to deploying that.
    Steve Hicklin
    USA

  • Failed to install php-oci8 with instant Client for linux 64

    Hello,
    I have a 64-bits Linux box with RHEL4, and PHP version has been upgraded from 4.3.9 to 5.1.6. I try to make the connection to remote oracle server.
    I download instantclient-basic-linuxppc-10.2.0.2-20060327.zip , and follow the instruction to
    install it.
    But when i try to install php-oci8*.rpm, no matter which i use:
    php-oci8-5.1.6-1.el5.i386.rpm or php-oci8-4.3.9-2.2.el4.i386.rpm
    The installation always failed due to dependencies errors with oracle instant client.
    I also tried with some other packages like: php-oci8-4.3.9-3.el4.x86_64.rpm
    All my tries gave me dependency errors.
    sometime like:
    error: Failed dependencies:
    libclntsh.so.10.1 is needed by php-oci8-5.1.6-1.el5.i386
    oracle-instantclient = 10.2.0.3 is needed by
    php-oci8-5.1.6-1.el5.i386And I cannt find the right RPM for oracle instant client for linux 64 bits box, and php-oci8 5.1.6 64 bits.
    I have been trying on this problem for more than one week, and so frustrated. I will appreciate if I can be guide on this issue.
    Thanks in advance!

    See my followup to your duplicate post in the PHP forum

  • NLS_LANG with Instant Client and MS Access

    Hello Everybody.
    Recently I downloaded Oracle Instant Client 10.1.0.3. I made a custom instalation for my little Access (ODBC)application.
    In the begining the installation had not any other configuration than PATH Environment variable and ODBC basic DLL paramaters. That configuration worked very well for some minutes, until I realized that some rows in my linked tables appeared as #DELETED.
    I made a little web-based investigation on the Microsoft and Oracle web site and I arrived to the NLS_LANG parameter. I realized it was my problem because I have Latin American characters in my rows and those rows were the "#DELETED" row I saw in my tables.
    I did "select * from NLS_DATABASE_PARAMETERS" and that command showed AMERICAN and WE8DEC as NLS_CHARACTERSET.
    I set the NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 and the problem disapeared.
    My question is: Is that the correct configuration in this case?
    PD:I'am using Win XP Pro in Spanish.
    Thanks

    Hi,
    >>then I use Oracle Instant Client
    It's possible that maybe a NLS environment variables configuration problem ... For more information, I advise you to take a look at [url http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm] NLS_LANG FAQ
    Cheers
    Legatti

  • How to configure PL/SQL Developer with instant client

    Hi buddies!
    I want to install PL/SQL Developer. I should be installing instant client? I need to install PL/SQL Developer in my pc which is going to access the database from the server.
    Please enlighten me.
    Thank You.
    Cheers!
    Nith
    Edited by: user645399 on May 12, 2010 4:26 PM

    user645399 wrote:
    These are the steps I followed.
    <snipped>I do not see a problem with these steps at all. It is correct. Step 7 is redundant (due to where you placed the tnsnames.ora file) - it's only really needed when you place the file in some other directory where +%ORACLE_HOME%\network\admin+ no longer applies.
    Note that the client itself, needs to load the InstantClient OCI DLL - and this DLL uses the environment settings and the rest to "do its thing".
    If the client loads some other Oracle client DLL, then the bets are off that InstantClient will be used, never mind will work.
    Only a single copy of a DLL can exist in memory. Thus if some other s/w is using some other OCI DLL, then that DLL is already loaded and will be re-used by all other client s/w. None will be able to use the InstantClient DLL itself.
    So make sure that no Oracle client driver is loaded at all. Then ensure that when client s/w requests to load the OCI DLL, it is loaded from the InstantClient directory.
    As far as I recall, the Win32 LoadLibrary() kernel call is made by the application - if the DLL is not yet in memory, the current directory (in the virtual machine for that Windows process) is used. If the DLL does not exist there, the %PATH% variable is used to find and load the DLL. The DLL usage counter is then set to 1. As more processes request the DLL, it is incremented. When a process terminates, the usage count is decremented. When it reaches 0, its unloaded from memory.
    Bottom line to all this is that only a single DLL module (irrespective of the number and versions of physical DLL files on disk) can reside in kernel space, and you need to make sure that the correct physical DLL file is loaded by the kernel.

  • SP2-0750: You may need to set ORACLE_HOME with instant client and sqlplus

    On an hp-ux 32 ,,,
    - i downloaded instant client from here http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/hpsoft.html
    - installed and set my shlib_path to directory where I extracted it.
    - running sqlplus comes up with this ...
    Error 6 initializing SQL*Plus
    Message file sp1<lang>.msb not found
    SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory.
    - what the heck am i missing here?
    Thank you.

    you can see from the 'tusc' ouput below that it is clearly trying to locate msb files. These files are not packaged with the instant client. So how it this supposed to ever work? These files are simply missing from the distribution.
    close(3) ............................................................................................................. = 0
    stat("/home/oracle/oraclnt/clnt/libclntsh.sl.10.1", 0x7f7e3070) ...................................................... = 0
    open("/home/oracle/oraclnt/clnt/libclntsh.sl.10.1", O_RDONLY, 02) .................................................... = 3
    fstat(3, 0x7f7e3138) ................................................................................................. = 0
    read(3, "0210010e0512@ \0C f7h 13\0\0\0\0".., 128) ................................................................... = 128
    lseek(3, 128, SEEK_SET) .............................................................................................. = 128
    read(3, "10\0\004\0\0\0( 01L W a4\0\010\0".., 48) .................................................................... = 48
    read(3, "80\0\0\v\0\0\004\0\0\0\0", 12) .............................................................................. = 12
    lseek(3, 4059136, SEEK_SET) .......................................................................................... = 4059136
    read(3, "058cy 10\0\0, \ \004: 8 \0\0\0\n".., 112) ................................................................... = 112
    mmap(NULL, 21782528, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 3, 0x3df000) ......................................... ERR#12 ENOMEM
    close(3) ............................................................................................................. = 0
    munmap(0xcc000000, 70111232) ......................................................................................... = 0
    munmap(0x7f684000, 4096) ............................................................................................. = 0
    open("./nls/data/lx1boot.nlb", O_RDONLY|O_LARGEFILE, 0) .............................................................. ERR#2 ENOENT
    open("./sqlplus/mesg/sp1us.msb", O_RDONLY|O_LARGEFILE, 0121430) ...................................................... ERR#20 ENOTDIR
    open("./sqlplus/mesg/sp1us.msb", O_RDONLY|O_LARGEFILE, 0121430) ...................................................... ERR#20 ENOTDIR
    Error 6 write(2, "E r r o r 6 ", 8) ...................................................................................... = 8
    iwrite(2, "i ", 1) .................................................................................................... = 1
    nitializwrite(2, "n i t i a l i z ", 8) ...................................................................................... = 8

  • Error ORA-12154 trying to connect with instant client 11g / LDAP on Ubuntu

    Hello,
    I have successfully installed instant client 11.2.0.2 and sqlplus on my Ubuntu 11.04 workstation. I am able to successfully connect to DB's defined in tnsnames.ora, but when the resolution is (or should be) by LDAP, I get error
    ORA-12154: TNS:could not resolve the connect identifier specified
    Note: while it's fine for testing, it's not a viable option to setup all the DB's defined in the OID in tnsnames.ora - I need to use LDAP.
    My setup is as follows:
    Install folder: /opt/oracle/instantclient_11_2
    TNS_ADMIN=/opt/oracle/instantclient_11_2/
    sqlnet.ora
    NAMES.DIRECTORY_PATH=(TNSNAMES,LDAP)
    I am certain that tnsnames.ora and ldap.ora are valid, as I can connect successfully on another machine with the full client installed using the same files.
    I tried to setup tracing in sqlnet.ora as follows
    TRACE_LEVEL_CLIENT = SUPPORT
    TRACE_DIRECTORY_CLIENT = /tmp
    TRACE_FILE_CLIENT = sqlnet.trc
    but not trace file gets generated in /tmp - am I doing something wrong ? (Note, I also tried to set DIAG_ADR_ENABLED=OFF as suggested by Laurenz Albe in Instant client don't work trace but that did not help)
    I checked DocID=359206.1 but I don't think that applies as I'm on 11g.
    Hope someone can help. Thanks in advance !

    rgoold, you are a star ! I should have thought about line endings of course. Many thanks for your suggestion, that fixed the problem.
    # file *.ora
    ldap.ora: ASCII text, with CRLF line terminators
    sqlnet.ora: ASCII text, with CRLF line terminators
    # dos2unix *.ora
    dos2unix: converting file ldap.ora to UNIX format ...
    dos2unix: converting file sqlnet.ora to UNIX format ...
    # ./sqlplus -L user@database
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Sep 5 15:26:16 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    WOHOOOOO !!! :-)

  • Php-4.3.2-23.ent with Instant Clients on RHEL 3

    I have recompiled PHP for support with Oracle many times, but in switching to the instant client, I am having issues. SQLPlus works fine from the command line, as root, and as the webserver user.
    I have tried every combination I can think of for environment variables in apache, the php code itself and in the shells.
    According to phpinfo() I have the correct information.
    OCI8 Support enabled
    Revision $Revision: 1.183.2.5 $
    Oracle Version 10.1
    Compile-time ORACLE_HOME /usr/lib/oracle/10.1.0.3/client/lib
    Libraries Used -Wl,-rpath,/usr/lib/oracle/10.1.0.3/client/lib -L/usr/lib/oracle/10.1.0.3/client/lib -lclntsh
    From there, I run this PHP.
    <?php
    print "<h2>Variables</h2>";
    print "whoami: ";
    system("whoami");
    print "<BR>";
    getenv(TWO_TASK);
    getenv(TNS_ADMIN);
    getenv(ORACLE_HOME);
    getenv(LD_LIBRARY_PATH);
    print "TWO TASK $TWO_TASK<BR>";
    print "TNS ADMIN $TNS_ADMIN<BR>";
    print "ORACLE_HOME $ORACLE_HOME<BR>";
    print "LD_LIBRARY $LD_LIBRARY_PATH<BR>";
    print "<h2>tnsnames.ora</h2><pre>";
    system ("cat /usr/lib/oracle/10.1.0.3/conf/tnsnames.ora");
    print "</pre>";
    $conn = OCILogon("user", "password", "//z1pd.cis.example.com:1521/z1pd");
    $query = 'select table_name from user_tables';
    $stid = OCIParse($conn, $query);
    OCIExecute($stid, OCI_DEFAULT);
    while ($succ = OCIFetchInto($stid, $row)) {
    foreach ($row as $item) {
    echo $item." ";
    echo "<br>\n";
    OCILogoff($conn);
    ?>
    The output from that file looks like this in my browser.
    Variables
    whoami: user
    TWO TASK z1pd.cis.example.com
    TNS ADMIN /usr/lib/oracle/10.1.0.3/conf
    ORACLE_HOME /usr/lib/oracle/10.1.0.3/client
    LD_LIBRARY /usr/lib/oracle/10.1.0.3/client/lib
    tnsnames.ora
    z1pd.cis.example.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (COMMUNITY = tcp)(PROTOCOL = TCP)(Host = z1pdora.cis.cat.com)(Port = 1521))
    (CONNECT_DATA = (SID = z1pd))
    Warning: ocilogon(): ociopen_server: ORA-12154: TNS:could not resolve the connect identifier specified in /var/www/html/t.php on line 17
    Warning: ociparse(): supplied argument is not a valid OCI8-Connection resource in /var/www/html/t.php on line 21
    Warning: ociexecute(): supplied argument is not a valid OCI8-Statement resource in /var/www/html/t.php on line 22
    Warning: ocifetchinto(): supplied argument is not a valid OCI8-Statement resource in /var/www/html/t.php on line 23
    I think the bolded part above is the problem, but I don't know how to fix it. It seems like the TNS specification is wrong, but I can just use sqlplus from the command line and everything is fine if I have TWO_TASK/TNS_NAMES setup.
    Obviously the webserver is getting those env variables, and I made sure the webserver account could read everything in /usr/lib/oracle.
    Please HELP!

    I've recitifed the problem so I thought it best to explain my resolution. I installed Apache 2 and altered the language settings to:
    NLS_LANG=english_united kingdom.WE8ISO8859P1
    LANG=en_GB.ISO-8859-1 (instead of UTF-8)
    I don't think installing Apache 2 made any difference - it must have been the incompatible charactersets. But it is working so I'm happy.
    Thanks for the help.

  • Install Runtime Client 10.2.0.1 in Same Home with Instant Client?

    If I have already installed INSTANT client 10.2.0.1 in OraClient10g_home1, can I install the RUNTIME or CUSTOM client 10.2.0.1 in that same home also?

    When you run Oracle Universal Installer it checks for available homes. In your case, when already have Instant Client and start OUI again you simply add more features to the existing home.
    I suggest you to choose directly "Custom" install and check whatever you plan to use. Of course - in the existing home.

Maybe you are looking for

  • Old version Source code to .exe file conversion

    I have a programming GUI source code (written in an older version of LabVIEW). Can it be supported by LABview Evaluation version 10.0.1 and be converted to an .exe file. How can I convert and use source code file for  programming? What do I need to c

  • File-IDOC, idoc interface error

    Hi, Scenario: File-IDOC (Multiple records in source file to be mapped to multiple CREMAS IDOCs) without BPM. Modified the occurance(maxOccurs = 'unbounded') in XSD structure of IDOC(CREMAS) and saved it as external definition. I have <b>used this ext

  • Messages killed by spamfilters

    Hello, I got problem with spamfilters in MS mail services. People doesn't receive any of my emails from MYDOMAIN.COM. Only when someone add [email protected] to contacts or to whitelist he'll get an email. This is my email header: x-store-info:qAU

  • NVIDIA Drivers version

    Hi all. Is there a way to inventory NVIDIA drivers version? Thanx.

  • How do i change language back to english on nano 3rd generation

    how do i change language back to english on my nano 3rd generation..