Oci libraries in 11gR2 linux

Hello,
I have an application which needs the oci interface.
I need to run it on 11gR2 (linux x86)
OCI Used to be in rdbms/lib/getopt.o
getopt.o is no longer in 11gR2 (linux 32).
The application fails to compile since the OCI definitions are missing.
Does anybody know if it the name of the library was changed ?
or
where to get the getopt file so we can link it ?
Thanks in advance,
kim

OCI does not need getopt.o, your application that maybe need getopt.o.
Probably your application cannot compile because LD_LIBRARY_PATH is not set yet.
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:${LD_LIBRARY_PATH}
make # compile your application

Similar Messages

  • Unable to find Oracle OCI libraries on Centos 6.3

    Hello,
    I am having an issue with configuring an application(Zabbix) to use OCI on clean image of CentOS 6.3.
    checking for Oracle OCI headers in /usr/include/oracle/11.1/client/... yes
    checking if Oracle OCI version is >= 10.0... yes
    checking for Oracle version >= 11.x to use -lnnz11 flag... yes
    checking for Oracle OCI libraries in /usr/lib/oracle/11.1/client/lib/... not found
    checking if Oracle support is enabled... no
    I try to perform configuration of the source like this:
    $ ./configure with-oracle with-oracle-include=/usr/include/oracle/11.1/client with-oracle-lib=/usr/lib/oracle/11.1/client/lib enable-server enable-agent enable-java
    config.log has this:
    configure:7084: result: no
    configure:7089: checking for architecture
    configure:7128: result: linux (linux-gnu)
    configure:7132: checking for the linux kernel version
    configure:7139: result: 2.6 family (2.6.32-279.el6.x86_64)
    configure:7810: checking for Oracle OCI headers in /usr/include/oracle/11.1/client
    configure:7837: gcc -c -g -O2 -I/usr/include/oracle/11.1/client conftest.c >&5
    configure:7837: $? = 0
    configure:7846: result: yes
    configure:7878: checking if Oracle OCI version is >= 10.0
    configure:7895: result: yes
    configure:7913: checking for Oracle version >= 11.x to use -lnnz11 flag
    configure:7919: result: yes
    configure:7941: checking for Oracle OCI libraries in /usr/lib/oracle/11.1/client/lib
    configure:7961: gcc -o conftest -g -O2 -I/usr/include/oracle/11.1/client -rdynamic -L/usr/lib/oracle/11.1/client/lib conftest.c -lm -lrt -lresolv -lclntsh -lnnz11 >&5
    /usr/bin/ld: skipping incompatible /usr/lib/oracle/11.1/client/lib/libclntsh.so when searching for -lclntsh
    /usr/bin/ld: cannot find -lclntsh
    collect2: ld returned 1 exit status
    configure:7961: $? = 1
    configure: failed program was:
    | /* confdefs.h */
    result of *'rpm -qa | grep oracle'* is:
    oracle-instantclient11.1-odbc-11.1.0.7.0-1.i386
    oracle-instantclient11.1-basic-11.1.0.7.0-1.i386
    oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.i386
    oracle-instantclient11.1-devel-11.1.0.7.0-1.i386
    oracle-instantclient11.1-tools-11.1.0.7.0-1.i386
    oracle-instantclient11.1-jdbc-11.1.0.7.0-1.i386
    result of *'ls -l /usr/lib/oracle/11.1/client/lib'* is:
    total 136808
    -rw-r--r--. 1 root root 342 Oct 26 2008 glogin.sql
    lrwxrwxrwx. 1 root root 17 Feb 28 16:43 libclntsh.so -> libclntsh.so.11.1
    -rw-r--r--. 1 root root 37174788 Oct 26 2008 libclntsh.so.11.1
    -rw-r--r--. 1 root root 11159 Oct 26 2008 libheteroxa11.so
    -rw-r--r--. 1 root root 5974910 Oct 26 2008 libnnz11.so
    lrwxrwxrwx. 1 root root 15 Feb 28 16:43 libocci.so -> libocci.so.11.1
    -rw-r--r--. 1 root root 2333632 Oct 26 2008 libocci.so.11.1
    -rw-r--r--. 1 root root 85112897 Oct 26 2008 libociei.so
    -rw-r--r--. 1 root root 129297 Oct 26 2008 libocijdbc11.so
    -rw-r--r--. 1 root root 1510045 Oct 26 2008 libsqlplusic.so
    -rw-r--r--. 1 root root 1122713 Oct 26 2008 libsqlplus.so
    -rw-r--r--. 1 root root 771229 Oct 26 2008 libsqora.so.11.1
    -rw-r--r--. 1 root root 1890499 Oct 26 2008 ojdbc5.jar
    -rw-r--r--. 1 root root 1988051 Oct 26 2008 ojdbc6.jar
    -rw-r--r--. 1 root root 1656243 Oct 26 2008 orai18n.jar
    -rw-r--r--. 1 root root 82979 Oct 26 2008 orai18n-mapping.jar
    -rw-r--r--. 1 root root 299638 Oct 26 2008 ottclasses.zip
    result of *'uname -a'* is:
    Linux localhost.localdomain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    Any help would be appreciated.

    Oracle is NOT certified on Centos
    V11.1 Oracle is NOT certified on V6 kernel
    so You're On Your Own (YOYO)!

  • Want  to download OCI libraries Oracle 9.2

    Hi,
    I found that OCI libraries are not installed as part of my client installation ( I checked in $ORACLE_HOME/rdbms/demo already)
    Can anyone point me to the OCI libraries download link.
    Here is my current congiguration:
    Oracle version : 9.2.0
    Linux version : Red Hat Linux release 7.3
    gcc version : gcc-2.96
    Any help would be greatly appreciated.
    Thanks ... In advance
    Ravi.

    Hi Ravi,
    OCI libraries should be installed as part of a client install. The libraries can be found
    under $ORACLE_HOME/lib. The $ORACLE_HOME/rdbms/demo directory contains
    demo programs which must be installed through a companion CD.
    You can also download demo programs here:
    http://www.oracle.com/technology/sample_code/tech/oci/index.html
    By default, all programs are dynamically linked with the client shared
    library. You can use the $ORACLE_HOME/rdbms/demo/demo_rdbms.mk
    makefile to build the programs.
    Rgds
    Amogh

  • Oracle Client Installation 11.2.0.2 with OCI libraries

    Hi All,
    I need to install Oracle Client 11.2.0.2 with OCI libraries. How to install the OCI libraries, where can I find the install files for OCI.
    Thank you

    Hi;
    Please see:
    Want  to download OCI libraries Oracle 9.2
    Also see:
    Master Note for Precompilers, OCI and OCCI [ID 1129588.1]
    Regard
    Helios

  • 11gR2 Linux DB and 11gR1 Windows client

    Are there any issues with using 11gR2 DB (Linux) and connecting via 11gR1 client (Windows). I'd like to start using R2 DB but if there are any issue I'll wait.

    revo1059 wrote:
    Are there any issues with using 11gR2 DB (Linux) and connecting via 11gR1 client (Windows). I'd like to start using R2 DB but if there are any issue I'll wait.No issues.You can connect your database in 11gR2 linux to windows 11gR1 client.Use database string on Windows.

  • Download Oracle Grid Infrastructire 11gR2 linux 64-bit

    please somebody can tell me from where i can download Oracle Grid Infrastructire 11gR2 linux 64-bit.

    Hello,
    Which the link to download 11gR2 Grid Infrastucture on HP-UX 11.31. I am looking. Hard to find.
    Thanks --Mohan.                                                                                                                                                                                                                                                               

  • OCI in 8i for Linux

    Finally after several attemps I have Oracle 8i installed, but I
    seem to be missing the OCI headers and libraries for C/C++.
    Before I go through the hell of trying to install it again, are
    they included with the linux 8i release or did I miss them
    somehow?
    Thanks
    Steve Ramsay
    [email protected]
    null

    Steve Ramsay (guest) wrote:
    : Finally after several attemps I have Oracle 8i installed, but I
    : seem to be missing the OCI headers and libraries for C/C++.
    : Before I go through the hell of trying to install it again, are
    : they included with the linux 8i release or did I miss them
    : somehow?
    : Thanks
    : Steve Ramsay
    : [email protected]
    Headers are in $ORACLE_HOME/rdbms/demo. It works for me.
    I was able to compile and link the programs I originally
    tested on SPARC Solaris 2.6 & 7 with Oracle 8.0.5.1. Send
    me an email and I'll send you the programs and the makefile.
    Did you install OTT? (Oracle Type Translator)
    null

  • Rfc static libraries for Unicode (Linux)

    Hi all!
    Does anybody know if it is possible to use RFC static libraries for Unicode on Linux?
    I can compile and link my application, but when I am running it, I get message:  "undefined symbol: strtolU16". librfcu.a  is the only static library, which is provided in RFCSDK. Do I need to link my application with any other library?
    Everything works fine with non-unicode static library.
    Thank you in advance,
    Elena

    Oracle does not provide any static libraries for MS Windows.

  • 11gR2 linux 64bit EMCA fails

    I have a 64 bit install of Oracle 11gR2 [11.2.0.0] on Linux which is up and running but can not configure the enterprise manager.
    Running "$ORACLE_HOME/bin/emca -config dbcontrol db -repos recreate" fails with:
    oracle.sysman.emcp.EMReposConfig invoke
    SEVERE: Error uploading configuration data to the repositroy
    oracle.sysman.emcp.EMConfig perform
    SEVERE: Error uploading configuration data to the repository
    Could not complete the configuration.
    I have tried the various workarounds for 11gR1 that I found on the Internet (including set LC_ALL=en_US); I have turned off SELinux; I have turned off the firewall.
    I can use sqlplus or Toad to connect to the database with sys/password@db as sysman and perform operations there.
    Any hints and tips gratefully received.
    Thanks.
    Edited by: user533956 on Oct 6, 2009 10:52 AM

    So, after a bit more looking, I found this: 11gR2 Fresh Install , Enterprise Manager dbconfig failure.
    Explicitly setting TZ=UTC fixed the problem.

  • 12c OCI Instant Client for Linux is on OTN

    The Oracle Database 12c Linux x86 and x86_64 Instant Client bundles were pushed to OTN a few minutes ago:
    Instant Client downloads for Linux x86
    Instant Client downloads for Linux x86-64
    Other platforms are still pending.
    (The top level page for Instant Client is http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html)

    just curious... which distro are you running on SPARC 64??? :)

  • Installing 11gR2 (linux.zseries64) on oracle linux 5 guest system failed

    Dear experts,
    I decided to post a detailed thread since it seems my last thread is totally forgotten. Hopefully, this thread could clarify my problem of installing oracle database 11.2.0.2 in oracle linux guest system in windows 7 host system. Sorry about that.
    I installed oracle linux 5 update 6 x86_64 bits guest system in my windows 7 host using oracle virtualbox 4.2.12 so that I can install oracle database 11.2.0.2 (linux.zseries64_11gR2_database_1of2.zip, linux.zseries64_11gR2_database_2of2.zip). The oracle database I downloaded has some functions which are not available in 11.2.0.1. These two disks are extracted in a shared folder.
    I followed the instructions in a guide to run the installation:
    # yum install oracle-validated
    It succeeded. and, I used uname -a to return this additional information:
    "Linux localhost.localdomain 2.6.32-400.26.2.el5uek #1"
    Then I set these below:
    SELINUX=permissive
    mkdir -p /u01/app/oracle/product/11.2.0/db_1
    chown -R oracle:oinstall /u01
    chmod -R 775 /u01
    xhost + 127.0.0.1
    and, added something in .bash_profile:
    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR
    ORACLE_HOSTNAME=127.0.0.1; export ORACLE_HOSTNAME
    ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=DB11G; export ORACLE_SID
    PATH=/usr/sbin:$PATH; export PATH
    PATH=$ORACLE_HOME/bin:$PATH; export PATH
    LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
    CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
    Then, I set DISPLAY environment in terminal:
    export DISPLAY=127.0.0.1:0.0
    Finally, I logged into the guest system as a user, not root, to run the installation. However, I got the frustrating error message:
    [hsl@localhost database]$ ./runInstaller
    ./runInstaller: line 254: /media/sf_My_Share/Oracle/database/install/.oui: cannot execute binary file
    Can anybody please give some advices to fix the problem. The installation is very important to me. Thanks a lot in advance.
    hong

    Hi,
    Yes , its 11.2.0.2
    by the way mine is look like this
    [oracle@node2 ~]$ cd /media/share
    [oracle@node2 share]$ ls -lt
    total 0
    drwxrwxrwx 1 root root 0 Nov  9  2012 Asmlib
    drwxrwxrwx 1 root root 0 Aug 18  2009 DB11g
    drwxrwxrwx 1 root root 0 Aug 18  2009 grid11g
    [oracle@node2 share]$ cd DB11g
    [oracle@node2 DB11g]$ ls -lrt
    total 10
    -rwxrwxrwx 1 root root 4352 Aug 13  2009 runInstaller
    drwxrwxrwx 1 root root    0 Aug 13  2009 rpm
    drwxrwxrwx 1 root root    0 Aug 13  2009 install
    drwxrwxrwx 1 root root    0 Aug 13  2009 stage
    drwxrwxrwx 1 root root    0 Aug 13  2009 sshsetup
    drwxrwxrwx 1 root root    0 Aug 13  2009 response
    drwxrwxrwx 1 root root    0 Aug 16  2009 doc
    -rwxrwxrwx 1 root root 5400 Aug 17  2009 welcome.html
    [oracle@node2 DB11g]$

  • How to install pcbcfg.cfg it is missing while installing 11gr2 linux 5.5

    Hi,
    we have install the oracle DB 11gr2 server enterprises version on RHEL 5.5 64bit.in this cobol component are missing.the file pcbcfg.cfg is not there.
    pls tell us how to configure/install this.
    path where we are looking it.
    path : oracle_home/precomp/admin.
    Thanks in advance.
    Chander

    Server installation does not install Pro*Cobol. You need to install client too to get Pro*Cobol
    To get Pro*Cobol working you also need a cobol compiler.

  • OCI 11gR2 Trapping Linux Signals

    Greetings,
    Is there any documentation that might allude to any possible changed signal behavior with OCI for 11gR2 on Linux platform?
    We currently have handlers that call abort() as well as dedicated SEGV and other handlers that are appearing to be broken when run as background processes when linked with Oracle 11gR2 OCI libraries. This would be under RH 5.4 and using Oracle Client for 11gR2. For example, when we call abort(), no core is dropped in certain background processes. If we first set the default handler- either through signal SIG_DFL or with sigaction prior to calling abort(), this drops a core as expected. If we link with other libraries, this problem also goes away.
    What we really need is some way to ensure cores are dropped or what to setup to collect cores. Our work-around for abort() works for those occasions, but we're now losing executables with no trace and no core to be found only when linking with OCI 11gR2 libraries.
    Any insights greatly appreciated! Thank you!
    Edited by: 785338 on Jul 29, 2010 6:00 PM

    See also: Re: Oracle-DB-Client 11R2 with perl-DBD: Eating Signal CTRL-C
    Edited by: Ulrich Weiss on May 4, 2011 1:53 AM

  • OCI on Linux

    Hi,
    I am trying to use the OCI libraries to connect to Oracle (and then do something worthwhile). This is what I did so far:
    1. Built a development box with Celeron 400 Mhz, redhat 6.2.
    2. Created a directory structure for oracle similar to an existing box that had oracle server on it.
    3. Copied all the header files from the directories ORACLE_HOME/rdbms/demo, ORACLE_HOME/rdbms/public and ORACLE_HOME/network/public
    3. Copied the libraries "libclnsh.so" and "libwtc8.so" to ORACLE_HOME/lib
    4. Wrote a test program, within which I have the following:
    <snip>
    OCILogon(envhp, errhp, &svchp,
    username, (ub4)strlen((char*)username),
    password, (ub4)strlen((char*)password),
    server, (ub4)strlen((char*)server));
    </snip>
    5. Compiled and ran successfully. But couldn't connect. For the above "OCILogon", this is what I get:
    main.c(74): Error - OCI_ERROR:
    Error while trying to retrieve text for error ORA-12154
    6. Copied the file "tnsnames.ora" to the directory ORACLE_HOME/network/admin (from the db server). This is what it contains:
    #begin
    SEIPL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.0.151)(PORT = 1521))
    (CONNECT_DATA =
    (SID = seipl)
    #end
    7. Recompiled and ran and got the same error again.
    8. Added "ORACLE_HOME" in my ".bash_profile" and re-ran and got the same error.
    I did NOT install oracle client on the development box, since I read (a long time ago), that all I need is these libraries.
    Any ideas, whats missing? Anything I am doing wrong?
    TIA,
    manav.

    I'm not sure what you are doing wrong, but as far as I remember, you should be able install the OCI libraries without the client and the rest of the software that comes with it.

  • Instant Client for Linux for SPARC 64?

    I'm running Linux on SPARC64 and I would like to compile PHP with the OCI module... BUT I cannot.
    I either run in to TLS problems (which get fixed with LD_PRELOAD=libclntsh.so ) or I run in to missing Sun libraries (as expected, but I found no ports) like libkstats.
    Is it possible to do what I want to do? I have thought about using the PHP and JavaBridge, but that doesn't seem to mean I don't have to use OCI libraries (libclntsh and etc)... and may be a huge performance hit (two interpreted languages? UGH!)
    Ideas?

    just curious... which distro are you running on SPARC 64??? :)

Maybe you are looking for