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!

Similar Messages

  • Problem with CONNECT BY NOCYCLE in oracle 10.2.0.4

    Hi,
    When I run the below query in 10.2.0.2 it is executing in fraction of seconds, but while executing the same query in 10.2.0.4 it is running indefinitely.
    Please check the below query and is there any issue with CONNECT BY NOCYCLE in 10.2.0.4 and also please help me to get out of this problem in 10.2.0.4.
    SELECT 1 type_num, r.NAME root_name, r.DATA_GROUP root_data_group,
    NULL child_name, NULL child_data_group, NULL child_type,
    NULL facility_type
    FROM DATA_GROUP r
    WHERE r.DATA_GROUP = (SELECT MIN (DATA_GROUP)
    FROM DATA_GROUP
    WHERE node_type = 'R' AND tree_type = 'C'
    GROUP BY tree_type)
    UNION ALL
    SELECT DISTINCT 2 type_num, NULL root_name, NULL root_data_group,
    dg_child.NAME AS child_name,
    dgl.DATA_GROUP AS child_data_group,
    dg_child.node_type AS child_type, f.TYPE AS facility_type
    FROM DATA_GROUP_LINK dgl, DATA_GROUP dg_child, FACILITY f
    WHERE dgl.DATA_GROUP = dg_child.DATA_GROUP
    AND dg_child.node_type = 'F'
    AND f.facility_num = dg_child.DATA_GROUP
    START WITH dgl.parent_data_group IN (
    (SELECT DATA_GROUP
    FROM DATA_GROUP_SYSTEM_USER
    WHERE system_user_num = 1000088400 AND is_active = 'Y'
    UNION
    SELECT 1016189 AS DATA_GROUP
    FROM DUAL))
    CONNECT BY NOCYCLE dgl.parent_data_group = dgl.DATA_GROUP;
    Thanks,
    Mahi

    Find and read the thread about when queries take too long.
    Something is different between the systems, possibly
    * indexing
    * volume of data
    * connect-by structure in table data
    * initialization or session settings

  • Problems with OPMN from Companion CD (Oracle 10g R2 x86_64 RHEL4)

    I have installed Oracle 10g DB R2 64bit on RHEL4 x86_64 (AMD64) and HTTP-Server from Companion CD
    All works.
    But after running opmn appears problems:
    1. The system message to syslog: "ip_conntrack: table full, dropping packet"
    2. 'netstat -a' displays me thousands TCP-session on localhost to port 6100 in TIME_WAIT state
    And network services on my host more died than alive...
    If I increase ip_conntrack kernel parameter, then network state alive. But the problem with TCP-sessions is not resolved.
    Any ideas?
    Thanks, and sory for my english :-)
    P.S. I have RHEL4 without update 1, but with new kernel and patched binutils. Update of RHEL can resolve this problem?

    Thank you!
    The problem described in Metalink Doc-ID Note : 284602.1 is my case!
    But this document applies to Oracle Net Services - Version: 10.1.0.2 to 10.1.0.3.
    I have Version 10.2.0.1.0 and the problem apears again (with some symptoms are differ).

  • Problems with migrating from access to oracle

    OMWB has a few problems with upper and lower case letters, when i try to modify my old access DB OMWB cant find the new table in Oracle:
    (3011 The Microsoft Jet database engine could not find the object <name>. Make sure the object exists and that you spell its name and the path name correctly. )
    the problem is that it searching for AP_BILD.A990BILDER but the correct name is AP_BILD.a990Bilder
    when i recreate the table as AP_BILD.A990BILDER it worked.
    but i cant do that for almost 400 tables!
    any suggestion how to fix this?
    also have a problem when creating the trigger:
    OMWB puts the tablename into 2 double quotation marks each side (""name"") and of course it tells me something of a tablenamelength of NULL and it doesnt work
    working with release 9.2.0.1.0 of OMWB

    update: if i try to link the table from access directly it also cant find the table, but can find other tables (the others are in upper case).
    could it be a problem with the odbc driver? does it automatically look for upper case names?
    anyone know how to fix this?
    thanks in advance

  • Oracle Database XE - apex on Windows 7 - Problem with Connection from another Windows 7 Computer

    Hello,
    I started with Oracle Database XE 11g, with apex, did the upgrade to Apex 4.2.6 and started in developing a small Application.
    I wanted to Connect to my Computer A (with Database runing on it) from another Windows 7 Computer B.
    So I put in in Firefox: //A:8080/apex but I only received a timeout.
    Of course on both Computers there is a windows-Firewall running, so I stopped on both Systems the Firewall, but its the same still.
    In the windows explorer running on Computer B , I can see the data of Computer A and both Computers are in the same home-net-group. (sorry for my poor english).
    Is there anyone who cann tell me how to get the Connection running ?
    Maybe I didn't see the info about this in the manuals, if it is there, please give me a hint.
    many thanks
    Wilhelm Kästner Salzburg

    Hi,
    Check if this helps
    https://docs.oracle.com/cd/E17781_01/install.112/e18803/toc.htm#XEINW127
    Regards,
    Jari

  • Problem with connecting from Netweaver Session Bean to SAP R/3

    Hi,
    i just want a connection to RFC in SAP R/3 and with help of sap ("Proxy generation" etc) and wizard in NWDS i get the rfc. Now i want to connect and use it (like in handbook) but: Every time i create and use jcoclient.connect() system gets an error like:
    "Class File Editor
    Source not found
    The jar file jrfc.jar has no source attachment."
    I have add all files that are used to "Used DCs" or bind library into projekt as "Third party library", but the error is still there.
    Any idea? Do i have to make something else? Some failure made?
    thx
    Here is text for connection:
    Created on 26.06.2008
    To change the template for this generated file go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    package com.XXXXXXXXXXXXXXXXX;
    import com.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;
    import com.sap.aii.proxy.framework.core.ApplicationFaultException;
    import com.sap.aii.proxy.framework.core.SystemFaultException;
    import com.sap.mw.jco.JCO;
    @author XXXXX
    To change the template for this generated type comment go to
    Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
    public class MyMainClass extends Object
         public static void main(String[] args)
              throws ApplicationFaultException, SystemFaultException
              JCO.Client jcoclient =
                   JCO.createClient(
                        "XXX", //Client
                        "XXX", //User
                        "XXX", //Password
                        "XXX", //Language
                        "XXX", //Server
                        "XXX", //System
                        "XXX"); //Group
              jcoclient.connect();
              jcoclient.disconnect();
    Edited by: Torsten on Aug 27, 2008 10:43 AM
    Where can we download SAP NW7.0 (2004s) as Java Trial for testing? We only find ABAP Trial... Link? thx

    So we tested some things that are described in the SDN or by SAP with Connectors.
    We tested JCO version 2.0.12, 2.1.18 and 3.0 in J2EE Projects in netweaver and in Eclipse (Standalone).
    For version 2.0.12 there is a failure that this version is not compatible with the other things in netweaver.
    This version is for standalone and integrated sytems.
    For version 2.1.18 is only described as standalone and so failure happened in netweaver that other classes are coruppted or missed. The internal test in "content administrator" (Ping and Test) do not work and had the same error.
    For version 3.0 (that displace the other two versions) there is many to do in  settings and coding that we do not have tested yet because project is not that small to write it for JCO 3.0 only for testing. When we only displaced files in netweaver the server do not start any more.
    So:
    Is there a way to call R/3 from session bean and 1. create an JCO client or 2. add a client to the "standard" pool of netweaver to use it?
    Any ideas? help? links?
    Project have to be complete in september...
    Our combi is SAP Netweaver 2004 SP21 on Windows XP SP2 / Server 2003 Standard SP1 with JVM 1.4.2_16... need of any more info?
    thx

  • Problem with online split backup, database oracle

    Hello,
    we use for backup our SAP system online split backup, our database is almost 3TB big. Backup is functional but sometimes (4x-5x per month) backup fail with error bellow. If i understant this problem correctly brbackup lost connection to oracle after split disk system and cant stop backup mode in database and backup failed. How can i solve this problem? Exist some parameter for brbackup for reconnect to db when brbackup lost connection? Thanks for your help!
    BR0051I BRBACKUP 7.00 (25)
    BR0262I Enter database user name[/password]:
    BR0055I Start of database backup: bebnhrzd.anf 2009-09-22 14.52.25
    BR0484I BRBACKUP log file: /oracle/BP1/sapbackup/bebnhrzd.anf
    BR0351I Restoring /oracle/BP1/sapbackup/cntrlBP1.dbf
    BR0355I from /oracle/BP1/sapbackup/cntrlBP1.dbf ...
    BR0280I BRBACKUP time stamp: 2009-09-22 14.53.10
    BR0319I Control file copy created: /oracle/BP1/sapbackup/cntrlBP1.dbf 21676032
    BR0280I BRBACKUP time stamp: 2009-09-22 14.53.13
    BR0315I 'Alter database begin backup' successful
    BR0280I BRBACKUP time stamp: 2009-09-22 14.53.14
    BR0295I Splitting mirror disks...
    BR0280I BRBACKUP time stamp: 2009-09-22 16.07.43
    BR0296I Split of mirror disks successful
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0301E SQL error -3135 at location BrBackAlter-3, SQL statement:
    '/* BRBACKUP */ ALTER DATABASE END BACKUP'
    ORA-03135: connection lost contact
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0318E 'Alter database end backup' failed
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0301E SQL error -3114 at location BrBackAlter-3, SQL statement:
    '/* BRBACKUP */ ALTER DATABASE END BACKUP'
    ORA-03114: not connected to ORACLE
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0318E 'Alter database end backup' failed
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0301W SQL error -3114 at location BrbDbLogClose-1, SQL statement:
    'UPDATE SAP_SDBAH SET RC = '0005', ENDE = '20090922161744', OBJ = ' ', LINE = '#  224     0     0     81358       7817759352        0                0  ALL          online_split    util_file        -
    7.00 (25)' WHERE BEG = '20090922145225' AND FUNCT = 'anf' AND SYSID = 'BP1''
    ORA-03114: not connected to ORACLE
    BR0326W Update of database log header failed
    BR0056I End of database backup: bebnhrzd.anf 2009-09-22 16.17.44
    BR0280I BRBACKUP time stamp: 2009-09-22 16.17.44
    BR0054I BRBACKUP terminated with errors
    Backup utility finished with returncode 5
    Backup FAILED

    Hello,
    in note 534729 is nothing about ORA-03135: connection lost contact only error ORA-03114 which refer to the note 335199 and in this note in nothing about ORA-03114 I want to say two things: this two oracle errors (ORA-03135 and ORA-03114) are not in alertSID.log on db server or in syslog on backup server. This error are only reported from brbackup which is running on backup server which is "client side". We don't have problem with connection from work processes on all instances to db server, we have only problem with brbackup which lost connection after split disk system. How i say this problem occurs only sometimes.  I was tested network connection from backup server to db server via niping a this is result:
    (root@hytti) #./niping -c -H kiuru -B 30000
    Sat Sep 26 14:10:58 2009
    connect to server o.k.
    send and receive 10 messages (len 30000)
    times -
    avg      7305 usecs
    max     46234 usecs
    min      2168 usecs
    bw    8020.50 kb/sec
    excluding max and min:
    av2      3081 usecs
    bw2  19013.91 kb/sec
    do you have any idea?? Thanks!

  • Problem with connecting to DB2 from ADFBC

    I have a problem with connection to DB2 data using ADF BC components. Everything looks fine till I run the page(JSF) to see the data of a db2 table. I created a read only view object. This view is registered in the AM and from AM the view is returning the rows without any problem. But when I am running the page which has the view as a table these errors are thrown. Please help me to fix this.
    JBO-30003: The application pool (od.mft.views.MFTServiceLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:336)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
    ## Detail 0 ##
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:220
    ## Detail 0 ##
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:545)
    Thanks
    Gangs

    Steve, the tester works good as expected and its retreiving the rows. As I said earlier the problem is with the JSF page when I ran the page on Embeded Oc4j of Jdev the page showing the above. The exception does not show on the console.
    Please let me know if you need any more details.
    thanks
    Gangs

  • Problem with connecting to free wifi after upgrading to Windows 8.1 from Windows 8

    Hi
    I had problems with connecting to free Wifi after upgrading my PC(Notebook) to Windows 8.1 from Windows 8. As I travel a lot within europe, I am used to being able to connect to Free Wifi(those that dont need a key or password to enter) but soon after downloading
    Windows 8.1 I almost never was able to do this. I'd always get «LIMITED» even though the signal was strong.This was so fustrating,so much so that I reset my PC to clear it of Windows 8.1 and am now back to Windows 8.This is a shame because I was really liking
    using Windows 8.1 and if not for this problem(which is a big one) I'd still be using it. If I download Windows 8.1 again from the Windows store what is the probability that I'll have the same problems?
    Thanks Portozzygirl

    More often than not when a device isn't working it is because the driver has become corrupted. Re-installing a fresh copy should help
    http://windows.microsoft.com/en-us/windows7/Update-a-driver-for-hardware-that-isnt-working-properly?SignedIn=1
    http://captaindbg.com/how-to-update-drivers-on-windows-7/   (works on win 8 too)
    Wanikiya and Dyami--Team Zigzag

  • If anybody have a problem with connection to smtp server from iPhone

    If anybody have a problem with connection to smtp server just add new server
    Seetings → Mail, Contacts, Calendars → User Me account → Account → Under Advanced choose Mail → SMTP → Add Server
    smtp.me.com
    user name ([email protected])
    password
    Apple, i am in love with your product, please fix this so we could injoy it even more.

    Might be something to help you here >  iCloud: Mail server information

  • Problem with connecting and syncing   (quicktime.qts)

    Hi,
    I have a problem with connecting and syncing my Iphone to itunes.
    iphone alone on PC -> uploading files (fotos) is possible
    itunes starts normaly, if iphone is not conected.
    if i connect iphone after starting itunes, or if i start itunes after connecting iphone i get an itunes-error with message:
    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    ModVer: 7.65.17.80 Offset: 00909a47
    i test different things...
    - used another USB-port
    - used another PC
    - used macbook of my wife instead PC
    - deinstalled and new installed of itunes (older and newer versions) folow tutorials of apple
    - use another USB-Cable...
    I'm resigned, Please help me..
    Tom

    AppName: itunes.exe AppVer: 9.0.2.25 ModName: quicktime.qts
    In this context, that can sometimes indicate trouble with a content file on the phone (or Touch).
    Do you have any podcasts stored on the iPhone at the moment? If so, if you delete them from the phone, can you connect to iTunes without the error?

  • Problems importing connections from a SAN directory

    Is anybody having a problem importing connections from a directory that's on a SAN?
    My network is setup so that the Application Data directory is out on a SAN and when SQL Developer opens up the file dialog, current directory is listed as C:\ and entry in the file name field is file://<server>/<path to my stuff>/Application Data/SQL Developer/. This looks fine but when I click on the "Open" button to get the directory listing, an error dialog pops up with the following message:
    The directory C:\file:\<server>\<path to my stuff>\Application Data\SQL Developer is not accessible. Please select a different directory.
    When I change the current directory to the drive that maps the SAN location, I get the same message only with C: replaced with another drive letter.
    If I had to guess, the dialog is not processing the file:// protocol indicator properly before it attempts to get the directory listing. Does anyone have a work around?

    Other users also had problems with network shares, so you're right that might very well be the cause of your problems.
    As workaround, try mapping the settings folder to a local drive. Add this to \sqldeveloper\bin\sqldeveloper.conf:
    AddVMOption -Dide.user.dir=C:\sqldeveloperHope that helps,
    K.

  • Problems with date in procedure on Oracle 11g

    Hi gurus,
    I have some problems with the date format on Oracle 11g.
    Let me explain the situation:
    When I am starting a request like
    select to_number(to_char(to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'))
    from sys.dual
    I got as result 2009 as number.
    When I do the same in a procedure of a package like this
    my_year := to_number(to_char(to_date('01.04.2009','dd.mm.yyyy'), 'yyyy'));
    the variable my_year contains the value 9 instead of 2009.
    Can someone explain me what's going wrong?
    I have just tested with changing the environment variable nls_date_format for the session and for the complete database with no success.
    Regards,
    Björn

    Thank you all for your replies so far:
    @Alex: You are right, using your short script in sqlplus gives me also 2009 as result
    So, I am now posting the essential excerpts of the procedure because the whole one is to large:
    function insert_szrl (my_fremd_name varchar, my_elementadresse varchar,
    my_zeitstempel varchar, my_wert float,
    my_status varchar, my_zyklus varchar,
    my_offset integer,
    my_quelle varchar, my_nzm_daten integer) return integer is
    begin
    my_date := to_date (substr (my_zeitstempel, 1, 10), 'dd.mm.yyyy') + my_tageswechsel +1/24;
    if my_zyklus = 'mm' then
    my_zeitstempeldate := add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1) +1 + (my_tageswechsel+1/24);
    my_days := to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy') - add_months(to_date(last_day(to_date(my_date, 'dd.mm.yyyy')), 'dd.mm.yyyy'),-1);
    my_year := to_number(to_char(to_date(my_date,'dd.mm.yyyy'), 'yyyy'));
    ptime.umschalttage_tuned (my_year, my_ws, my_sw);
    end if;
    While debugging the complete procedure I see since the start only a date which looks like '01.04.2009 07:00:00'
    Edited by: user10994305 on 19.05.2009 15:58
    Edited by: user10994305 on 19.05.2009 15:58

  • I am having problems with connecting to my router wireles...

    I am having problems with connecting to my router wirelessly.  How do I determine my access point's network key?

    Follow this from a computer already connected: 1. Open setup page of router by typing http://192.168.1.1 in browser’s address bar, and typing password as "admin" and no user name. Use your password if you have changed it earlier. 2. Go to wireless tab. 3. Go to wireless security sub-tab. 4. If security mode is wpa or wpa2 note down pass phrase/shared key, if security mode is WEP note down wep key number 1. This will be your network key.

  • Problem in connection from SAP to XI

    Hi Guys,
    I have problem to connect from SAP to XI.  We have existing SAP R/3 (IS-H) and we newly installed XI. We decided to use ABAP proxy to send data from SAP to XI. When I go to SPROXY system showing ‘No Connection to Integration Builder’. Please kindly advice what configuration we need to in SAP side in order to connect XI.
    It’s Very Urgent. Please advice me.
    Thanks in Advance.
    Regards,
    Anil.

    Anil,
    could you please have a look to SAP Note 689847 - XI 3.0: SPROXY - No connection to the Integration Builder
    Cheers,
    -Sunil

Maybe you are looking for