Connection oracle php

Dear Mr Here the errors:Warning: oci_connect() [function.oci-connect]: ORA-01017: nom utilisateur/mot de passe non valide ; connexion refusée in C:\Program Files\Zend\Apache2\htdocs\facture.php on line 28
Warning: oci_parse() expects parameter 1 to be resource, boolean given in C:\Program Files\Zend\Apache2\htdocs\facture.php on line 30
Warning: oci_execute() expects parameter 1 to be resource, null given in C:\Program Files\Zend\Apache2\htdocs\facture.php on line 31
Warning: oci_fetch() expects parameter 1 to be resource, null given in C:\Program Files\Zend\Apache2\htdocs\facture.php on line 32
Notice: Undefined variable: stmt in C:\Program Files\Zend\Apache2\htdocs\facture.php on line 42
Warning: oci_free_statement() expects parameter 1 to be resource, null given in C:\Program Files\Zend\Apache2\htdocs\facture.php on line 42
Dear Mr Christopher Jones, I installed zend core but I always have same the errors. what do I have
to make?

I think your username and password are not correct. Are you using an existing username that is known to work? If not, they how was the user created? Please also post the code you are using to connect, and tell us the versions of PHP and Oracle.
-- cj

Similar Messages

  • Problems with connection from PHP to Oracle DB

    Hello,
    I have a Win2k3 Server with IIS 6.0 and PHP 5.1.2. and an Oracle Client 9i installed.
    Recently I tried to connect via PHP to the DB but it failed with the following message:
    "Warning: ocilogon() [function.ocilogon]: OCIEnvInit() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory in ...\php-skript\test\funk_test.php on line 54"
    So I started looking in the internet for help and found a lot, but nothing that solved my problem. I tried everything (I think):
    * Oracle Client 9i regular Client- environment vars in all variations
    * Oracle Client 10g Instant Client- all variations again
    * I tried to delete all spaces in the "tns.ora" after a hint in another PHP-forum
    * I looked in this forum and found some hints
    BUT: Nothing helped me to solve my problem.
    So I changed my PHP-version from 5.1.2 to 5.0.4 and I got a different failure:
    "[26-Apr-2006 17:58:15] PHP Warning: ocilogon() [<a href='function.ocilogon'>function.ocilogon</a>]: _oci_open_server: ˜Õ‚ in ...\php-skript\test\funk_test.php on line 56"
    This message is really strange, because it contains no information about the failure.
    Has ANYONE another hint for me?? I really don't know what I should do.

    Because it's IIS, I set the env vars manually. That means --> my computer/.../advanced/environment vars/etc.
    After every change, I rebootet the IIS Service. Problem consists.
    Let's have a look, if your links could help...
    ########## EDIT ##########
    Ok, your links WERE INDEED REALLY helpful!
    My problems were caused by missing access-rights.
    How to solve this problem:
    * reinstall your Oracle-client
    * inet-user needs now access rights for
    + "oracle"- folder
    + "oracle\bin"- folder
    + "tnsnames.ora"- file
    * set environment vars
    + NLS_LANG = AMERICAN
    + ORACLE_HOME = "C:\oracle\ora92"
    + TNS_ADMIN = "C:\oracle\ora92\network\ADMIN"
    * restart IIS
    Now it should work!!! THX for your help!

  • How to connect oracle 9i database in PHP (Linux)

    I found that I cannot connect oracle 9i thru PHP in Linux, where can I get the necessary information and samples to setup this connection?

    Hi,
    You can find information on http://www.php.net .
    Anyway, you have to configure php.ini with oci8 library.
    Paolo

  • Php-cgi.exe - Application Error when Oracle is connected in PHP

    I am connecting Oracle 10g from PHP 5.0 and my OS is win server2003. I uncommented the following line in php.ini file also.
    extension=php_oci8.dll
    It is connecting the oracle and giving the required result also, but everytime the following error is coming.
    php-cgi.exe - Application Error
    The instruction at "0x6067b97e" referenced memory at "0x0114f020". The memory could not be read.
    Click OK to terminate the program.
    Click CANCEL to debug the program.
    Can anyone suggest to rectify this?

    Are you using a php_oci8.dll that is the right version for the version of php you're using? I know that sounds silly, but sometimes people do that.
    ~Jer

  • Connecting oracle with php

    hi all,
    i am using Xammp 1.7.4, PHP version 5.3.5, apache 2.2, and oracle 11g. actually i know how to connect MySql using php, but now i am trying to connect oracle using php. Can any 1 tell me the clear cut steps to do the same ?

    You need to add the right oci8 DLL or .so to php.ini and make sure it has access to Oracle client libraries. These Oracle libraries are from an Oracle Home or Oracle Instant Client.
    Without knowing your platform and whether the Oracle DB is on the same machine as Xampp the best place to start is to look at
    http://www.oracle.com/technetwork/articles/technote-php-instant-084410.html

  • Not able to connect Oracle through PHP

    Hello All ,
    I am trying to connect Oracle DB through PHP script . But I am not able to do so .
    My code is :
    <?php
    echo "PRASHANT" ;
    include 'include/odb.php';
    include 'include/ReadConfig.php';
    $conn=OrclConnect('orcl');
    $conn->SetFetchMode(ADODB_FETCH_BOTH);
    echo "DWIVEDI" ;
    ?>
    But when I ran this script throgh command prpmpt , I am getting the first echo message .. But not the last one ( echo "Dwivedi") .
    I am not able to connect Oracle DB through this script .
    Please some one help me out where I am wrong with script .
    Thanks
    Prashant Dwivedi

    Below is my source code
    <?php
    $ORACLE_HOME = 'D:\\oracle\\product\\10.2.0\\parag';
    $ORACLE_SID = 'parag';
    $LD_PRELOAD ='';
    $LD_LIBRARY_PATH ='';
    $TNS_ADMIN = 'D:\\oracle\\product\\10.2.0\\parag\\NETWORK\\ADMIN';
    $NLS_LANG = 'AMERICAN_AMERICA.WE8MSWIN1252';
    $username='spd';
    $password='spd';
    $db='(DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = parag)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = parag)))';
    echo "here1";
    echo "$TNS_ADMIN";
    $conn = oci_connect($username,$password,$db);
    echo "$ORACLE_HOME";
    if (!$conn) {
    $e = oci_error();
    print htmlentities($e[' message']);
    exit;
    ?>
    But still i am getting the same error message

  • 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

  • Error connecting via PHP to Oracle Database 10g XE in Arch Linux with XAMPP

    I get this error whenever I try to connect through PHP to my locally hosted Oracle Database 10g Express Edition
    Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in <filename>.php on line 10
    What can I do?

    Not sure what to offer for XAMP with php, perhaps it needs a configure pointing OCI8 to your ORACLE_HOME, as well as setting the oracle environment and PATH adjustment in the Apache start script.
    Somewhere under /etc there should be an init.d or perhaps rc.d directory with maybe an apache2 script that gets called at system boot or run level change. It will take editing that shell script and adding something like:
      export ORACLE_HOME=/usr/....
      export PATH=$ORACLE_HOME/bin:$PATH
      export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATHAnd restarting apache ... $ [sudo] {RC path}/apache2 restart or $ ...apache2 stop followed by an $ ...apache2 start all depending on how the boot/inits are setup on the box.
    And in your $ORACLE_HOME/network/admin/tnsnames.ora adding a tnsalias won't hurt (as long as the whitespace as well as matching parenthesis are all in order)
    myxedb =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mycompany.com)(PORT = 1521))
        (CONNECT_DATA =
          (SID = XE)
      )

  • Unable to Connect Oracle 7 with Data Services 3.2

    Hi All,
    I am incredibly facing an issues with Oracle 7 connecting with Data Services 3.2. with Native client drivers (TNS Names).
    The client legacy application is on Oracle 7, they are moving the data from legacy to SAP ECC. My role is to transfer the data from Oracle 7 to SAP ECC, We are using Data Services 3.2 for conversion. This Data Services 3.2 is not connecting with Oracle 7 by using oracle native drivers (TNS Names).
    I am able to connect Oracle 8 client with SQL *Plus, but with Data Services its not connecting, I am able create Data Store but when try to import the table the error message I am getting like "ORA-24316: Illegal handle Type"
    Is there any other solution for this to connect, or Is Data Services 3.2 will not connect to Oracle 7 since its older version.
    Please reply with your thoughts, or with some solution.
    Appreciate your prompt reply. Many thanks.

    Hi Paul,
    Currently I am using ODBC connection to read the data from legacy Oracle7, but ODBC is very very slow, queries are taking hours to fetch the data. Is there any other solution by chance... I read that DataDirect is the one can connect to any versions of oracle and its bit faster, is that true. Please clarify me. If that is the solution where can I get this DataDirect drivers for oracle 7? Please advice me.
    Thank  You,
    Ashok

  • Sql * plus 9 is not able to connect oracle 7 database

    Today I have installed oracle 9i release 2 and found that the sql * plus provided with is unable to connect oracle database version 7. But before that we were able to connect the oracle 7 database well.
    Any one having a clue on that...?
    Is it a product bug...?
    If so then please provide me some alternative solution clue or patch download link. Please remember in any condition currently it is not possible discard my oracle 7 database.
    With Regards.
    Soumen.

    No, it is not a bug. You just cannot connect with Ora9i R2 SQL*Plus to an Ora7 database.You cannot create a DB link between the two database either, if you are planning on doing that.
    A solution is to install Ora8 client, which can connect to both Ora9 and Ora7 database (but a db link will stil be impossible).

  • How to connect oracle application server portal to MS access DataBase

    Hello,
    I am facing one problem here.
    Our client is having their database in MS access and they want to implement the oracle application server portal for their organization then how to connect the MS access DB to oracle Application server portal

    There is a worked example of how to connect oracle to an Excel spreadsheet, which is easily modifyable to read from an Access Database.
    http://asktom.oracle.com/pls/ask/f?p=4950:61:::::P61_ID:4406708207206#18830681837358
    I had some concurrency problems - only one person could use the link at any one time, so I used it to load the data into oracle tables.
    Tak

  • Error in connecting oracle odbc driver 9.1.0.8

    java.SQLException:[Microsoft][ODBC Driver Manager][Driver's SQLAllocHandle on SQL_HANDle_ENV failed
    this error is raised when connecting oracle 9i database using oracle odbc 9.1.0.8 driver. please help me                                                                                                                                                                                                                                                                                                                                                                                                                               

    java.SQLException:[Microsoft][ODBC Driver Manager][Driver's SQLAllocHandle on SQL_HANDle_ENV failed
    this error is raised when connecting oracle 9i database using oracle odbc 9.1.0.8 driver. please help me                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to connect Oracle 8.0.5 for Linux to Tuxedo

    How to connect Oracle 8.0.5 for Linux to Tuxedo?
    How to config Tuxedo RM file and setting.

    Thomas Drolshagen (guest) wrote:
    : Oracle 8.0.5. Installation on S.u.S.E. Linux 5.3
    : =================================================
    : After strugling for 3 weekends with the installation of Oracle
    : 8.0.5. on a
    : S.u.S.E. 5.3 distribution here are the installation steps that
    : worked for me.
    I have tried to install Oracle on SuSE 5.2. I almost complted the
    installation, but kept getting a failure on installing the
    database. The last entry in the install.log is:
    Leaving trace.ins- Entering Make Dependent section.
    - Entering do_relink==false section.
    - Leaving Make dependent section.
    - Entering database actions section.
    Deciding to start again from scratch, I tried deleting all files
    and begining again, but now I get a different error running
    orainst. The installer keeps responding that 'file x already
    exists'. The name of the file changes each time I run it, and no
    file of that name exists. I have tried deleting the temp
    directories, as well as dropping them and recreating them
    elsewhere (desperation!), but I canot stop this from happening:
    An operating system error occurred while trying to spawn
    '/orasys/app/oracle/product/8.0.5/bin/otrccref' while
    redirecting
    output to '^ @^'. (File exists.) Would you like to retry
    the
    operation, ignore the error, or allow the error to be
    processed by
    the Installer?
    Does anyone have any ideas??
    null

  • Connect Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000

    Hi all,
    I am trying to connect:
    Oracle 11g (64-bit windows server) to Microsoft SQL Server 2000 (32-bit) on a different machine.
    1) I have create an ODBC connection (called:GALAXY) which connects.
    2) created a init.ora called it initgalaxy.ora in $oracle_home\hs\admin
    HS_FDS_CONNECT_INFO = GALAXY
    HS_FDS_TRACE_LEVEL = on
    3) modified the listener.ora file as below
    # listener.ora Network Configuration File: E:\Ora11g\product\11.1.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc0))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC =
    (GLOBAL_DBNAME = HEX.BIU01.kingsch.nhs.uk)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    (SID_NAME = HEX)
    (SID_DESC=
    (SID_NAME = galaxy)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    (PROGRAM = dg4odbc)
    (SID_DESC =
    (PROGRAM = EXTPROC)
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = E:\Ora11g\product\11.1.0\db_1)
    4) modified the tnsnames.ora file is as follows
    GALAXY =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SID = galaxy)
    (HS = OK)
    HEX =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = BIU01.kingsch.nhs.uk)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = HEX)
    5) restarted the listener
    6) created a public database connect
    create PUBLIC DATABASE LINK "GALAXY" CONNECT TO "USER" IDENTIFIED by "PWD" USING 'galaxy';
    This is the error message I can sell in $oracle_home\hs\admin\trace
    Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
    Heterogeneous Agent Release
    11.1.0.6.0
    Oracle Corporation --- MONDAY APR 27 2009 11:54:18.370
    Version 11.1.0.6.0
    HOSGIP for "HS_FDS_TRACE_LEVEL" returned "ON"
    HOSGIP for "HS_OPEN_CURSORS" returned "50"
    HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
    HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
    HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returned ""HS_TRANSACTION_LOG""
    HOSGIP for "HS_FDS_TIMESTAMP_AS_DATE" returned "TRUE"
    HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
    HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
    HOSGIP for "HS_FDS_RESULT_SET_SUPPORT" returned "FALSE"
    HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
    HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
    using galaxy_live as default value for "HS_FDS_DEFAULT_OWNER"
    HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
    ##>Connect Parameters (len=42)<##
    ## DSN=GALAXY;
    #! UID=galaxy_live;
    #! PWD=*
    hgocont, line 1890: calling SqlDriverConnect got sqlstate IM002
    when I try to test the database link, I get this error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Microsoft][ODBC Drive Manager] Data source name not found and no default driver specified
    ORA-02063: preceding 2 lines from GALAXY
    28500.00000- "connection from ORACLE to ad non-Oracle system returned this message:"
    *Cause: The cause is explained in the forwarded message.
    *Action: See the non-Oracle system's documentation of the forwarded message.
    vendor code 28500
    Edited by: user7336435 on 27-Apr-2009 05:56

    11.2 is beta at the moment. There is no official release date so far.
    As DG4ODBC is independant from the Oracle database (or the target database) you can use a 3 machine model:
    On the first machine you have your Oracle database, on a second machine running 32bit Windows you can install DG4ODBC and on the 3rd machine you can run your foreign database.
    If the SQL Server 2k is installed on a 32bit Windows machine, then you can also install DG4ODBC on this machine.
    In general the connection from an Oracle database to the DG4ODBC machine is done using SDQL*Net. The listener responsible for DG4ODBC will then load the DG4ODBC executable which will connect to the SQL Server using SQL Server ODBC driver.

  • Connect Oracle Reports to Ms Sql Server DB

    Is it possilbe to Connect Oracle Reports to Microsoft Sql Server database. If yes then how. Please advice.
    Thanks
    Sami.

    It is possible to connect Oracle database to MS Sql server database using the Oracle Transparent Gateway for MS SQL Server.
    You can use the following links to configure such connection:
    Oracle Transparent Gateways - General Description - Part I
    http://oracle-apps-dba.blogspot.com/2008/04/oracle-transparent-gateways-general.html
    Oracle Transparent Gateway for MS SQL Server - Part II
    http://oracle-apps-dba.blogspot.com/2008/04/oracle-transparent-gateway-for-ms-sql_16.html
    Aviad

Maybe you are looking for

  • Split VAT amount in PO

    Hi Experts, Could you please advice How can we Split the VAT amount in Purchase Order Our requirement is total PO amount with 60,000..  Please advice how can we resolve the issue. Thanks in advance... Diggi

  • Excise base amount in LOcal currency in J1IG and How to cancel old

    Hi, I have two query for depot plant 1: In case of import material PO currcny is JPY,  now after PO I have done the GR  then ref. to GR number  I am doing the J1IG  in J1IG  in the column  Excise base the default amount is coming from the PO  but it

  • Percentage Total/Subtotal in ALV Grid

    Dear All, I have to display an ALV report with percentage feilds. Everything is fine but the problem arises when the standard ALV sum functionality is used. It simply adds up all the percentage columns. Making do_sum = 'C' wont help either as it woul

  • Which iPad mini 16 gb or 32 gb??

    Planning to buy an Ipad. I already have macbook air 13 inch 128 gb flash. So which Ipad will be good for me 16 gb or 32 gb?? Ipad 2,3 or 4 or pad mini with retina?? With Sim or without sim?? Confused???

  • My songs are not in my library, but I see them on my hard drive.

    I've tried the instructions located here http://support.apple.com/kb/ts1967 I downloaded & installed the latest verison of iTunes, dragged the iTunes Library folder to my desktop, dragged the Previous iTunes Library file to the main iTunes folder (wh