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.

Similar Messages

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

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

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

  • 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

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

  • Problème pour télécharger instant client pour linux 64bit

    Bonjour,
    Lorsque je télécharge les archives du client oracle sur la page:
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
    je n'obtiens que des archives vides.
    je veux installer le client oracle sur une machine linux x86_64 bi-opteron.
    Merci

    Imagine if each of us write in his language...Áno, to by bolo vážne zlé... :-)
    Yes, that will be really bad...
    Maybe you will be surprised but I was learning French langauage for two years on high school.
    Later we switched to english (I don't know the reason why), so my sentence wasn't just compliment. ;-) Today I can remember just few phrases. :-(

  • Instant Client problem with php 5.1.4 install

    Hello,
    I'm trying to get my php 5.1.4 compiled using the oracle 10.2.0.1 instant client.
    I configure the php install with the following ..
    ./configure --with-apxs2=/usr/local/apache2/bin/apxs
    prefix=/usr/local/apache2/php with-ldap
    with-oci8=instantclient,/usr/lib/oracle/10.2.0.1/client/lib enable-sigchild
    --with-config-file-path=/usr/local/apache2/conf
    However during the make ( towards the end ) i get the following ....
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `pthread_cond_signal@GLIBC_2.3.2'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `__ctype_b_loc@GLIBC_2.3'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `pthread_cond_broadcast@GLIBC_2.3.2'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `pthread_cond_destroy@GLIBC_2.3.2'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `pthread_cond_timedwait@GLIBC_2.3.2'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `pthread_cond_wait@GLIBC_2.3.2'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `pthread_cond_init@GLIBC_2.3.2'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `__ctype_toupper_loc@GLIBC_2.3'
    /usr/lib/oracle/10.2.0.1/client/lib/libclntsh.so: undefined reference to `__ctype_tolower_loc@GLIBC_2.3'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1
    Any help would be appreciated
    Thanks

    I've got the same problem, running on redhat 7.3, using gcc 3.43, php 5.1.4, instant client 10.2, installed via unzipping the oracle instant clients and being run on apache 1.33. I didn't 'link to pthreads' as I'm not sure what you have to do in order to do this linking. I just run php's configure, make install and let it go and it dies.
    Any help would be appreciated.

  • Help Using Instant Client ODBC on Linux

    I am familiar with using ODBC and visual basic under Windows. I would like to use the Oracle instant client ODBC under Red Hat ES3 within a C or C++ program to access an Oracle database.
    Where can I find documentation related to this:
    a) setting up an ODBC connection on Linux
    b) installing the Oracle instant client on Linux
    c) building an application with Oracle instant client ODBC
    Am I correct in assuming that any C/C++ ODBC code examples from windows could also be used on Linux.
    Thanks,
    Werner

    We are also interested in the very same thing. We are using third party compiler called SIMSCRIPT from CACI which has a module called SDBC for database connectivity. SDBC requires ODBC to be installed/configured. Our application is for Linux, therefore we are interested in using the ODBC driver on Linux clients to connect Oracle database servers on Linux and Sparc. I see the odbc related zip (for 10g) and rpm (for 11g) instant client files on the OTN Instant Client download page. How to install/configure odbc instant client? Is there a document/whitepaper/Metalink Note ?
    Thank you

  • Download old Instant Client Version 10.1.0.4 for Linux

    Hi to all,
    the downloads for version 10.1.0.4 of Oracle Instant Client
    for linux seem to be not available anymore.
    Where can I download the packages:
    instantclient-basic-linux32-10.1.0.4-20050525.zip and
    instantclient-sdk-linux32-10.1.0.4-20050525.zip ?
    Thanks

    for OWB metadata, run this following script
    <OWB_HOME>/owb/reposasst/upg/upg10gTo10104.sql
    For runtime data
    <OWB_HOME>/owb/bin/unix/RT_upgrade_to_10_1
         This is only if it's NOT upgrading to 10gR2 database
    If you are upgrading to Oracle10g Release 2 with partial export and
    import and if you are changing the database instance or the computer
    hosting the database, then run the migration script:
    – For UNIX, navigate to OWB_HOME/owb/bin/unix and run
    RT_migrate_to_10_1.sh.
    The RT_migrate_to_10_1.sh prompts you for several parameters:
    the User Name and Password of your original Runtime Repository
    schema, the database connection string for your original Runtime
    Repository (in the form of host:port:servicename), the User Name
    and Password for your new Runtime Repository schema (whose values
    should match the original Runtime Repository), and the database
    connection string for the new Runtime Repository (also in the form of
    host:port:servicename). Additionally, as it runs, the script prompts
    you for SYS User Names and Passwords for the Oracle Database
    instances for any Target Schemas and Oracle Workflows being upgraded.

  • Updated Instant Client 11.2 for Linux 64 bit is on OTN

    The 11.2 Instant Client for Linux 64bit has been updated on http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/linuxx86_64soft.html
    It is now at the same patch level as 32 bit.

    I just tried to download these as RPMs. I was able to download the basic rpm but the sqlplus rpm and supplemental jdbc rpms failed. Instead of getting a prompt to save the file, content was displayed by the browser (binary content). It appears as is the mime type was not set correctly?
    Brad

  • Instant client ODBC driver for Linux

    I had previously posted this under the ODBC forum, but didn't get a response there.
    I am familiar with using ODBC and visual basic under Windows. I would like to use the Oracle instant client ODBC under Red Hat ES3 within a C or C++ program to access an Oracle database.
    Where can I find documentation related to this:
    a) setting up an ODBC connection on Linux
    b) installing the Oracle instant client on Linux
    c) building an application with Oracle instant client ODBC
    Am I correct in assuming that any C/C++ ODBC code examples from windows could also be used on Linux.
    Thanks,
    Werner

    Hi,
    >>a) setting up an ODBC connection on Linux
    go to http://www.unixodbc.org/
    More information you can take a look on Note:404041.1 from Oracle Metalink
    >>b) installing the Oracle instant client on Linux
    You can take a look on this link below:
    http://www.oracle.com/technology/software/tech/oci/instantclient/index.html
    Cheers

  • 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

  • NVidia to release Drivers that support the Quadro K1000M and K2000M soon??

    I have been checking to see if verde drivers support the K2000M in my W530, but today I saw that nVidia has added the K1000M and K2000M to the product listing on the drivers page. I'm hoping this means that they are gearing up to release drivers for

  • Creating Appication Package that runs just a command line?

    Hi, We are trying to uninstall the endpoint protection client that we inadvertently pushed out to a few machines. Can we configure an application package with no source that just runs the command line as shown on the target computer in the target col

  • Error in executing FAGLGA15

    Hello, I am executing transaction FAGLGA15. I have created cycles for the same. but when i execute i am getting the following message " The segment does not contain any sender" I have checked the segment and it does have sender. Note- When i click on

  • Select single line in ALV with FM REUSE_ALV_GRID_DISPLAY

    Hi! How can i set for select just a single line in ALV? I´m using FM REUSE_ALV_GRID_DISPLAY and in layout structure doesn´t has field SEL_MODE for set. In my ALV, in left site of colum names has a buttom for select all lines. I would like to hide thi

  • Restriction of back ground from end user

    Hi all, i am ABAPer, but i need  to work on authorization issue, I have to restrict our FI End users (8 users) from the back ground job, At present scenario is they can run others job also in SM35 including thier job, recently our company aduit found