Apache/PHP connection to Oracle 9i under OpenVMS

Hello,
With CSWS 2 (apache)/PHP 1.3 (4.3.2) under OpenVMS 7.3.2 i'm actually trying to interface an Oracle 9i database located on the same server with no success.
In my php.ini i've uncommented "extension=php_oci8.exe"
In my apache$www:[000000]login.com i've added @orauser.com <SID>
But... no connexion at that time... (php:ocilogon failed)
Someone can help me ?
Someone experienced such interface ?
thanks in advance for all

Frankly, I haven't seen an openvms setup :)
Do you have the required oci libraries ? are they accessible to php?
regards,
--karthik

Similar Messages

  • Problem with local apache w/php connect to oracle 9i server

    Is any way to connect to oracle 9i server listening on default port 1521 at any host using local apache w/php on windows xp...
    I've already installed all dlls oci drivers...
    but it seems doesn't work...I don't know how to make connection from php to oracle db...
    any suggestions and help?
    thx in advance
    btw I'm using client appliation to connecti witth that oracle db and it work fine..

    Lucas Mierzwa what error are you getting when you try to connect. Am using PHP 4.x on w2k and oracle 10g and Appach server and all work fine. I also run mysql and and IIS all on thesame local machine. They are all functioning fine. I can help you if i know what the problem is.

  • PHP connecting on Oracle by hostname

    Hello,
    I need to know if is possible to connect PHP on remote Oracle 10g through Easy Connect(hostname), without Oracle Client.
    Regards
    Amanda

    No, it is not possible.

  • PHP connection to Oracle basic question.

    Forgive me if I am missing a very basic piece of knowledge here.
    I have a small local web server I run with Apache 2.2.3 and PHP 5.1.6.
    I am working on a project that uses Oracle tables located on the corporate network servers.
    These tables are normally maintained by the IT department using TOAD. I'd like for the business process 'owners' to be able to maintain the tables themselves - but the company has limited TOAD licensing and some of the dependencies between tables are not readily apparent (especially to a non-IT person).
    Therefore I am trying to develop a simple web app to allow table updates, using PHP to connect to the Oracle tables. The idea is I'll put the app and web server on a USB stick for the designated business person to use. (yeah, I know - seems crazy, but the paperwork to get this all into a true 'production' system is impossible, and I really don't want to have to maintain these tables myself for the rest of my working life)
    I've got the basics of the app working through some MySQL tables, now I just need to know how to connect to the 'real' Oracle tables.
    Here's what I've gathered from my reading:
    I need to download Instant Client and install to my 'server' (on my USB stick)
    I need to change PHP.ini to enable the extension for php_oci8.dll
    I need to set some environment variables....and here is where I am lost.
    Are these environment variables on my web server?
    I am running my USB web server on a Windows XP system (as will the business users). But it doesn't make sense to me to set my PC's environment variables, because then I'd need to worry about ever PC the USB stick got used on.
    Could someone clear this up for me? I am sure I am just missing something very basic.
    Oh, and is there anything else I'm missing?
    Thanks for any help!
    mary

    Get it working on a full machine first, and then move to using the USB stick. Refer to Underground PHP and Oracle Manual for standard installation information.
    PHP/Apache will need to be able to find the Oracle Instant Client libraries. Normally on WIndows this is done with the PATH environment variable on the machine running the web server.
    -- cj
    PS your IT department might like the free SQL Developer tool from Oracle instead of TOAD.

  • ORA- 12154 Error: while php connect to oracle?

    While I use OCILogon connect to Oracle9i,show error message as follow:
    Warning: ociopen_server: Error while trying to retrieve text for error ORA-12154 in /var/www/html/inc/sev.inc.php on line 57
    most of people think of its tnsname' problem,but I modify my tnsnames.ora,and sqlplus can connect with correct username and password.
    page source as follow:
    <?
    function db_connect()
    //putenv("ORACLE_SID=test");
    //putenv("NLS_LANG=SIMPLIFIED CHINESE.ZHS16CGB231280");
    putenv("ORACLE_HOME=/home/oracle/OraHome1");
    $connect = OCILogon("system","manager","test");
    if ($connect)
    return $connect;
    else
    return -1;
    ?>
    server Env: linux red hat 8.0,apache 2.0.44,php4.3.1,oracle9.2.0
    please! Thank in advance!

    Do you have more than ONE oracle homes created?
    Does your PATH env. variable correctly references the ORACLE_HOME directory?

  • Php connect to oracle 8i,it occur ORA-12154

    Warning: ociopen_server: Error while trying to retrieve text for error ORA-12154 in /SOHU/community/bbs/html/inc/dbcon.php3 on line 4

    Do you have more than ONE oracle homes created?
    Does your PATH env. variable correctly references the ORACLE_HOME directory?

  • Oracle support under PHP / 8i or 9 and a RedHat 9 / Apache 1.3.X machine

    Hi,
    I have a server (currently 7.1) with apache + php
    compiled with oracle (and mcrypt, imap, gettext) support.
    In order to do so I've installed the 8i linux
    version, make a tar.gz of the libs directory and
    installed in my server.
    I runs fine accessing a remote (not mantained by me)
    oracle database.
    I am planning to switch to a newer distribution and
    was considering the RH9 but with the "old" 1.3.x apache.
    Since I do not actually use Oracle (just enable php
    scripts to do so) I am kind of lost if the combo (old
    8i libs with redhat 9) are stable enough or should I
    try a newer version, such as oracle 9.
    And in that case if is there a "developers" package/installation that enables me just to install the required libs/headers without having to actually install the whole db.
    Since the answer can be slighty OT fell free to send
    me directly.
    Thanks.

    I'm in a similar situation where i'm migrating from Win2k + PHP & want oracle support to connect to a remote server.
    I got as far as installing redhat 9 & installing the oracle client.
    I still can't get oracle to work in PHP though. doing a bit of research I dont think the redhat 9 RPM's come with oracle support compiled. I really dont want to be maintaining custom compiled php versions i'd rather just have up2date do it all. I hear you can get ODBC to work with oracle, but most of the stuff i've looked at covers doing this on windows, not linux.
    If anyone out there has manager to get PHP & oracle working on RH9, without re-compiling PHP please let me know!

  • Cannot Connect to Oracle, PHP cannot load oci dlls

    Hello,
    I have installed wamp on windows server, and oracle 9, When I try to connect to oracle in php I get:
    Fatal error: Call to undefined function oci_connect() in C:\wamp\www\project2\index.php on line 3
    Also when I start wamp, it cannot load the oci dlls found on:
    C:\wamp\bin\php\php5.3.0\ext
    I have configured the php.ini file and commented as much options
    extension_dir = "C:/wamp/bin/php/php5.3.0/ext/"
    extension=php_oci8.dll ; Use with Oracle 10gR2 Instant ...
    extension=php_oci8_11g.dll ; Use with Oracle 11g Instant Client
    extension=php_oracle.dll
    extension=oci8.so
    I am unable to either connect to the database through php, also when I start wamp, i get pop up windows that it cannot load the dynamic procedures related to oracle: php_oce.dll, php_oce8.dll, php_pdo_oci,
    I have even eddited the http.conf file
    Also have done this:
    •Add the following entries to the "C:\Apache\Apache\conf\httpd.conf" file:
    LoadModule php4_module c:\php\sapi\php4apache.dll (approx line 193)
    AddModule mod_php4.c (approx line 241)
    AddType application/x-httpd-php .php (approx line 851)
    I have included the phpinfofile attached as well, part of it below is:
    System Windows NT SELECAO 5.2 build 3790 (Windows Server 2003 Standard Edition Service Pack 2) i586
    Build Date Jun 29 2009 21:23:30
    Compiler MSVC6 (Visual C++ 6.0)
    Architecture x86
    Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--with-enchant=shared"
    Server API Apache 2.0 Handler
    Virtual Directory Support enabled
    Configuration File (php.ini) Path C:\WINDOWS
    Loaded Configuration File C:\wamp\bin\php\php5.3.0\php.ini
    Configuration
    apache2handler
    Apache Version Apache/2.2.11 (Win32) PHP/5.3.0
    Apache API Version 20051115
    Server Administrator admin@localhost
    Hostname:Port localhost:80
    Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
    Timeouts Connection: 300 - Keep-Alive: 5
    Virtual Server No
    Server Root C:/wamp/bin/apache/Apache2.2.11
    Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_actions mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_php5

    I get this error, i decided to change directory for oracle_home
    putenv("ORACLE_HOME=C:/oracle/product/10.2.0/db_1/bin");
    to
    putenv("ORACLE_HOME=C:/oracle/product/10.2.0/db_1");
    it functioned.
    my code
    <?php
    putenv("ORACLE_HOME=C:/oracle/product/10.2.0/db_1");
    putenv("ORACLE_SID=PLSExtProc");
    $user ="name"; // set user
    $senha="password"; // set password
    $banco="(DESCRIPTION=
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=TCP)
    (HOST=127.0.0.1)(PORT=1521)
    (CONNECT_DATA=(SERVICE_NAME=orcl))
    )"; // configuracoes do banco (isso muda um pouco no oracle)
    if ($conexao = OCILogon($user,$senha,$banco))
    echo "Conexão bem sucedida.";
    else
    echo "Erro na conexão com o Oracle.";
    ?>

  • Oracle+apache+php in windows environment

    Hi all, i have a great problem with a new web application written in Php 5 under Apache 2.2.4. using Oracle instant client 10g
    The database (10.2.0.2) characterset is WE8MSWIN1252 same for the client. When i insert/update a rows from php with àèìòù characters i see ¿¿¿ with the client (sqlplusw) if i insert/update same characters from sqlplusw i saw ???? from php.
    Tried to set NLS_LANG in httpd.conf but nothing is changed. Could anyone help me ?
    Thanks.

    What platforms are you using here, for apache/php/oracle client host and the other host where you have sqlplusw.exe?
    When having inserted non-ascii characters from sqlplusw, what does the following return
    select column, dump(column,1016) from table where ...
    After insert from php, what does the same query return?
    Also read the following thread
    charset

  • How PHP connect Oracle for RHLE AS4.0

    I have a RHLE AS4.0 with php-4.3.9-3.1 and httpd-2.0.52-9.ent. I have just installed Oracle 10.1.0.4.0 and it did well.
    I run phpinfo() and it's OK. However, I have another program :
    <html>
    <?php
    echo "I come here";
    if ($c=OCILogon("giao", "tiger", "//localhost/bk119")) {
    echo "Successfully connected to Oracle.\n";
    OCILogoff($c);
    } else {
    $err = OCIError();
    echo "Oracle Connect Error " . $err[text];
    ?>
    <html>
    It only appears
    I come here
    Because acording to the article at
    http://www.oracle.com/technology/pub/notes/technote_php_instant.html
    "Typically the database will be on another machine. If the database is local then Oracle components will generally already be available and Instant Client is not required."
    How can I use PHP to connect Oracle
    Thank you

    I downloaded php-5.1.4.tar.bz2 but I don't know how to complile php with RHLE.
    My system has 2 accounts: root and oracle. Which account should I stand to compile php and after I complied, my system has 2 php. The first is the original php in /etc and the second is in $HOME
    Besides, according to http://uk.php.net/manual/en/ref.oci8.php, the path /www/apache/bin/httpd doesn't exist. I think the article is not suitable for my situation.
    Please tell me solution

  • APACHE connecting with Oracle 7.3

    I need information about connection Apache as client of Oracle 7.3

    you may need to write cgis over proc over sqlnet to connect to Oracle Database.
    Another alter nate is webdb ( readymad cgi ) i configured it working under Redhat 5.2 2.0.36 , apache 1.3.1 oracle 8.0.5 EE . but i am having problems doing same with
    Redhat 6.1 2.2.12 apache 1.3.9.4 Oracle 8i.
    HTH
    Nirav

  • Connection to oracle via php

    hi,
    I am making a site with a connection to oracle Xe but I am not able to connect me;
    here script:
    <?php $user = @$_post['login'];
    $passwd = @$_post['pass'];
    $bd = "(DESCRIPTION =(ADDRESS =(PROTOCOL = TCP)
    (HOST = titanium)(PORT = 1521))
    (CONNECT_DATA=(SERVER = DEDICATED)
    (SERVICE_NAME = XE)))";
    $conn = ocilogon($user, $passwd, $bd);
    $query = "select * from cabine";
    $stid = OCIParse($conn, $query);
    ociexecute($stid);
    while (ocifetch($stid)) {
    echo "\n";
    $ncols = ocinumcols($stid);
    for ($i = 1; $i <= $ncols; $i++) {
    $column_name = ocicolumnname($stid, $i);
    $column_value = ociresult($stid, $i);
    echo $column_name . ': ' . $column_value . "\n";
    echo "\n";
    ocifreestatement($stmt);
    ?>
    I use easyphp 1.0, and oracle express edition;
    here error message:
    Warning: ocilogon(): OCISessionBegin: ORA-01017: nom utilisateur/mot de passe non valide ; connexion refusée in c:\program files\easyphp1-8\www\facture.php
    what must I modify to make function the connection. Thank

    Try echo'ing the username & password to check they are set correctly.
    Is the user account created and unlocked?
    This free book has some useful information on PHP and Oracle: http://tinyurl.com/f8jad
    -- cj

  • Oracle php connectivity

    HI,
    I already told about my pblm. Another one issue is oracle is in one login which is not root. But apache ,php is in root login. Whether these things cause errors.

    no, they don't cause problems.

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition

    Greetings everyone!
    Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...
    define('ORA_CON_UN', 'hr'); // User name
    define('ORA_CON_PW', 'Adlibs14$'); // Password
    define('ORA_CON_DB', '//localhost/XE'); // Connection identifier
    // use constants defined in anyco_cn.inc
    $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    if (!$conn) {
    db_error(null, __FILE__, __LINE__);
    Edited by: user11273096 on Jul 14, 2011 3:41 PM

    Note that this forum is for XE Beta, not EE.
    Can you connect from some other client tool, such as sqlplus?
    There's a {forum:id=178} forum that may be more suitable, if basic connectivity outside php works (i.e. issue is only php specific).

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition EE

    Greetings everyone!
    Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...Note im referring to oracle EE not XE.
    define('ORA_CON_UN', 'hr'); // User name
    define('ORA_CON_PW', 'Adlibs14$'); // Password
    define('ORA_CON_DB', '//localhost/EE'); // Connection identifier
    // use constants defined in anyco_cn.inc
    $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    if (!$conn) {
    db_error(null, __FILE__, __LINE__);
    Edited by: user11273096 on Jul 15, 2011 12:03 AM

    Find the hostname and service name of the database and use those values in the ORA_CON_DB constant.
    Use 'lsnrctl status' on the database host to find the service name.
    If you use a "tns" alias, you may need to create a tnsnames.ora file where PHP can access it.
    Set the environment variable TNS_ADMIN (on Linux) to the directory containing the file.
    See the section "Oracle Database Name Connection Identifiers" p 102 of the free book
    http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html

Maybe you are looking for

  • Adding a hard drive with an itunes library to a different machine

    I have an ata drive from a newly retired g4 (call it drive b) I'v installed into another g4. If I boot from drive b, I can access all my itunes and playlists. If I boot from the original drive in this machine (drive a) I don't see my itunes tunes. wh

  • Low current charge

    My MacBook Air 1.1 will not charge at full power. At the same time the hinges broke on my A1237 MBA the ability to charge went away. The MBA was sent in for repair og the hinges and to checked for the charging issue. Hinges was pepaired under the App

  • Fcp x to both my desktop and macbook

    I would like to buy fcp x, but can I download fcp x to both my desktop and macbook, and if so, how ?

  • How to optimize MF Media Source for MKV playback (containing H264 and AC3)

    I've built a working Media Foundation Media Source for matroska (MKV files) using the sample for an MPEG Source.  I've finally gotten it to a point where I can play the file and both video and audio are visible and audible.  I followed the MPEG1Sourc

  • Offset Paths in Actions problem...

    Hi guys! I work in the printing industry and am trying to create an action that would automatically create a trap and pullback for a certain item. The action has been created and works well except for one thing. When I record the step where I offset