Instant Client 10.2.0.1 and Linux...

I am new to the Linux world and am trying to create an OCCI application. I have the following configuration:
Linux Fedora Core 4
Oracle Instant Client 10.2.0.1
gcc version 4.0.0 20050519 (Red Hat 4.0.0-8)
Will this configuation allow me to create OCCI applications? I have created a simple application that only tries to create an Envionment object. I have tried to compile my app with 2 different commands:
g++ -I/usr/include/oracle/10.2.0.1/client OracleTest.cpp -o OracleTest.exe -L/usr/lib/oracle/10.2.0.1/client/lib -lclntsh -locci
and
g++ -I/usr/include/oracle/10.2.0.1/client OracleTest.cpp -o OracleTest.exe -L/usr/lib/oracle/10.2.0.1/client/lib /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so.10.1 /usr/lib/oracle/10.2.0.1/client/lib/libocci.so.10.1
The first command returns saying that the compiler cannot find either of the specified libraries (all of my paths are correct). The second command returns all kinds of string errors.
Does anyone have a similar configuration to mine and have they successfully created OCCI applications?
Thank you,
Jason

OCCI Libraries packaged with 10.2.0.1 Instant Client are gcc323 compatible only.

Similar Messages

  • Instant Client 10.1.0.5 and ORA-12640 with External Authentication

    I am using v10.1.0.5 of Instant Client on Windows 32bit. I have hit bug 5114330 (ANO: ORA-12640 authentication adapter initialization fails if Operating System User does not have admin rights). This was fixed in patch 12 of 10.1.0.5. I copied the updated files from patch 28 that related to the instant client files and I am still hitting the same problem. How do I patch my instant client install to overcome this bug? Using v10.2 of instant client is not an option as it is not compatible with our application.
    Kind regards,
    Steve

    I guess that if you know what you are doing, that approach should work fine; the "standard procedures" are there to guide people who have little experience and to provide a cookbook for how to do it.
    I am not sure about version 10.1, but in Instant Client 10.2 everything except for the Instant Client shared library (in 10.1 that is oraociei10.dll) is the same as the regular client. The Instant Client shared library contains messages and similar, so probably has no influence on a code bug as you experience it.
    What I would do in your case is to install the regular client on a test machine, apply the patch there and see if the problem is fixed there.
    If not, you have a better case for Oracle support, because they understand the regular client much better.
    If it works there, replace the Instant Client shared libraries with the files from the regular client and see if it works.
    In the case that the error persists, I guess there's no way around a Service Request, because nobody except for Oracle can look into the code.
    Yours,
    Laurenz Albe

  • PHP 4.3.11 Oracle Instant Client  10.1.0.4 and my firewall

    I've successfully compiled php with oci8 instant client support.
    The web server is in the DMZ and Oracle on a windows machine in my
    local net .. I've set up my firewall to allow the communication
    betweeen my web server and the oracle machine by freeing the
    standard port 1521.
    when I call the ociplogin function I pass as server argument //192.168.10.3:1521/medDB which match my oracle server configuration.
    As result I become
    Warning: ociplogon(): ociopen_server: ORA-12541: TNS:no listener
    Well I've checked my firewall ad I noticed it blocked connections from
    my web server to my oracle on the port 1035.
    Today I rebooted the web server .. restarted apache
    and on the firewall I had the same blocking
    but this time on the port 1044.
    Someone knows something about this strange behaviour ?
    thank you in advance
    Alex

    Hi,
    Here is the link where you can find the ports : http://www.freshports.org/search.php?query=linux-oracle-instantclient-&search=go&num=10&stype=name&method=match&deleted=excludedeleted&start=1&casesensitivity=caseinsensitive
    One question :
    I'm trying to run sqlplus, but have a pb of version :
    (sh)$ sqlplus
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libsqlplus.so)
    sqlplus: /lib/libpthread.so.0: version `GLIBC_2.3.2' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libclntsh.so.10.1)
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libclntsh.so.10.1)
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libclntsh.so.10.1)
    sqlplus: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /compat/linux/usr/lib/oracle/10.2.0.1.20050713/client/lib/libnnz10.so)
    I had the same problem when I tried to compile directly from the client.
    I can't find GLIBC_2.3.3 on FreeBSD 5.3.
    Do you know if it works with another version of FreeBSD ? or should I install an emulator (I tried red hat 8.8, but doesn't work)? I tried to compile glib2.3.3, but it hasn't been ported on FreeBSD.
    Anyway, I will try with redhat9.
    Thanks,
    Basha

  • 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

  • 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

  • Instant Client 10.1.0.3 and 8i

    I finally got PHP 4.3.11 compiled with Instant Client however I get an error that my database is not supported/
    I know that the latest release of the Instant Client allows for 8.1.7.x but will Instant Client ever support 8.1.6.x?
    Andrew

    Hi,
    I've tried nearly the same today (but with 8.1.7) and also had no success.
    When does the error occur? What is its description?

  • When Instant Client for AIX 5L 32 and HP-UX PA-RISC 32 are released?

    Does anyone know when Instant Client for AIX 5L 32 might be release?
    and also, Instant Client for HP-UX PA-RISC 32 ?

    There isn't much to check. This is the Instant Client and it was downloaded specifically for the 32-bit PA-RISC platform. The "documentation" simply says I should set the "LD_LIBRARY_PATH" environment variable to include the directory where I unzipped the files. It is obviously looking at the libraries when I load my application, otherwise I would get a different type of error message along the lines of "missing Oracle client". FYI, This is not one of the newer 8x00 chips which support 64-bit addressing, but that is the point of the 32-bit option. I assumed this was compiled for my platform (which more specifically is an HP PA-RISC 7300LC 160MHz processor with 768MB RAM). I know this isn't the most modern box, but I would like to have a simple lab environment for my ERP application and save the hassle and additional expense of aquiring a 64-bit compatible workstation. I figure what I have works well with my application, and there is no 9i 32-bit client...so why not try the 10g Instant Client which should be backwards compatible with my database. BTW, the database is not running on this box, it's on a remote server which does support 64-bit and happens to be running Oracle 9.2.0.4.

  • Instant Client 10.2.0.4 and Warehouse Builder 11.2 on Same Machine

    Previously we used instant client 10.2.0.4 on our development box to connect to 8.1.7.4 and 10.2.0.4 databases. After installing warehouse builder 11.2 we could no longer connect to 8.1.7.4 since the environment was updated to use the 11.2.0.2 client from warehouse builder.
    Attempting to fix that, i changed the PATH setting in Windows to put the instantclient directory ahead of the OWB path. Even after restarting, connections to 8.1.7.4 fail with ORA-03134.
    How can I get instantclient 10.2.0.4 working without uninstalling OWB?

    Client 11g can only connect to 9iR2 onwards only.
    You also have to look for ORACLE_HOME environment/registry variable and remove the 11.2 directories from the PATH.
    If possible use a batch script specific to the versions you want to use and set the PATH/ORACLE_HOME appropriately.

  • Which OCI Client works for Oracle7.3 and Linux (C++/qt)???

    Hello all,
    we must connect to a oracle7 server from a linux box.
    I can't connect to the oracle7 server with the Oracle client 9/10/11...
    Can I use, for example, the "Oracle 9/10 client"?
    Some forums entries says, that this was not possible.
    JDBC THIN driver works from several client versions, so I'm a little confused;()
    Any hint?
    Best regards
    Andre

    Hello Nigel,
    thanks for your hints!!!
    OCI doesn't work like JDBC - so compatibility matrix is different. There was a major change to OCI - around version 9 time?May be, I need a Client for oracle7.3 server...
    Where can I download the correct client for this version (C/C++ Linux)?
    Is there anywhere archived? On oracle.com I found only client packages for Version 9 and above;()
    From OCI Programmers Guide 10g: The server versions supported currently are found on Oracle iSupport in note 207303.1. See the URL
    http://metalink.oracle.com/
    From the 9.2 Migration Guide: For OCI, Oracle7 client software can run against a release 8.0 or higher Oracle server, and release 8.0 and higher client software
    can run against an Oracle7 server. Hmm, should work with simple calls. I can't connect with sql_plus to the oracle machine, may be there is a wrong configuration...
    If a release 8.0 or higher client is running against an Oracle7 server, then the application cannot use features available in
    release 8.0 and higher, including object capabilities.
    I believe you may have a problem if you use version 9 style OCI calls rather than the version 7 style. See Upgrading your application.I will use the correct client for oracle7.3, but where can I download them???
    We haven't a "Support Identifier", so I can't register me on "metalink.oracle.com".
    Best regards
    Andre

  • Compilation and use of instant client

    I have two questions:
    1. Can I compile a ProC and OCI program with Instant Client (10.1.0.4 or 10.2)? If so, how do I do it? what settings need to be done?
    2. Oracle 10g can be installed on SunOs 5.8 and above. Can I use Oracle Instant Client (which is 10g also) on lower level machine, like SunOs 5.7 ? Is there a matrix which shows the platform that instant client can be used?

    Thanks Toliver for the quick answer.
    I still have some missunderstanding regarding the second question.
    I saw Oracle's Client/Server interoperability matrix, but this matrix (at list the one I looked at) only stated the combination of which client version can work with which Oracle's Server version.
    The senario I am interested in is this:
    I compile a C program which uses ProC and OCI in SunOs 5.8, against Oracle server 10.1.0.4.
    Now, the program need to use Instant Client 10.1.0.4, and connect to 8i, 9i, and 10g databases.
    The tricky part is that the program actually runs on SunOs 5.7 (where SunOs 5.7 is not stateted as a platform for 10g), but the 5.7 machine is not where the database is. The program connects other machines which has 8i,9i and 10g databases.
    Will It work?

  • PHP OCI8 1.4.4 and Instant Client 11.2.0.2 are available

    PHP OCI8 1.4.4 is available from PECL: http://blogs.oracle.com/opal/2010/11/pecl_oci8_144_is_available.html
    Instant Client 11.2.0.2 for Linux & Solaris is available from http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
    They can be used separately or together :)

    I opened a Service Request with My Oracle Support.  Here is the response.
    Q1 answer:Yes.
    Q2 answer: yes, ETA is next patchset release Q3CY2013

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

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

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

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

  • Instant client basic package usages needed

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

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

  • Instant client with Oracle 8i server

    I am pretty new to Oracle.
    I just installed instant client on my xp workstation, and set up all the variable. I am trying to connect to a Oracle 8i server.
    Can instant client connect to Oracle 8i?
    Thank you!

    Although the 10.1.0.3 instant client for windows doesn't appear to be "officially out", if I try to download
    http://download.oracle.com/otn/nt/instantclient/instantclient-basic-win32-10.1.0.3.zip and similar files, the files do exist.
    Unfortunately this version still can't connect to my corporate Oracle database:
    Oracle8i Enterprise Edition Release 8.1.6.0.0, 64 bit - Production
    With the Partitioning option
    JServer Release 8.1.6.0.0 - Production
    Oh well, back to a full client install of Oracle 9i.
    Perhaps the official release when its documented on the Instant Client download page will work.
    Jamie

Maybe you are looking for