PHP 5.2.17 and Oracle 8i

Hi there,
I encountered a problem that I have spent hours fixing that. Here is the problem:
I am trying to connect to a remote Oracle 8i server using Oracle 11g client: here is my connection string in PHP:
$conn = oci_connect('db_user', 'db_pass', "db_ip");
db_host is the ip of the server, such as "12.34.56.78".
The error shown is "*ORA-12514: TNS:listener does not currently know of service requested in connect descriptor*"
I could use the same client to connect to another oracle 10g server. The php code is same, only change the db_user or db_pass or db_ip.
I dont use tnsnames.ora for either oracle 10g server or oracle 8i server. I just use the simple IP of server. Does this matter?
Server using: Windows Server 2008 R2
PHP: php 5.2.17
Oracle Instant Client: 11_2
Any ideas will be appreciated.
Best,
Sam

You cannot use a 11g client to connect to an 8i database.
See this MOS Doc for a listing of client versions you can use to connect to an 8i database
Client / Server / Interoperability Support Matrix For Different Oracle Versions [ID 207303.1]
HTH
Srini

Similar Messages

  • PHP 5.1.4 and Oracle 10G XE ?

    I am using PHP 5.1.4 with OCI8.dll module, and Oracle 10G XE. My question is how to Edit and Delete Record in my table using PHP syntax ?.
    Best Regards,
    /Harso Adjie.

    You use SQL syntax not PHP syntax to UPDATE / DELETE the records and run the query in a similar manner to SELECT statements:
    Parse your Oracle statement: oci_parse()
    Execute your Oracle statement: oci_execute()
    (You will need to commit transaction if not using auto-commit) Commit your transaction: oci_commit()
    http://uk.php.net/manual/en/ref.oci8.php

  • PHP 5.0.0RC3 and Oracle Memory Errors

    I have been getting Apache.exe Application Errors as I am testing PHP5. The exact error message is: The instruction at "0x77f83aed" referenced memory at "0x00080000". The memory could not be "written".
    Environment:
    OS: Windows XP Professional with SP1
    Server: Apache 1.3.31 (Win32)
    PHP Version: 5.0.0RC3
    DB: Oracle 8.4.7 on Unix machine.
    Script Instructions:
    If I run this script and refresh my browser a few times so that this script is re-executed, I will get the error. Please try this out if you have a similar environment and let me know if you see this problem.
    Script:
    <?php
    class Test {
    var $_results;
    var $_ncount;
    function display() {
    $conn = oci_connect("scott", "tiger", "your-host-name");
    $stmt = oci_parse($conn, "select ENAME from emp");
    oci_execute($stmt);
    $this->_ncount = oci_fetch_all($stmt, $this->_results);
    oci_free_statement($stmt);
    oci_close($conn);
    for ($i = 0; $i < $this->_ncount; $i++) {
         echo $this->_results["ENAME"][$i];
    $test = new Test();
    $test->display();
    ?>
    My Initial Observation:
    It appears that the oci calls in conjunction with a loop functions in php can cause the memory problems. When I remove the for loop. I do not get the problem and if I manually assign the array to $_results without making the call to the oci functions, then I don't get the error.
    I would be interested in hearing from any of you that are testing your code against php5.
    Regards,
    Ben

    I have the same problem.
    We are running Apache 1.3.31 on W2k and PHP 5.0.1 with simplified code:
    <?
    $db = oci_connect("scott", "tiger", "");
    oci_close($db);
    ?>
    The first time of execution works well. Clicking "Refresh" in the browser leads to the described error.
    At first we tested on Apache2, but ist seems to be a problem with the new php_oci8.dll in PHP 5.0.1

  • A book for php and oracle

    Hi.I' m working in an application using php for web development and oracle for server database.My question is until now I found many links about this subject also many books about oracle,plsql and many books about php but I can't found a book about php with oracle and plsql.So my question is are there books about php and oracle?
    Thanks in advance thrylos

    I have seen one in my local book shop, not sure about Internet though.

  • PHP and Oracle DB Job Find

    Hi every ones:
    I'm develop some applications using PHP and Oracle and php give me a lot of advantage. in bouth way of access to a database, OCI and mod plsql.
    How can i say to Oracle THANKS FOR TAKE SERIOUS PHP TECNOLOGY!!!
    I work actually for a company that implement all (Microsoft) and i want find a job with PHP and Oracle programming. Any body have idea that where i need look?

    How can i say to Oracle THANKS FOR TAKE SERIOUS PHP
    TECNOLOGY!!!You just did! Thanks!
    You can help Oracle with scripting languages even more, by completing the questionnaire on scripting langauges at:
    http://www.oracle.com/go/?&Src=1545492&Act=10
    Alison

  • PHP and Oracle Workflow

    Hi everyone,
    Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?

    All of the public documented Workflow Engine PL/SQL APIs and Java APIs enable customers to build their own screens based on workflow, such as building your own specialized worklist.
    Hi everyone,
    Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?

  • PHP  and Oracle Connection

    Please help to connect to oracle through php.
    OS=Windows Server 2008 R2(x64)= is working correctly
    PHP ver=PHP 5.3.2= is working correctly
    ORACLE = Oracle Database 11gR2= is working correctly
    Since the PHP and Oracle on the same machine, I did not install install client(but even with instan client I could not connect to oracle).
    phpinfo does not show oci section
    in Environment section shows these values
    PHPRC = C:\Program Files (x86)\PHP\
    LD_LIBRARY_PATH = D:\ipardb\ora_base\product\11.2.0\orahome\lib
    NLS_LANG = AMERICAN_AMERICA.WE8MSWIN1252
    ORACLE_HOME = D:\ipardb\ora_base\product\11.2.0\orahome
    ORACLE_SID = iparbio
    Path= C:\Program Files (x86)\PHP\;D:\ipardb\ora_base\product\11.2.0\orahome\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Server 5.1\bin;
    TNS_ADMIN= D:\ipardb\ora_base\product\11.2.0\orahome\network\admin
    Loaded Configuration File C:\Program Files (x86)\PHP\php.ini
    uncommented extension in php.ini
    [PHP_OCI8_11G]
    extension=php_oci8_11g.dll
    extension dir is set ok, since other extensions are working properly
    when i execute php.exe, in error_log file appears
    [11-Jun-2010 10:37:34] PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_oci8_11g.dll' - %1 is not a valid Win32 application.
    in Unknown on line 0
    Please help me.

    I'm guessing the cause is probably the same as that article: PHP is 32bit but your Oracle libraries are 64bit.
    You will need to install 32bit instant client and make sure they are used for Apache. Does Windows 2008 have sym links? Perhaps the note mentioned at the end of OCI8 IN WINDOWS SERVER 2008 x64 will help. Otherwise try creating some batch scripts to set PATH appropriately before starting Apache.

  • Using the Auth pear package with php 4 and oracle

    Hi all.
    I was wondering if anybody out there has had any success (or else) using the Auth Pear package with php 4 and Oracle.
    I'm trying to do just that but can't get it to work.
    I've found lots of examples on the web for mysql but none for oracle...
    Feedback on your experiences with this would be most appreciated.
    Thanks in advance.
    Rob

    Hi cj.
    Thanks for your advice. I came across those documents but discarded them as they didn't deal with the Auth pear package I was intending on using. I didn't want to look at other alternatives as the focus of my project was primarily on migrating existing data from a mysql setup to an oracle setup. And quickly.
    I hadn't found any documentation out there on using Auth with Oracle. All examples available on the web were mysql specific.
    I eventually got round to gutting the code from the package and finding the fix to my problem.
    Just for info, Auth expects by default an auth table containing two fields username and password. That's lowercase table and field names.
    If the table name or field names to be used differ from these then they must be explicitly defined when calling Auth. Doing so resolved my problem.
    My mysql db had all lowercase naming, while my oracle db has all uppercase naming throughout.
    It is important to note that the Auth package uses the table and field names quoted, thus referring to the table and fields in a case sensitive way.
    So for an uppercase table and fields setup the call has to be :
    $options = array(
        'dsn' => "$dsn_for_my_oracledb",
        'table' => 'AUTH',
        'usernamecol' => 'USERNAME',
        'passwordcol' => 'PASSWORD',
        'db_fields' => '*',
    $a = new Auth("DB", $options , "loginFunction");I hope this helps anybody trying to use this package with oracle. It worked great for me.
    Pear Auth package documentation:
    http://www.pear.php.net/manual/en/package.authentication.auth.intro.php
    Regards,
    Robert

  • DW9, PHP, and Oracle

    We've just installed DWCS3 and now our Oracle (Oracle Thin
    Client) database connections are no longer available with DWCS3. We
    have just learned that DWCS3 will not work with Phakt and that PHP
    now only supports MySQL. Dropping Phakt without any PHP-to-Oracle
    alternatives is a serious threat to our continued use of Adobe web
    products because TCO / ROI concerns, facing the fact we may have to
    rebuild our websites.
    We need to continue to use PHP to access our Oracle dBs. Does
    anyone have any recomendations for a work-around to this sorry
    behavior?

    All of the public documented Workflow Engine PL/SQL APIs and Java APIs enable customers to build their own screens based on workflow, such as building your own specialized worklist.
    Hi everyone,
    Is it possible to use PHP and Oracle Workflow together? I means use PHP to generate user-interface and PHP-OCI8 API to call WFEngine PL/SQL code?

  • Re: PHP  and Oracle Connection

    Are any specific links that will give me all knowledge regarding php and oracle connection? I am a new babie in this please help me out.

    Hi,
    I'm looking for specialists in PHP, Ajax and Oracle BPEL...
    Pages are: Praxisbörse und Jobs für Arzt und Zahnarzt http://www.praxis-welt.de für Praxisangebote und Jobangebote für Ärzte
    sowie auf http://www.berlin-umzug.net für Umzugsunternehmen aus Berlin für Umzüge, Klaviertransport und Tresortransport in Berlin.
    Any ideas / information / knowhow?
    Regards,
    Mic

  • Is my configuration correct? PHP and Oracle HTTP server

    Hi all,
    I have a single server running RHEL5 x86-64 and Oracle 11.1. I also have the Oracle HTTP Server which purportedly has "PHP support".
    I am trying to do a basic test connect to my database, but I'm getting an error.
    My test is the following:
    <html>
    PHP Test with Oracle<head>
    <body>
    <pre>
    <?php
    $conn = oci_connect('scott', 'tiger', 'myserver/MYDBSERVICE');
    if (!$conn) {
    trigger_error("Could not connect to database", E_USER_ERROR);
    ?>
    </pre>
    </body>
    </html>When I open the page, I see the following:
    PHP Test with Oracle
    Fatal error: Call to undefined function: oci_connect() in /u01/app/oracle/product/HTTP_Server/ohs/htdocs/phptest/dtest4.php on line 6
    I've also tried phpinfo() and get the following:
    oci8
    OCI8 Support      enabled
    Revision      $Revision: apache_modules/mod_php/4.3.9/ext/oci8/oci8.c#0 $
    Oracle Version      10.1
    Compile-time ORACLE_HOME      /ade/svadugur_mjoyphp4311/oracle
    Libraries Used      no value
    Any idea what may be going on? I've looked through much documentation already before posting to no avail.
    Thank you for any insight.

    The oci_* names were introduced in PHP 5. In PHP 4 the equivalent connection command is ocilogon(). For other mappings see Appendix C of the free book http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html
    I'd recommend you upgrade PHP. See "Installing OCI8 with Oracle Application Server on Linux" on p 76 of that book. Note the warnings.

  • APEX and Oracle XE

    I am trying to use the APEX (as a substitute for my PHP forms base application) for a new client.
    Can I use the APEX and Oracle XE in production, without spending any money for a license from Oracle - i.e. for listener, Web server, etc,?
    I already have setup the APEX that works fine on my laptop, able to see and work with the form on the browser, so can I take the same to a server as a production?
    Any help is appreciated,
    Merdad

    Mehrdad wrote:
    I am trying to use the APEX (as a substitute for my PHP forms base application) for a new client.
    Can I use the APEX and Oracle XE in production, without spending any money for a license from Oracle - i.e. for listener, Web server, etc,?
    I already have setup the APEX that works fine on my laptop, able to see and work with the form on the browser, so can I take the same to a server as a production?Yes. Oracle XE is free to use for internal use or use in your products subject to the license terms for Oracle Database Express Edition.
    APEX is a no-cost database option, so if you have a licensed database (including XE), you can use APEX to develop applications. (Note that if XE is upgraded to use the latest version of APEX, some of the built-in GUI database admin features described in the guides will be lost. All admin will then have to be performed using SQL*Plus or SQL Developer.)
    The licensing information covers the features included (and not included) in Oracle XE.
    There's a dedicated {forum:id=251} forum. This is the only channel for XE support as Oracle do not support the product through MOS (even for customers paying for support of other database editions).

  • PHP 5.2.4 with Oracle 10g.

    OS: Windows Vista
    PHP: 5.2.4
    Oracle: 10g (XE)
    Apache 2.2
    Hey all,
    hoping for a bit of help if possible! I'm unsure if this is the right place for this question. But here goes anyway!
    I installed PHP 5.2.4, Apache 2.2 and Oracle XE 10g today. I've set it up, and PHP is working fine on my server. However i'm having a bit of trouble with Oracle. I've pointed php.ini to the correct ext directory, and i've 'uncommented' the line "extension = php_oci8.dll".
    However when I go to connect to the database, I get the error "Call to undefined function: ora_logon()/ ocilogon()" I checked phpinfo, and the module has not been activated (which explains the error.)
    So I did a bit of research, and I read that I need uncomment the line ";extension = php_oracle.dll" in php.ini. However this line does not exist and nor did the 'php_oracle.dll' file.
    So I found the file in the binary .zip for PHP 5.2.4, put it in the 'ext' directory, and added the line to php.ini. But this did not help either.
    I'm at a bit of a loss how to do this?
    Any help would be much appreciated.
    Message was edited by:
    user600685

    The only thing I can see is this, which keeps repeating:
    [Thu Oct 18 12:34:55 2007] [notice] Apache/2.2.3 (Win32) PHP/5.2.4 configured -- resuming normal operations
    [Thu Oct 18 12:34:55 2007] [notice] Server built: Jul 27 2006 16:49:49
    [Thu Oct 18 12:34:55 2007] [notice] Parent: Created child process 880
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Child process is running
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Acquired the start mutex.
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Starting 250 worker threads.
    [Thu Oct 18 12:34:56 2007] [notice] Child 880: Starting thread to listen on port 80.

  • Apple's Apache 2.0.54, PHP 5.0.4 and MySQL 5.0.18

    Hello
    Using OSX Server 10.4.4.
    I'm considering using Apple's /opt Apache 2.0.54 with the builds of PHP 5.0.4 and MySQL 5.0.18. Has anyone any experience with this combination and any warnings / advice?
    MySQL 5.0.18 is an installer straight from MySQL and PHP 5.0.4 installer is straight from Marc Liyanage's entropy site.
    Thanks in advance...
    David.
    XServe G5   Mac OS X (10.4.4)  

    Hi there MartynC
    Just wanted to let you know that I screwed up - as usual, the simplest of errors.... I created a script around apachectl to start apache and prior to the apachectl start line I inserted
    ORACLE_HOME=<my oracle home>; export ORACLE_HOME
    ...only I mistyped <my oracle home> so apache wasn't finding it
    I've corrected that, restarted Apache and now PHP, Apache and Oracle are working fine!
    Thanks very much for your offer of help (the only consolation I can take is that possibly this will someone reading this will take note and double check the dumb stuff and save themselves a lot of time and heartache)
    Also I should note for anyone interested that my Linux installation is actually Centos 4.1 (a Redhat "clone")

  • Query ESSBASE and Oracle in one query

    What is the best way to query in the same time an ESSBASE database and an Oracle Database.I need to retrieve ESSBASE data with information stored in Oracle Database (supplement data).Thanks

    I've used Oracle and MySQL together on several machines; there's no contention or incompatibility that I've ever encountered. They listen on different ports by default (1521 for Oracle, 3306 for MySQL).
    As for PHP, you'll probably want to read an introductory article from the [Oracle PHP Developer Center|http://www.oracle.com/technology/tech/php/index.html]. Nothing you do there should interfere with your MySQL operations, either.
    Have fun!

Maybe you are looking for

  • How can I sync my iPhone with another iTunes Library, but be able to keep my songs?

    I logged onto my computer and all my iTunes music was suddenly gone. It was almost like it had deleted itself. Now I can't find the same Library I was using before and can't download music. If I try to sync it to another computer, it will delete all

  • Number of the Invoice the Transaction Belongs to (INVFO-REBZG)

    Hi, - in MIRO transaction depending on the value of field List field: transaction/event RM08M-VORGANG - in tabstrip "Payment" - i need to make obligatory field Number of the Invoice the Transaction Belongs to  INVFO-REBZG is it possible? How can i do

  • Error in Integradted Planning - Input Ready Query Design

    Dear Gurus, I am facing an error while designeing input ready query. I have created a query on Aggr. Level which is on Multi Provider. I have 2 key figs. In my second key fig. I have restricted Planning Infor priovider with Plan version for version i

  • IPhone Pre-Order Arriving a Day Early

    I woke up to this message: Dear Apple Store Customer, You recently received a Shipment Notification email from Apple advising you that your iPhone has shipped. This email is to confirm that your delivery will occur on June 23rd. Although Apple and Fe

  • Startup disk disappeared from desktop!

    On two different Mac Pros, suddenly my boot drive has disappeared from the desktop. It used to be there, but now it's not. Rebooting the computer doesn't fix it. It is also missing from every Finder window's sidebar. I checked my prefs, but it doesn'