Error when connecting PHP on linux with oracle9i

the error that presents/displays to me is the following one
Warning: ocilogon(): ociopen_server: Error while trying to retrieve text for error ORA-12154 in /var/www/html/oci8test.php on line 3
rethat 2.1 AS, PHP-3.4.3 y apache 1.3.28
Help

The oracle error ORA-12154 is a "TNS:could not resolve service name" error. This is what I get when I type oerr ora 12154:
// *Action:  Make the following checks and correct the error:
// - Verify that a TNSNAMES.ORA file exists and is in the proper
// place and accessible. See the operating system specific manual
// for details on the required name and location.
// - Check to see that the service name exists in one of the
// TNSNAMES.ORA files and add it if necessary.
// - Make sure there are no syntax errors anywhere in the file.
// Particularly look for unmatched parentheses or stray characters.
// Any error in a TNSNAMES.ORA file makes it unusable. See
// Chapter 4 in the SQL*Net V2 Administrator's Guide. If
// possible, regenerate the configuration files using the Oracle
// Network Manager.
Hope this helps.

Similar Messages

  • Error when connecting an oracle DB with Integration gateway

    I followed the steps from the blog How to connect an Oracle DB with Integration Gateway in SMP3 and the ojdbc was deployed successfully to SMP. Still, i'm getting "Driver class oracle.jdbc.driver.OracleDriver not found" error message when i try to test my connection. The first difference i saw when completing these steps was that I'm using SMP3 SP05, could this be the issue?

    Joao D Franco Net
    Could you share below information:
    Can you cross check if deployed driver are OSGi enabled? Refer this.
    Can you share screenshot of the destination settings and error ?
    note: The blog you followed is referring to SP03 (1st GA of SMP3)..You should not have any problem in connecting to Oracle DB being on any SP.
    Regards,
    JK

  • Error when Connect to Access 2007 with password using OLEDB

    Hi there,
    I am seeing the below error when trying to Connect to Access 2007 with password using Crystal XI or Crystal 2008, when using the OLEDB to connection Access data.
    Logon failed
    Details: DAO Error Code: 0xd0f
    Source: DAO.Workspace
    Description: Unrecognised database format 'path to database\crs project database.aaadb
    Get though when I use Access 2007 without password setup.
    Many Thanks for any one can help.
    Daphne Li

    As a copy of this query has been posted to the CR design forum at 11:21, assuming this is indeed a design question.
    Thus setting this thread as answered.
    - Ludek

  • I met an error when connect to oracle db with tag sql:DataSource

    When I use the jstl tag <sql:DataSource> connect to oracle db ,I met an error as :
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
    My Source code as follow:
    <sql:setDataSource var="dataSource" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@192.168.1.220:1521:gzserver" scope="request" user="lnmisscall" password="lnmcadmin"/>
    <sql:query dataSource="{$dataSource}" var="data">
    I am sure the connection information are right (I can connecte to the db with them in jsp & java bean) , and I have put the oracle's jdbc driver under the tomcat/common/lib folder,
    Please help me to fit it ,thanks.

    Sabrina,
    Its all dependent on the application and whether its 32-bit or 64-bit.  For example, SSRS reporting services 2008 R2 is a 64-bit application, so load the 64-bit oracle client there for report execution.  Report builder is a 32-bit client application,
    assuming its running on a different machine, so load the 32-bit oracle client on any user computers using RB 3.0 and working with Oracle.  If the computers are one in the same, then do as the post above says, load both...

  • Error when connecting a sap machine with another sap machine

    Hello,
    Sap machine 'A' calls the object bus2010 of sap machine 'B'. I indicate in the call the system logic and destination RFC. System logic and destination RFC are OK in both systems. When calling the system 'B' an error 'Expected error in SP client' appears.
    Best regards,
    Vanesa

    Hi Samid,
    The issue related with your host entries under /etc/hosts file .
    java.net.UnknownHostException: sapsleora: sapsleora
    The exception is really saying is that there is no known server with the name "local".As per me you're trying to connect to your local computer. Try with the hostname "localhost" instead, or perhaps 127.0.0.1/::1
    Your host file entries would be like as below:
    127.0.0.1   localhost.localdomain   localhost
    <IP-address of your server>   <hostname of your system>
    Save the host file & retry the SWPM.Hope this time you'll get the successful execution.
    Regards,
    Gaurav

  • Error when connecting to the RDSH with WebApps

    I have a Server with RDGW, RDCB, RDWA. Then I have an other Server with RDSH installed. I published some Apps from the RDSH. When I logon now, I can see the WebApps on the Website.
    If I start a WebApp, I get the connection Information:
    Publisher: RDGW
    Type: RemoteApp-Programm
    Path: Calc
    Name: Calculator
    Remote Computer: RDSH name (is unknown for the client, But the RDGW knows this server from DNS)
    Gatewayserver: RDGW
    Then I get an Error:
    Disconnected Remote App
    All Certificates are trusted (I don't get any certificate error message).
    ----------------          10.48.40.36 ------------------------------      10.253.24.101 ----------
    |Windows 7 |-----------------------| RDWA / RDGW /RDCB |------------------------| RDSH |
    ---------------- 10.57.27.42          ----------------------------- 10.253.24.100        ----------
    The Network Adapter 10.253.24.100 is shared, so this can be accessed from the other adapter.

    Yes. It's a public trusted CA. I have no Certificates warnings.
    If I connect to the "internal" Address (10.253.24.100) then it works perfectly.
    I shared the internal interface. But it seems, that I have to enable somthing else. How can I get more detailed logs?

  • Line Cord Error when connect to Sky+ Box with BT65...

    Bought a new Panasonic TV and had to re sort cables took photos and replaced exactly as before. Did connect the new TV to splitter that works fine.
    BT 6500 shows Line Cord error as soon as Sky box connected on own, with micro filter, with splitter. No errors prior to today so wonder if doing something daft. 
    We have 3x 6500s in house is it REN related? But as worked previously a bit odd. 
    Extension socket behind TV to micro filter - to spliter as before. Plug in cable to SKY plus box and get a line chord error showing on handset. Disconect and fault goes but noticed this fault reported on many forums BT, Virgin ....ANY advice welcome. 

    make sure you have connected the cable to Sky box into correct port.... the sky box has 2... an ethernet port for a cat5 cable ( rj45 bigger port ) and an rj11 port for the phone cord.... the problem is this will fit in both!! but if connected to the ethernet port it will put a loop on line and cause fault on phone line...

  • HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome

    HP LASERJET CP1525nw print error when printing online Gmail emails with Google Chrome. Extra large font sizes and weird formatting issues only when printing emails from Gmail within Chrome. No problems when printing the same email from Gmail+Internet Exolorer or Thunderbird. Using the IE Tab extension in Chrome prints the email correctly but the style of Gmail's message window is completely weird ie: formatting bar is spread out vertically instead of horizontally. I believe it is clear that this is an application specific issue between the HP LASERJET CP1525nw printer and Google Chrome + Gmail. This printing scenario does not occur when printing anything else or when printing via another printer. I would appreciate receiving any suggestions to solve this issue.
    OS: Windows 7 Ultimate x64
    Browser: Google Chrome 15
    HP Print driver: HP Universal Print Driver for Windows PCL6 v5.4.0
    Printer is connected by WiFi to 4 computers

    Hi AbZu, 
    You need to contact Google Chromes technical support as this is only an issue with Chrome. You have indicated that the printer functions correctly everywhere else. Check out the link below for Google Chrome technical support. Let me know if you need additional assistance?
    http://support.google.com/chrome/?hl=en
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

  • Error when connecting to terminal

    Hello,
    I have a BB 8100, Desktop manager 4.6.
    Synchronization was working correctly 3-4 weeks ago.
    Today, when I tried to synchronize, I had this error message:
    0 x 80040fb3
    I tried to debug this with the procedure of modifying Last name, first name, etc.... with no success
    I tried several time to synchronize again but without success.
    Now, the situation is even worse!
    New message when I connect my BB to my computer. When I launch Desktop manager, I have the following error:
    "Error when connecting to terminal. Make sure that your terminal is correctly connected, then try again"
    I can not anymore try to synchronize!
    This is very strange, it never happened before.
    Nevertheless, Desktop Manager recognize my BB, as I can read on the buttom left part of the screen: Terminal connected (code Pin) recognized xxxxxx.
    HELLLLP!
    Thanks
    Solved!
    Go to Solution.

    Hello RianaZaire,
    Unfortunately, I still have the same error Message.
    I have not been able to solve the situation.
    I reinstall twice the software.
    I tried to connect my Blackberry to my computer with a new cable.
    I still have the same error message.
    I don't know what to do.
    Maybe somebody will read our messages, and help us!
    Maybe this information has a link with my blackberry problem:
    I also have a problem with an another device. (a TOMTOM GPS system), which happened almost at the same time.
    Usually, when I connect this device, it will directly open the GPS sofware ( where I can download the new updating stuff). But since this Blackberry problem, I can not do it anymore. Impossible to connect the TOMTOM onto it. It is not recognize onto my computer.
    For information, I also do synchronization of my adress book between my phone and TOMTOM.
    HELP HELP

  • Error when connecting to portal from some machines

    Hi all,
    Can anyone help me with this.
    I get this jserver error when connecting to portal from some
    client machines.
    I works fine from the others. Any ideas?
    This is the error I get:
    [08/01/2002 17:41:57:618 GMT+00:00] page/Timeout occurred,
    label=73 url=http://odeceixe:81/pls/portal30/!
    PORTAL30.wwpro_app_provider.execute_portlet time=15828ms
    [08/01/2002 17:41:57:618 GMT+00:00] page/ContentFetcher
    Unexpected Exception, name=content-fetcher5
    java.io.EOFException: Premature EOF encountered
         at HTTPClient.StreamDemultiplexor.read
    (StreamDemultiplexor.java, Compiled Code)
         at HTTPClient.RespInputStream.read(RespInputStream.java,
    Compiled Code)
         at java.io.InputStream.read(InputStream.java:95)
         at java.io.InputStreamReader.fill
    (InputStreamReader.java:163)
         at java.io.InputStreamReader.read
    (InputStreamReader.java:239)
         at oracle.webdb.page.ContentFetcher.run
    (ContentFetcher.java, Compiled Code)

    Did you ever find the cause of this, I am receiving the same message, but as you said, only when connecting to the portal via a certain pc.

  • Error when connecting to MDM from different lan

    Hi,
    I got "Image Server Login Error" when connecting with client to server from different LAN, server is up, and i can connect to it when i in the same LAN. Ports 20003, 20004, 20005 for MDM server discovering and repository port 2345 is accessible through router. Running SP2 5.5.24.06.
    Rem: it's not a port problem, when port 2345 is closed i got "WinSock error on connect"
    PS: When I used MDM SP1 i connected to him properly in the same case.

    Hi Dmitry,
    If your repository is set to port 2345, then 4 subsequent ports should be openned also, i.e. 2346-2349.
    Regards, Lev

  • Error When connecting proxy

    Hi,
    When I try to connect proxy in application, it is not connecting instead when I check whether it is going through proxy or not it is telling that it is establishing direct connection only. Here I have posted part of the coding. Please If any error give me a hint.
                System.setProperty("ProxySet", "true");
                SocketAddress addr = new InetSocketAddress("webcache.mydomain.com",80);
                proxy=new Proxy(Proxy.Type.HTTP,addr);here in this code part I am checking whether is connecting with proxy or not.
    URL u = new URL(url);
    URLConnection uu=u.openConnection(ScrapperInterface.proxy);
    try
                    URI uuu = uu.getURL().toURI();
                    List l=ProxySelector.getDefault().select(uuu);
                    for (Iterator iter = l.iterator(); iter.hasNext(); )
                         Proxy proxy = (Proxy) iter.next();
                         System.out.println("proxy hostname : " +proxy.type());
                         InetSocketAddress add = (InetSocketAddress)proxy.address();
                         if(add == null)
                             System.out.println("No Proxy");
                         else
                             System.out.println("proxy hostname : " +add.getHostName());
                             System.out.println("proxy port : " +add.getPort());
    catch (URISyntaxException ex)
                    Logger.getLogger(StartThread.class.getName()).log(Level.SEVERE, null, ex);
    }Output is:
    proxy hostname : DIRECT
    No Proxy

    Re: Error When connecting proxy You didn't get any error when you created the connection. Your title is misleading. Probably you are misleading yourself - see below.
    System.setProperty("ProxySet", "true");That does nothing. There is no such property, contrary to widespread belief.
    SocketAddress addr = new InetSocketAddress("webcache.mydomain.com",80);
    proxy=new Proxy(Proxy.Type.HTTP,addr);... and using java.net.Proxy has nothing to do with system properties in any case.
    URLConnection uu=u.openConnection(ScrapperInterface.proxy);Here you are opening a URLConnection via the proxy. As you got output from the code further down it is clear that this step must have succeeded. So all the code below is pointless.
    URI uuu = uu.getURL().toURI();Here you are getting the URI you created the connection for.
    List l=ProxySelector.getDefault().select(uuu);Here you are getting the Proxies the default ProxySelector would have given you for that URI. Nothing to do with the URLConnection you created, and nothing to do with the Proxy you created either.
    InetSocketAddress add = (InetSocketAddress)proxy.address();So here you are testing the proxy address for the system's default proxy for that URI. Again, nothing to do with what you did above.
    What you should be doing here is using the URLConnection you have already created. Not testing an address.

  • "no ocijdbc11 in java.library.path" error when connecting a TNS database co

    Hi
    "no ocijdbc11 in java.library.path" error when connecting a TNS database connection
    I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
    I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
    I've also tried most of the suggestions in various threads.
    Does anyone know what exactly causes this error?
    eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
    Can anyone explain to a newbie at db connections what I should do?
    I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
    This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
    Thanks

    When you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
    I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
    Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
    theFurryOne

  • When the system status says icloud is OK but it reports "encountered an error when connecting to the server", where do you report the problem, or how do you connect?

    When the system status says icloud is OK but logon reports "encountered an error when connecting to the server", where do you report the problem, or how do you connect?

    Yes i am hoping staff here will look into things, even if i can not get the speeds back what i previously had for near 6 months it would be nice to know why i can not and why the download has dropped by around 10Mb and why my upload is now inconsistant.
    Ironically the post concerned got edited because i actually posted the full rather silly reply the Indian call centre made babbling on about down rates rather than the uprate i queried with them.
    Bit of a shambles really no real way on BTs web site to contact anyone with regards to broadband issues.
    The form which you kindly suggested and i appreciated your help ended up in the hands of someone who either did not bother to read the query or just had such a poor grasp of English they did not understand the query.
    Pretty pathetic really when BT are the largest telco in the UK. I think ill be taking my broadband business elsewhere regardless at the end of my 18 month contract, while im sure staff here are wonderful and may even yet help me, i do not particularly want to go through the almost like pulling teeth pain of getting any future issue looked at.
    They are great at quickly fixing voice line problems and have a great test on their site. Broadband side of things and support for that though seems a shambles.

  • URGENT - INTERNAL SERVER ERROR when connecting to site

    i'm getting INTERNAL SERVER ERROR when connecting to site. everything was ok till yesterday night but since today morning, nobody has been able to log in the site.
    i looked at the Apache Listener log files in IAS_HOME/Apache/Apache/logs
    the error_log file contained the following :-
    [Fri Jan 26 08:32:04 2001] [error] [client 127.0.0.1] Invalid method in request ^A
    [Fri Jan 26 08:32:05 2001] [error] [client 10.32.12.219] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//IETF: /servlet/p
    age
    [Fri Jan 26 08:32:58 2001] [error] [client 127.0.0.1] Invalid method in request ^A
    [Fri Jan 26 08:32:58 2001] [error] [client 10.32.12.219] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//IETF: /servlet/I
    sItWorking
    [Fri Jan 26 08:33:13 2001] [error] [client 127.0.0.1] Invalid method in request ^A
    [Fri Jan 26 08:33:13 2001] [error] [client 10.32.12.219] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//IETF: /servlet/page
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    then i tried to kill all the httpd processes and restart the apache and the error log was populated with the following :-
    [Fri Jan 26 09:35:48 2001] [warn] child process 16269 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16270 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16271 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16272 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16273 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16274 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16275 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16276 still did not exit, sending a SIGTERM
    [Fri Jan 26 09:35:49 2001] [warn] child process 16277 still did not exit, sending a SIGTERM
    ,same messages continue for different
    ,process ids followed by
    Assertion failed: wwwctx->alloctotal == 0, file wwcepl.c, line 559
    Assertion failed: wwwctx->alloctotal == 0, file wwcepl.c, line 559
    Assertion failed: wwwctx->alloctotal == 0, file wwcepl.c, line 559
    Attempt to free unreferenced scalar.
    Attempt to free unreferenced scalar.
    Assertion failed: wwwctx->alloctotal == 0, file wwcepl.c, line 559
    Assertion failed: wwwctx->alloctotal == 0, file wwcepl.c, line 559
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    [Fri Jan 26 09:35:53 2001] [error] child process 16269 still did not exit, sending a SIGKILL
    [Fri Jan 26 09:35:53 2001] [error] child process 16270 still did not exit, sending a SIGKILL
    [Fri Jan 26 09:35:53 2001] [error] child process 16271 still did not exit, sending a SIGKILL
    [Fri Jan 26 09:35:53 2001] [error] child process 16272 still did not exit, sending a SIGKILL
    [Fri Jan 26 09:35:54 2001] [error] could not make child process 16269 exit, attempting to continue anyway
    [Fri Jan 26 09:35:54 2001] [error] could not make child process 16270 exit, attempting to continue anyway
    [Fri Jan 26 09:35:54 2001] [error] could not make child process 16271 exit, attempting to continue anyway
    [Fri Jan 26 09:35:54 2001] [error] could not make child process 16272 exit, attempting to continue anyway
    [Fri Jan 26 09:35:54 2001] [error] could not make child process 16273 exit, attempting to continue anyway
    [Fri Jan 26 09:35:54 2001] [error] could not make child process 16274 exit, attempting to continue anyway
    [Fri Jan 26 09:35:54 2001] [notice] caught SIGTERM, shutting down
    [Fri Jan 26 09:38:10 2001] [notice] Apache/1.3.12 (Unix) ApacheJServ/1.1 mod_perl/1.22 configured -- resuming normal operations
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    [Fri Jan 26 09:38:44 2001] [error] [client 127.0.0.1] Invalid method in request ^A
    [Fri Jan 26 09:38:44 2001] [error] [client 10.32.1.81] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//IETF: /servlet/pag
    e
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    [Fri Jan 26 09:39:06 2001] [notice] caught SIGTERM, shutting down
    [Fri Jan 26 09:39:30 2001] [notice] Apache/1.3.12 (Unix) ApacheJServ/1.1 mod_perl/1.22 configured -- resuming normal operations
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    ApacheJServ/1.1: Exception creating the server socket: java.net.BindException: Address already in use
    [Fri Jan 26 09:42:17 2001] [error] [client 127.0.0.1] Invalid method in request ^A
    [Fri Jan 26 09:42:17 2001] [error] [client 10.32.1.81] malformed header from script. Bad header=<!DOCTYPE HTML PUBLIC "-//IETF: /servlet/pag
    e
    Any ideas or suggestions anyone ....??
    what could have possibly changed since yesterday to effect the site ??
    any help would be greatly appreciated ...
    null

    A couple of questions:
    1) Did you try shutting down apache with the sript?
    2) When killing the httpd processes did you also kill the associated java processes?
    null

Maybe you are looking for

  • Creating Box in Sap Scripts

    HI Gurus, I am working on Check Printing. My issue is that I want to create a box frame  for the Check amount window. My Windoys attributes are : LEFT MARGIN     : 14.90 cm UPPER MARGIN  : 22.20 cm WINDOW WIDTH : 3.90 cm WINDOW HEIGHT: 1.15 cm I want

  • Do I still pay for the movie if not enough storage?

    if not enough storage to download a movie on my iphone, do I still have to pay for the movie? It downloaded halfway before I got the "not enough storage" message.

  • CD-R, DVD Drive

    I have some footage on the mini-DVD's.......Do I need some sort of sleeve to play the small sized DVD's or should they just insert into the drive? I tried and it didn't seem to work. I thought I possibly lost the DVD in the drive but it popped out a

  • CS6 Trial Illustrator won't open

    I just downloaded Illustrator trial version, it downloaded and installed perfectly but now I can't seem to open it I keep getting an error message. I'm using windows xp can this be fixed?

  • When can we expect JDeveloper 11 preview?

    Seeing the Statement of Direction, can we expect JDeveloper 11 some time shortly or will it be a long way to go..