Compiling against the 10g Instant Client in Linux

Does anyone know if it's possible to compile and successfully link C++ programs that use the occi header against the 4 shared occi libraries that come with the 10g instant client.
I dug out the 30 or so header files that come with the full 10g Linux version and stuck them in the /usr/include directory. This allows compilation to get done. And it appears that I am able to link against the shared libraries. At least, after the link there is an executable. This executable seg faults immediately upon a run, so there is obviously something wrong.
The system administrator is trying to do a full install of 10g so we can compile against an Oracle home, but he's been at it for about a week with no results. He was able to get the Instant Client set up, so I'm looking for a workaround that uses only the IC and the headers.

Thanks for the feedback.
We aren't using a 3.xx version of gcc; it's some 2.9x version.
Are you saying that it should be possible to link up with the shared libs without a full client install? If it is, I'll keep plugging away; but I haven't found anyone anywhere who has at any time gotten it to work.

Similar Messages

  • 10G Instant client and import command

    Hi all,
    Am using the 10G instant client and need to use the import command through this client but cannot find it anywhere. Does the 10G instant client provide this functionality or anyone know of a workaround for this.
    All replies much appreciated,
    Tom

    Thats a pity. I thought I read someplace that you dont lose any client functionality by using the instant client as opposed to using the client cd install. Is it just that the instant client replicates the connection functionality of a normal 300mb client install?

  • Oracle 10G instant client..

    Hi,
    we are upgrading Bw 3.1c to NW04s BI 7. Apart from this we need to upgrade oracle 9i to 10g.As far as oracle 10g client is concerned, Is it mandatory to use the oracle instant client? Otherwise we can still use the old oracle client?
    Please let me if anybody has any idea about it.
    Thank you in advance.
    SS

    Hello SS,
    From NW04S kernel 7.00 onwards oracle instant client is mandatory.Instant Client is a smaller version of the oracle client software which is being shipped with SAP kernels 700 onwards.The basic philosophy that the version of the client software depends on the version of the SAP kernel.The SAP kernel 700 and upwards are all linked against Oracle 10g. Hence the Oracle 10g client software needs to be installed on all 700 kernel based application servers.
    Please refer to snotes: 819829 and 180430.
    Thanks
    Mohan

  • 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

  • Please help me to debug a bug for instant client on linux x86-64

    I am a c junior programmer, I wrote a c demo based on <Call Interface Programmer's Guide>,but i found failed sometimes and successful somtimes when i run my demo on linux x86-64.
    I wondered why it was failed sometimes and successful sometimes, so i used command strace to debug my demo.
    I found my demo was failed when called function getsockopt  whose third argument was negative. The following code:
    getsockopt  (5, SOL_SOCKET, SO_SNDBUF, [-8683868481690533888], [4]) = 0
    my demo run successful when the third argument of function getsockopt was positive.The following code:
    getsockopt(5, SOL_SOCKET, SO_SNDBUF, [4636081913715490816], [4]) = 0
    I downloaded rpm package of instant client for linux x86-32 and installed, the same demo worked perfectly on linux x86-32.
    Did instant client for linux x86-64 has a bug?
    any advise would be great.
    Thank you!

    thanks.
    I have solved this problem that result in my c demo.
    I was a wrong way to use this function OCIBindByName. I ignored it's Indicator Variables must be 0 , -1 or -2.

  • Can someone explain what is the Database Instant Client

    Download 10.2.0.4 Database Instant Client for Apple Mac OS X on Intel x86
    What does the Database Instant Client contain?
    What functionality does it have?
    Does it include a 'lite' version of the database to run locally? Or is it only a set of tools that can connect to a remote (on another machine) database?

    It is only a client for connecting to databases. It is easier to install than the full client.
    It does not include a database. Check the following link :-
    http://www.oracle.com/technology/tech/oci/instantclient/index.html
    http://www.ContractOracle.com

  • Anyone know where I can download the 10g Oracle Client?

    My LAN copy of the 10g Oracle Client was deleted a while ago. I've not needed it for a long time but now I've need for it. I see that you can't download it from Oracle any longer or if you can, I don't see where to get it off of OTN. Anyone know where I can download 10g R2 client?

    JSebastian wrote:
    My LAN copy of the 10g Oracle Client was deleted a while ago. I've not needed it for a long time but now I've need for it. I see that you can't download it from Oracle any longer or if you can, I don't see where to get it off of OTN. Anyone know where I can download 10g R2 client?Unfortunately, 10g as Sb has mentioned , is now no longer available for download. So your only way out would be to go via Support.
    Aman....

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

  • 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??? :)

  • Instant Client on Linux Suse 9 + PHP + APache

    Hello Everybody!
    My task is to install Instant client on NowellSuse Linux 9 for futher connections from PHP.
    For the beginning I downloaded and installed
    http://download-uk.oracle.com/otn/linux/instantclient/oracle-instantclient-basic-10.1.0.2-1.i386.rpm
    http://download-uk.oracle.com/otn/linux/instantclient/oracle-instantclient-jdbc-10.1.0.2-2.i386.rpm
    http://download-uk.oracle.com/otn/linux/instantclient/oracle-instantclient-sqlplus-10.1.0.2-1.i386.rpm
    Instalation was done using rpm -Uvh ... as in InstantClient guide was described.
    Now I want to test if it was installed well.
    To do this i created such env vars:
    LD_LIBRARY_PATH, ORACLE_HOME, TNS_ADMIN
    TNS file (tnsnames.ora) I created manually at dir etc/oracle/
    Maybe this is the problem?
    TO check instalation I run sqlplus user/pass@BASE and get errors:
    1. wrong ADDRESS
    2. that tns name not specified
    I checked if tnsnames.ora is correct, everything was fine.
    But I also noticed that in error log user was ROOT but not that I specified...
    As my knowledge in Linux is very small, so I can think that I just did not do something neccesary. I read a lot of different discussions but not find reason.
    Please help. Best regards.
    null

    Thanx!
    Now sqlplus works but only when I connect using
    sqlplus user/[email protected]/service
    If I first run sqlplus than enter user, than password (on requests) the error that service name specified wrong appears...
    tnsnames.ora is like this:
    service=
    (DESCRIPTION=
    (ADDRESS=(PROTOKOL=tcp)(HOST=10.10.10.1))
    (CONNECT_DATA=
    (SERVICE_NAME=service)))
    path of TNS_ADMIN is set to /usr/lib/oracle/10.2.0.1/client/network/admin/tnsnames.ora
    So is this error OK when connection is done in different way, or not?
    Regards.

  • Instant Client for Linux Sparc64

    Does anyone know if the Instant Client will be made available for Sparc64 running Linux.

    Hi,
    You can read Note:391116.1 from Oracle Metalink
    Cheers

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

  • Missing sdk download for instant client for Linux

    Hi,
    I'm following Ubuntu community documentation here https://help.ubuntu.com/community/PHPOracle to get started developing php/oracle applications.
    My problem is that the sdk download is missing. It is in the list here http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html but the link for it is missing. I don't see anything else looking like sdk or development files for instant client.
    Can anyone tell me where the download is?
    Thank you

    How about the following link:
    http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

  • Oracle 10g instant client installation

    hi,
    im trying to install the instant client needed on our sparc solaris server and i have a little background on solaris and java (took a few classes in college) and now i'm being asked to install the instantclient to our server.
    according to the instructions on the link:
    http://download.oracle.com/otn/solaris/instantclient/111060/basic-11.1.0.6.0-solaris-sparc64.zip
    however, im not really used to the open source environment and i have already followed up to the step 3, i extracted the files to a to the directory /oracle/app/instantclient and typed the command "export LD_LIBRARY_PATH=/oracle/app/instantclient" and now i have no idea what to do next. i tried running all of the other files in the zip file but i only encounter errors.
    pls help me T_T

    953576 wrote:
    Hi,
    I have an application that uses Oracle 11gr2. For the Oracle client installation, I first install InstantClient and then run the setup again, choose Custom, and choose "Oracle Database Utilities" since the InstantClient doesn't have exp/imp with it.
    My question is, instead of doing 2 steps for installation, how can I just do it once? What corresponding option(s) do I have to select in Custom mode to install InstantClient? Here's a link to a pic for the complete list of items available: http://i.stack.imgur.com/gUT7g.jpg
    Thanks.
    "choose?"
    "Custom"?
    an installation GUI?
    That doesn't sound like Instant client.
    That sounds like the normal fat client.
    What is the name of the file you downloaded?

  • How to uninstall Oracle 10g instant client from Windows XP?

    Thanks.

    http://www.oracle-base.com/articles/misc/ManualOracleUninstall.php
    Nicolas.
    Oops, maybe link not about instant client... sorry.
    Message was edited by:
    N. Gasparotto

Maybe you are looking for

  • Firefox 18 crashes frequently but working fine in Safe Mode (EXCEPTION_ACCESS_VIOLATION_READ)

    After update to Firefox 18 Firefox keeps crashing within few mins of opening. At the time of crashing Firefox Freeze and CPU usage rise upto 50% in my Windows 7. NO matter how many tab I open in my Firefox even Firefox crash when I just open 1-2 tab.

  • Mulitiple, independent animations in a single file

    It seems from all the adobe help files i read, this is possible, but i can't figure out how to do it. More specifically, i want to know how i can control multiple images (animations) in sequence within a single gif (say, a banner, for instance). eg:

  • Problem with Pages update

    Has anyone had a problem opening pages documents and it telling you that you need to update to the new pages but you already have? 

  • What webcams are G25 users using?

    Hello, I'm having the same audio compression (chipmunk sound) issue as one of the other users, when I use the 'QuickCam for Notebooks Pro'. I tried using another camera and it worked fine, but it would not clip on to the thick screen of my G25. Can a

  • GarageBand - How to set different BPM for each track?

    Hi, for the last couple of years, I've been using Sony Acid on my PC to mix multiple tracks to make blends and remixes of songs. I've just switched of the a MacBook, and am trying to get Garage Band to do the same. I'm curious whether or not I can se