Is my PHP + Oracle9i + Instant client setup ok ?

Hello
I have to developp a script in PHP for windows, using an Oracle 9i database.
Here's my setup :
Windows 2003 Server R2 (all patches applied)
PHP 5.2.0
Oracle 9i 9.2.0.1.1
Instant client 10g 10.2.0.2-20060508
Oracle9i was installed in C:\oracle\
Oracle Instant client extracted to C:\dev\oracle\instantclient_10_2
Here 's the PATH env variable (only oracle partis shown):
C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\dev\php5.2;C:\dev\oracle\instantclient_10_2
I deleted the "C:\oracle\ora92\bin" from PATH env variable in order to
the Instant client to be used instead of. Is this a good solution ? Since now I have no more oracle tools available in command line without specifing full path.
PHP is configured to use php_oci8.dll of course. No problem with that.
I tryied to activate PDO but get an error message :
When I run PHP from command line, same error message :
Warning: PHP Startup: Invalid library (maybe not a PHP library)
'php_pdo_oci8.dll' in Unknown on line 0
Maybe it's a bug in PHP, I m not the first complaining about that as far as I know.
My main question remains : Is my configuration the best way to do ? Is there a way not to loose oracle9/bin from PATH ?
Thanks in advance
Message was edited by:
user541613

Thanks, now I understand better.
What is "Oracle Runtime"?
Did you install Instant Client from the Oracle Client CD or did you download Instant Client from http://www.oracle.com/technology/software/tech/oci/instantclient/index.html ?
Which version of Instant Client is this?
Can you show us the contents of your tnsnames.ora file?
Yours,
Laurenz Albe

Similar Messages

  • Problem PHP Oracle - Instant Client

    Hi,
    i have been trying to resolve this issue but im not really sure what i need to do, could someone help me?
    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
    Im getting this error when i try to connect to a Oracle database via PHP.
    My host is Windows, Oracle instant client is on C:\instantclient_11_2 and added on PATH Variables.
    I think there are missing some oracle variables on my phpinfo(), below:
    OCI8 Support
    enabled
    Version
    1.4.9
    Revision
    $Id: 44bfa713983a99b3e59477f6532e5fb51b6dee94 $
    Active Persistent Connections
    0
    Active Connections
    0
    Oracle Run-time Client Library Version
    0.0.0.0.0
    Oracle Instant Client Version
    11.2
    Temporary Lob support
    enabled
    Collections support
    enabled
    Directive
    Local Value
    Master Value
    oci8.connection_class
    no value
    no value
    oci8.default_prefetch
    100
    100
    oci8.events
    Off
    Off
    oci8.max_persistent
    -1
    -1
    oci8.old_oci_close_semantics
    Off
    Off
    oci8.persistent_timeout
    -1
    -1
    oci8.ping_interval
    60
    60
    oci8.privileged_connect
    Off
    Off
    oci8.statement_cache_size
    20
    20
    Environment
    Variable
    Value
    REDIRECT_HANDLER
    application/x-httpd-php
    REDIRECT_STATUS
    200
    HTTP_HOST
    marcelb01v
    HTTP_USER_AGENT
    Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0
    HTTP_ACCEPT
    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    HTTP_ACCEPT_LANGUAGE
    en-US,en;q=0.5
    HTTP_ACCEPT_ENCODING
    gzip, deflate
    HTTP_CONNECTION
    keep-alive
    PATH
    C:\instantclient_11_2;O:\ora11202w\BIN;C:\PHP\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;
    SystemRoot
    C:\windows
    COMSPEC
    C:\windows\system32\cmd.exe
    PATHEXT
    .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    WINDIR
    C:\windows
    SERVER_SIGNATURE
    no value
    SERVER_SOFTWARE
    Apache/2.2.25 (Win32) mod_fcgid/2.3.6
    SERVER_NAME
    marcelb01v
    SERVER_ADDR
    10.26.213.195
    SERVER_PORT
    80
    REMOTE_ADDR
    10.45.112.152
    DOCUMENT_ROOT
    C:/htdocs
    SERVER_ADMIN
    SCRIPT_FILENAME
    C:\htdocs\stuffs\test.php
    REMOTE_PORT
    51461
    REDIRECT_URL
    /stuffs/test.php
    GATEWAY_INTERFACE
    CGI/1.1
    SERVER_PROTOCOL
    HTTP/1.1
    REQUEST_METHOD
    GET
    QUERY_STRING
    no value
    REQUEST_URI
    /stuffs/test.php
    SCRIPT_NAME
    /stuffs/test.php
    ORIG_SCRIPT_FILENAME
    C:/PHP/php-cgi.exe
    ORIG_PATH_INFO
    /stuffs/teste.php
    ORIG_PATH_TRANSLATED
    C:\htdocs\stuffs\test.php
    ORIG_SCRIPT_NAME
    /php/php-cgi.exe
    PHP Variables
    Variable
    Value
    _SERVER["REDIRECT_HANDLER"]
    application/x-httpd-php
    _SERVER["REDIRECT_STATUS"]
    200
    _SERVER["HTTP_HOST"]
    marcelb01v
    _SERVER["HTTP_USER_AGENT"]
    Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0
    _SERVER["HTTP_ACCEPT"]
    text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    _SERVER["HTTP_ACCEPT_LANGUAGE"]
    en-US,en;q=0.5
    _SERVER["HTTP_ACCEPT_ENCODING"]
    gzip, deflate
    _SERVER["HTTP_CONNECTION"]
    keep-alive
    _SERVER["PATH"]
    C:\instantclient_11_2;O:\ora11202w\BIN;C:\PHP\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;
    _SERVER["SystemRoot"]
    C:\windows
    _SERVER["COMSPEC"]
    C:\windows\system32\cmd.exe
    _SERVER["PATHEXT"]
    .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    _SERVER["WINDIR"]
    C:\windows
    _SERVER["SERVER_SIGNATURE"]
    no value
    _SERVER["SERVER_SOFTWARE"]
    Apache/2.2.25 (Win32) mod_fcgid/2.3.6
    _SERVER["SERVER_NAME"]
    marcelb01v
    _SERVER["SERVER_ADDR"]
    10.26.213.195
    _SERVER["SERVER_PORT"]
    80
    _SERVER["REMOTE_ADDR"]
    10.45.112.152
    _SERVER["DOCUMENT_ROOT"]
    C:/htdocs
    _SERVER["SERVER_ADMIN"]
    _SERVER["SCRIPT_FILENAME"]
    C:\htdocs\stuffs\test.php
    _SERVER["REMOTE_PORT"]
    51461
    _SERVER["REDIRECT_URL"]
    /stuffs/test.php
    _SERVER["GATEWAY_INTERFACE"]
    CGI/1.1
    _SERVER["SERVER_PROTOCOL"]
    HTTP/1.1
    _SERVER["REQUEST_METHOD"]
    GET
    _SERVER["QUERY_STRING"]
    no value
    _SERVER["REQUEST_URI"]
    /stuffs/test.php
    _SERVER["SCRIPT_NAME"]
    /stuffs/test.php
    _SERVER["ORIG_SCRIPT_FILENAME"]
    C:/PHP/php-cgi.exe
    _SERVER["ORIG_PATH_INFO"]
    /stuffs/test.php
    _SERVER["ORIG_PATH_TRANSLATED"]
    C:\htdocs\stuffs\test.php
    _SERVER["ORIG_SCRIPT_NAME"]
    /php/php-cgi.exe
    _SERVER["PHP_SELF"]
    /stuffs/test.php
    _SERVER["REQUEST_TIME"]
    1399483024

    Your PATH includes "C:\instantclient_11_2;O:\ora11202". This hints that you have multiple versions of Oracle installed, which is common cause of issues.
    Do you need Instant Client?  If you already have an Oracle DB you don't really need Instant Client unless you have a particular version requirement.

  • Anyone have experience about Mandrake9.1 + oracle instant client +php

    Anyone have experience about Mandrake9.1 + oracle instant client +php
    ======================
    Now i need your help about
    1. Install oracle instant client on my MDK9.1
    2. and want it so success and nice work ( PHP+Oracle Instant Client )
    ( PHP that can use oci8 tag : support oracle tag ) sir
    Can you help me and send me how-to/guide/link that "It's work !! " ? sir
    Thank you very much
    Pratchaya

    Use --with-oci8-instant-client option.
    Following links will help you:
    php + openldap +oci8 instantclient
    http://www.oracle.com/technology/pub/notes/technote_php_instant.html

  • 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

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

  • 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

  • Solaris + iPlanet 6.0SP2 + PHP 5.1.2 + Instant Client

    Configuration:
    Solaris OS 5.8 (64bit)
    iPlanet 6.0 (SP2) (32bit)
    PHP v5.1.2 (32bit)
    Instant Client 10.2.0.1 (32 bit)
    I am able to compile and install php 5.1.2 and Instant Clinet 32bit libraris with my iPlanet Server. When i invoke a php script that contains oracle oci calls, the server processes them fine and at then restarts it selfs...
    I see this in my server's error logs... basically its showing a crash in libclntsh.so.10.1 library....
    ==========================
    [09/Mar/2006:10:20:56] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:56] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:57] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:57] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:57] catastrophe (17405): Server crash detected (signal SIGBUS)
    [09/Mar/2006:10:20:57] info (17405): Crash occurred in NSAPI SAF php5_execute
    [09/Mar/2006:10:20:57] info (17405): Crash occurred in function kohfrr from module /export/home/a297592/lib/oic/libclntsh.so.10.1
    [09/Mar/2006:10:20:57] failure (17398): Child process admin thread is shutting down
    [09/Mar/2006:10:20:57] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:58] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:58] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:58] info (17408): Installing a new configuration
    [09/Mar/2006:10:20:58] info (17408): [LS ls1] http://fidlabdev01.fmr.com, port 80 ready to accept requests
    =======================================
    If i try to use 64 bit libraries, my iPlanet server won't start saying libclntsh.so.10.1 wrong ELF class: ELFCLASS64 while loading the php.
    I would very much appreciate if any one has any ideas to pass thru this
    Thanks
    Vijay

    Configuration:
    Solaris OS 5.8 (64bit)
    iPlanet 6.0 (SP2) (32bit)
    PHP v5.1.2 (32bit)
    Instant Client 10.2.0.1 (32 bit)
    I am able to compile and install php 5.1.2 and Instant Clinet 32bit libraris with my iPlanet Server. When i invoke a php script that contains oracle oci calls, the server processes them fine and at then restarts it selfs...
    I see this in my server's error logs... basically its showing a crash in libclntsh.so.10.1 library....
    ==========================
    [09/Mar/2006:10:20:56] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:56] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:57] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:57] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:57] catastrophe (17405): Server crash detected (signal SIGBUS)
    [09/Mar/2006:10:20:57] info (17405): Crash occurred in NSAPI SAF php5_execute
    [09/Mar/2006:10:20:57] info (17405): Crash occurred in function kohfrr from module /export/home/a297592/lib/oic/libclntsh.so.10.1
    [09/Mar/2006:10:20:57] failure (17398): Child process admin thread is shutting down
    [09/Mar/2006:10:20:57] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:58] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:58] failure (17398): Failed to read kernel statistics structures (No such device or address)
    [09/Mar/2006:10:20:58] info (17408): Installing a new configuration
    [09/Mar/2006:10:20:58] info (17408): [LS ls1] http://fidlabdev01.fmr.com, port 80 ready to accept requests
    =======================================
    If i try to use 64 bit libraries, my iPlanet server won't start saying libclntsh.so.10.1 wrong ELF class: ELFCLASS64 while loading the php.
    I would very much appreciate if any one has any ideas to pass thru this
    Thanks
    Vijay

  • Php 5.1.2 doesn't seem to recognize the --with-oci8-instant-client option

    I just tried configuring php 5.1.2 with the --with-oci8-instant-client option and could never get phpinfo() to show the oci8 section...
    Finally went back and tried php 5.1.1 and it worked.
    If anyone else could verify this behavior, maybe the PHP folks should be notified??

    Discovered the issue:
    the configure script changed the format of the config option
    in php 5.1.1:
    --with-oci8[=DIR] Include Oracle (OCI8) support using an ORACLE_HOME
    install. The default DIR is ORACLE_HOME
    --with-oci8-instant-client[=DIR]
    Include Oracle (OCI8) support using
    Oracle Instant Client. DIR is the directory with the
    Instant Client libraries. On Linux it will default to
    /usr/lib/oracle/<most_recent_version>/client/lib
    Other platforms will need to have it explicitly specified
    HOWEVER, in php 5.1.2:
    --with-oci8[=DIR] Include Oracle (OCI8) support.
    The default DIR is ORACLE_HOME.
    Use --with-oci8=instantclient,/path/to/oic/lib
    to use Oracle Instant Client installation
    This explains why the --with-oci8-instant-client option is ignored.  The new format is:
    --with-oci8=instantclient,/path/to/libs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Solaris PHP 5.2.12 Oracle Instant Client Error

    We are testing a Oracle Solaris Express 11 Server with the standard Apache and PHP installation. But we need the Oracle Instant client and the oci8 module enabled for our company applications.
    We did this by using ./pecl install oci8 in /usr/php/5.2/bin. We set the LD_LIBRARY_PATH in /etc/apache2/2.2/envvars
    a 32bits solaris (x86) version of the Oracle Instant Client 11.2 is installed in /opt/oracle/instantclient_11_2 with the symbolic link made.
    envvars:
    LD_LIBRARY_PATH=/opt/oracle/instantclient_11_2
    ORACLE_HOME=/opt/oracle/instantclient_11_2
    ORACLE_BASE=/opt/oracle/instantclient_11_2
    he oci8 module installed and php loads it.
    phpinfo(); output:
    oci8
    OCI8 Support enabled
    Version 1.4.6
    Revision $Revision: 313688 $
    Active Persistent Connections 0
    Active Connections 0
    Oracle Run-time Client Library Version 11.2.0.2.0
    Oracle Instant Client Version 11.2
    Temporary Lob support enabled
    When we first view a site there is no problem but very randomly we get the following error:
    OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries*
    but when we use echo getenv("LD_LIBRARY_PATH"); in php the output is "/opt/oracle/instantclient_11_2"
    now the strange this is as randomly as it appears it disappears we can load the web-page without problems and after a couple of clicks the error is back. if we wait a coupe of seconds you can reload the page and it loads normaly.
    The error appears to be random and we get it over and over agian, it comes and goes after a cpl of pages are viewed. It seems to appear more when there are multiple users browsing on the website.
    Is there a fix for this? is this an known bug? It seems strange the instant client works some times and fails a second later without a change in the system.
    Hope someone can help us.
    Edited by: user10978378 on Sep 3, 2011 4:20 AM

    Solved it by compiling apache 2.2.20 into 64bits using:
    CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure enable-so enable-cgi enable-info enable-rewrite enable-deflate enable-ssl
    and compiling php 5.3.8 into 64bits:
    CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" ./configure with-apxs2=/usr/local/apache2/bin/apxs with-gd with-zlib disable-ipv6 with-jpeg-dir=/usr/ with-png-dir=/usr/ with-freetype-dir=/usr/ with-pear with-openssl with-oci8=instantclient,/opt/oracle/instantclient_10_2
    and using the 10.2.0.4 instant client.
    there might be a bug in the 11.x ones, they dont seem to work on Oracle Solaris 11.

  • Error Compiling php 5.1.6 with Oracle Instant Client 10.1.0.5 on Fedora 5

    Hello
    I have Oracle 10.1.0 enterprise database installed on a Windows 2003 server.
    I have another machine that has Fedora Core 5 installed on it. I downloaded:
    Apache 2.2.3
    Php 5.1.6
    OracleInstantClient 10.1.0.5 (base and skdk packages) from technet.oracle.com
    I created a directory called /usr/lib/instantclient10_1 in which I unzipped
    the files for the Oracle Instant Client and the SDK into /usr/lib/instantclient10_1.
    So inside /usr/lib/instantclient10_1 I have:
    all the unzipped filed from the base for the instant client as well as
    a directory called sdk with files inside this subdirectory.
    I compiled and installed Apache.
    I then tried to configure php using the instantclient with the configure option
    --with-oci8=instantclient/usr/lib/instantclient10_1
    The first time I did this I got the error: "link from
    /usr/lib/instantclient10_1/libclntsh.so to libclntsh.so.10
    not found"
    Well I had the libclntsh.so.10 but no such link. So I did the following:
    ln -s libclntsh.so.10.1 libclntsh.so
    I assume this was OK to do but I found it strange that I had to do this.
    Question #1 - why should I have to do this?
    I then tried to configure php again but got an error that I paste in from
    the debug.log. From this debug log you can see the configure options I gave for
    php as well as the error. It says "cannot find -lirc". Now I did put into
    /etc/ld.so.conf the line /usr/lib/gaim since that is where libirc.so is and ran
    ldconfig but it still complained. When I copied libirc.so into /usr/lib it then said there were
    lots of errors in that libirc.so. The only item in the configure options depending on lirc is
    the with-oci8.  Why does with-oci8 depend on lirc?
    I also tried the above on Red Hat AS 4.0 and got the same errors.
    Question #2 -- what do I do?
    Thank You
    Gail Lange
    Here is the debug.log in the case when libirc.so is just in /usr/lib/gaim:
    CONFIGURE: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-track-vars'
    '--enable-inline-optimization' '--with-gd' '--with-zlib' '--enable-debug'
    '--with-oci8=instantclient,/usr/lib/instantclient10_1' '--enable-sigchild'
    CC: gcc
    CFLAGS: -I/usr/include -g -O2
    CPPFLAGS:
    CXX:
    CXXFLAGS:
    INCLUDES: -I/usr/include/libxml2 -I/home/gail/php/php-5.1.6/ext/date/lib
    -I/usr/lib/instantclient10_1/sdk/include
    LDFLAGS: -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1 -L/usr/lib/instantclient10_1
    LIBS: -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -ldl -lm -lnsl
    -lirc -lclntsh -lxml2 -lz -lm
    DLIBS:
    SAPI: apache2handler
    PHP_RPATHS: /usr/lib/instantclient10_1
    uname -a: Linux localhost.localdomain 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006
    i686 i686 i386 GNU/Linux
    gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1
    -L/usr/lib/instantclient10_1 conftest.c -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
    -lxml2 -lz -lm -ldl -lm -lnsl -lirc -lclntsh -lxml2 -lz -lm 1>&5
    conftest.c: In function 'main':
    conftest.c:3: warning: incompatible implicit declaration of built-in function 'exit'
    /usr/bin/ld: cannot find -lirc
    collect2: ld returned 1 exit status
    Thanks

    To be perfectly honest, I'm not sure. Everything I could find on it had to do with IRC or some kind of remote control thing (for controlling audio/media players). Maybe if Ivan stops by he'll know what it means... he knows quite a lot about the inner workings of many of these libraries.
    http://us3.php.net/install.unix was the most useful info I could find.
    There's also this thread:
    Cannot find ld -lirc PHP Linux
    ~Jer

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

  • 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

  • PLease help!! cannot make install php with oci8 instant client

    Cannot make install :
    Installing PHP SAPI module: cgi
    Installing PHP CGI into: /usr/local/bin/
    Installing PEAR environment: /usr/local/lib/php/
    ld.so.1: php: fatal: libnnz10.so: open failed: No such file or directory
    *** Error code 137
    The following command caused the error:
    /home/dmitriy/install/php-4.4.4/sapi/cli/php -n -dshort_open_tag=0 -dopen_basedir= -dsafe_mode=0 -dmemory_limit=-1 /home/dmitriy/install/php-4.4.4/pear/install-pear.php -d "/usr/local/lib/php" -b "/usr/local/bin" /home/dmitriy/install/php-4.4.4/pear/packages/*.tar
    make: Fatal error: Command failed for target `install-pear-packages'
    Current working directory /home/dmitriy/install/php-4.4.4
    *** Error code 1
    The following command caused the error:
    if /home/dmitriy/install/php-4.4.4/build/shtool mkdir -p /usr/local/lib/php; then \
    make -s install-pear-packages; \
    else \
    cat /home/dmitriy/install/php-4.4.4/pear/install-pear.txt; \
    exit 5; \
    fi
    make: Fatal error: Command failed for target `install-pear'
    LD_LIBRARY_PATH is set where i unziped oracle client instantclient
    debug.log
    CONFIGURE: './configure' '-with-oci8-instant-client=/home/dmitriy/instantclient_10_2'
    CC: gcc
    CFLAGS: -g -O2
    CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
    CXX:
    CXXFLAGS:
    INCLUDES: -I/home/dmitriy/instantclient_10_2/sdk/include
    LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/home/dmitriy/instantclient_10_2 -L/home/dmitr
    iy/instantclient_10_2
    LIBS: -lresolv -lm -lnsl -lsocket -lgcc -lclntsh
    DLIBS:
    SAPI: cgi
    PHP_RPATHS: /usr/ucblib /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 /home/dmitriy/instantclient_10_2
    uname -a: SunOS solaris 5.10 Generic_118855-33 i86pc i386 i86pc
    gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib -R/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -L/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3 -R/home/d
    mitriy/instantclient_10_2 -L/home/dmitriy/instantclient_10_2 conftest.c -lresolv -lm -lnsl -lsocket -lgcc -lclntsh 1>&5
    ld.so.1: conftest: fatal: libnnz10.so: open failed: No such file or directory

    Please grab the "re-factored" oci8 code from http://pecl.php.net/package/oci8. The version of oci8 distributed with PHP 4 should be avoided. Replace the PHP 4.4 ext/oci8 directory completely with the new package, run buildconf --force and then configure/make etc.  Note the configure option for instant client has changed:
    --with-oci8=instantclient,/usr/lib/oracle/10.2.0.3/client/lib
    -- cj

  • Instant Client and PHP

    I tried to compile php 4.3 against the instant client but the config test failed as it could not find a whole bunch of oracle directories which are in the normal client. I also tried the normal 10g client, but that did not work as it required Redhat 2.1 or 3.
    A workaround was to copy the Oracle 10g Client directories from a Redhat 2.1 system. This works for configure, but fails with :
    /usr/bin/ld: cannot find -lclntsh on a non Redhat 2.1 system.

    Re Instant Client SDK availability, see
    LINUX AND DBD-Oracle
    Re Client download, it is part of the Database product suite.
    Following the Database links until you get to the page offering the
    Enterprise, Standard, Client, Companion etc releases.
    It would help Oracle if you could post a comment on the Downloads
    forum (something I just discovered) at
    Downloads Issues about your
    experiences trying to find the software.
    -- CJ

Maybe you are looking for

  • External FW/USB Western Digital, Seagate Disk Drives and 'Sleep' function

    As you are aware, most external disk drives be they FW or USB (and irrespective of the manufacturer, save for LaCie) have a 'sleep' function built into their Firmware. In the case of the Western Digital and Seagate Ext FW drives I have, this function

  • Will an HP Mini 210-1212NR work with a HP Mini 110-1212NR? Screen?

    I accidently purchased an HP mini 110 screen for hp 210 netbook. I'm wondering if it will still work if I install it? Will i need to install drivers...first?

  • Keyboard/USB connection problem.

    Couple of weeks ago my aluminum keyboard intermittently stopped responding to my touch. I unplugged/replugged into a different USB port on my Mini which seemed to fix it a couple of times, then shut down computer and restarted a couple of times which

  • SSRS passing as Parameter

     I have a table with fields SELECT TOP 1000 [BAT_TYPE]       ,[ITEM_TYPE]   FROM [dbo].[BATT_TYPES] bat_type  item_type 120-M  Batt 54-FM  Batt 45-FM    Batt | | | | commercial Non-Batt fuel            Non-Batt tender          Non-Batt I need to pass

  • Definition of IDoc Sender

    Hello Experts, the record set of an IDoc contains a recipient and a sender information. As far as I know the recipient information is taken from the respective partner profile. But what is the source for the sender information? How are these fields f