I got the error ORA-12154 trying to connect my app but not with the SQLplus

Hello! i need your help,
I have a client (Win XP SP2) and i'm trying to connect to the database in the server (Windows 2003, Oracle 10G) using the SQL plus, this is ok, but i try to do it throught the application developed in Developer 6i and i cannot, i got the error: ORA-12154 TNS:could not resolve service name. I tried to solve it by setting the env. var TNS_ADMIN and i still have the same error.
Could anyone help me?, please

Hi,
Check for following file TNSNAMES.ORA at location;
C:\<Forms-directory>\NET80\ADMIN
See, if your service name is added to your file. If not then add a new entry like;
gsm.world =
(DESCRIPTION =
(ADDRESS = (COMMUNITY = tcp)(PROTOCOL = TCP)(Host = 10.0.1.22)(Port = 1521))
(CONNECT_DATA = (SID = gsm))
Where:
gsm.world = your service through which you connect to databse.
Host = ip address of machine where oracle server is running.
sid = name of your database
If you already have entry of service in TNSNAMES.ora file then paste you service here as is did , so that we can check because the error you are facing is only due to service problem. Please update........

Similar Messages

  • Error ORA-12154 trying to connect with instant client 11g / LDAP on Ubuntu

    Hello,
    I have successfully installed instant client 11.2.0.2 and sqlplus on my Ubuntu 11.04 workstation. I am able to successfully connect to DB's defined in tnsnames.ora, but when the resolution is (or should be) by LDAP, I get error
    ORA-12154: TNS:could not resolve the connect identifier specified
    Note: while it's fine for testing, it's not a viable option to setup all the DB's defined in the OID in tnsnames.ora - I need to use LDAP.
    My setup is as follows:
    Install folder: /opt/oracle/instantclient_11_2
    TNS_ADMIN=/opt/oracle/instantclient_11_2/
    sqlnet.ora
    NAMES.DIRECTORY_PATH=(TNSNAMES,LDAP)
    I am certain that tnsnames.ora and ldap.ora are valid, as I can connect successfully on another machine with the full client installed using the same files.
    I tried to setup tracing in sqlnet.ora as follows
    TRACE_LEVEL_CLIENT = SUPPORT
    TRACE_DIRECTORY_CLIENT = /tmp
    TRACE_FILE_CLIENT = sqlnet.trc
    but not trace file gets generated in /tmp - am I doing something wrong ? (Note, I also tried to set DIAG_ADR_ENABLED=OFF as suggested by Laurenz Albe in Instant client don't work trace but that did not help)
    I checked DocID=359206.1 but I don't think that applies as I'm on 11g.
    Hope someone can help. Thanks in advance !

    rgoold, you are a star ! I should have thought about line endings of course. Many thanks for your suggestion, that fixed the problem.
    # file *.ora
    ldap.ora: ASCII text, with CRLF line terminators
    sqlnet.ora: ASCII text, with CRLF line terminators
    # dos2unix *.ora
    dos2unix: converting file ldap.ora to UNIX format ...
    dos2unix: converting file sqlnet.ora to UNIX format ...
    # ./sqlplus -L user@database
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Sep 5 15:26:16 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    Enter password:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL>
    WOHOOOOO !!! :-)

  • ORA-12154 trying to connect using TOAD

    Hi all,
    I have Oracle 10G up and running on W2K, and working fine with sqlplus.
    I have setup the registration KEYS (HKEY_LOCAL_MACHINE/...) so TOAD can look at the proper Database, but when I try to connect, I get the famous (and frustrating!) "ORA-12154: TNS:listener does not currently know of service requested in connect descriptor".
    the TNSPING works fine as well as requested in the TOAD help file.
    I don't really know what I have to do at this stage. Any idea is welcome.
    Thanks,
    Philippe Le Mounier

    Try this:
    set ORACLE_HOME and ORACLE_SID environment variables to the correct values by right clicking on "My Computer" on desktop and clicking:
    Properties -> Environment Variables -> New
    And then try connecting to TOAD.
    I would suggest restoring the registry entries to their original values (since the connecting should work without changing any registry entries).

  • Throwing error ORA- 01031 while connecting as sys, but not with system

    Hi
    we are having oracle 10g on one of the server. When I try to connect sqlplus "/as sysdba"..its throwing error
    ORA- 01031: Insufficient privelege.
    But when I tried login with sqlplus system@dbname its getting connected properly. whats the reason behind this? It was
    working fine till yesterday.
    Thanks
    Shiyas M

    The reason for this can partly be seen in your profile,
    you have asked 17 questions, and 17 of them have been unresolved.
    This isn't very likely,
    so likely you are too lazy to label a question as answered.
    Your laziness is also indicated by this question, which is a FAQ, and FAQs are most often asked, by people who
    - don't read documentation
    - don't use online resources
    - don't search this forum
    prior to asking their FAQ.
    Your equation of SYS as SYSDBA and the SYSTEM account is also incorrect, as SYSTEM doesn't have SYSDBA privileges.
    The ORA-1031 simply means someone somehow disabled OS authentication.
    Now it is up to you to find out why.
    Either by using online resources, or by reading documentation, and researching your own database.
    Not by asking a FAQ and never marking any answer as correct.
    Sybrand Bakker
    Senior Oracle DBA

  • Receiving error 5002 when trying to purchase one item but not when purchasing anything else

         So I am able to purchase other things fine but am stuck with one particular item.  I have submitted the itunes help form twice and no response thus far.  I see that some people say that the error is something to do with billing which makes little sense to me as most everything else purchases fine.  I even purchased some things after i first got the 5002 error and have already recieved the bill for it.
    Anyone know of any way to fix this issue?

    I'm having the same problem trying to buy a CD, I was able to buy a song but not a CD ?????

  • Error message in trying to connect to App store

    Cannot download; cannot upgrade.

    Hi, Ram -
    To help troubleshoot your problem, can you please do the following:
    In the Adobe Community Help application, go to Edit > Preferences.
    Select Local Content.
    The list of Help packages downloaded locally appear. Make sure that the status of every Help packages reads “Current”. If the status of a Help package reads  "Out-of-Date”, select that Help package, and click Update to download the latest Help package. Note that to do this, you have to be connected to the Internet. Once you fully download the Help packages to your desktop, you can access Help offline.
    One other thing that I would want you to check is the Adobe Community Help Client version that you are using. To check that, in the Adobe Community Help application, go to File > About Adobe Help. The build version should be 3.2.0.610.
    Let me know if this helps. If the issue still persists, we can investigate further.
    Thanks,
    Mallika Yelandur
    Technical writer, Adobe Flash Builder

  • Got a new dell laptop. adobe flash works on IE but not with Firefox. Manual installation failed. help!

    When trying to install adobe plugin, it fails, as does trying to do it manually. When trying manually, it says to close firefox then it will work but it doesn't. Again, when under IE, adobe flash works but I prefer Firefox.

    In step one you would have downloaded that file, if Firefox is using the normal configurations you should find it in the same location where you download any other files.
    To find out where Firefox downloads files, in the options window go to the general panel and it should show where files are downloaded to. Alternatively if Firefox stores the history of downloaded files, open the downloads window (you can do that by using keyboard shortcut Control+J), right-click on the install_flash_player.exe entry in the download window and select "Open containing folder"

  • Error while trying to retrieve text for error ORA-12154

    Hello,
    I try to install php 5.1.2 on a WIN2003 server and IIS6 with the OCi8 extension without success from several days.
    On my server I've a 920 oracle client and the 10.1 instant client, I copy the tnsnames.ora in the instant client's directory.
    I've declare many environnement variables :
    - NLS_LANG : AMERICAN_AMERICA.WE8MSWIN1252
    - TNS_ADMIN : E:\...\oracle\instantclient_10_1
    - ORA_NLS33 : E:\..\oracle\920\ocommon\nls\ADMIN\DATA
    With the php command line the oci_connect function correctly works : the php command line use the instant client's tnsnames.ora. I can query with success my database.
    When I try to load a web php script (the same as the php command line script) I have the following error " Error while trying to retrieve text for error ORA-12154" ( oci_connect( $user , $pass, $sid ) . The $sid variable have the value of an alias declared in the tnsnames.ora.
    If I replace the sid's alias by something like this " (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xx.xx.xx.xx)(PORT=1521)))(CONNECT_DATA=(SID=xx)" in the oci_connect function, I have another error : Error while trying to retrieve text for error ORA-12705.
    A web page with the phpinfo function displays the following messages about oci8 extension : It seems to be correct.
    oci8
    OCI8 Support enabled
    Revision $Revision: 1.269.2.8 $
    Active Persistent Connections 0
    Active Connections 0
    Temporary Lob support enabled
    Collections support enabled
    Do you have any idea ? Thanks a lot

    The web server is not seeing the Oracle environment correctly. You need to set PATH to the instant client libraries. ORA_NLS33 is not used for Oracle 10g clients. Perhaps you have some library conflict with two versions of Oracle on the machine?
    These may help:
    http://www.oracle.com/technology/tech/php/htdocs/php_troubleshooting_faq.html#envvars
    http://blogs.oracle.com/opal/2006/05/01

  • I was trying to installed new ios update and suddenly my WIFI connection got desconnect. now I am trying to restore my Ipad2 but getting error saying "the Ipad could not restored, An unknown error accured (3194).

    I was trying to installed new ios update and suddenly my WIFI connection got desconnect. now I am trying to restore my Ipad2 but getting error saying "the Ipad could not restored, An unknown error accured (3194)". so please help me out to resolve the same.

    When I restart my iPad the connect to iTunes comes up and stays on until it shuts down again, I have read a report from Apple support suggesting I reinstall iTunes so I might try that again and also your suggestion which i shall also try, but thanks again - rg1547

  • Discoverer Plus Error: ORA-12154:TNS:could not resolve the

    Hi,
    I’m running the Discoverer report in Discoverer Plus and getting the below error, but when the same report ran in Desktop completes successfully and the SQL from the report is running without error in SQL nav.
    Database Error - ORA-12154:TNS:could not resolve the connect identifier specified.
    Thanks in Advance.
    Sunil

    Hi Sunil,
    Did you test the direct method I posted above? That will bypass the tnsnames.ora file. If it connects fine that way, then you likely have a configuration issue with your sqlnet.ora and/or tnsnames.ora
    You can test with:
    $ORACLE_HOME/bin/tnsping <tnsalias>
    If it is successful, then check if you have the TNS_ADMIN environment variable set (echo $TNS_ADMIN) -- assuming Linix/Unix, if Windows, check system environment variables
    You may TNS_ADMIN set and pointing to a tnsnames.ora that is not in the default location.
    If it fails and your tns entry is correct in the tnsnames.ora file, then you may need to look at the sqlnet.ora
    For example,
    If you have NAMES.DEFAULT_DOMAIN set.. then you would need enter: <tnsalias>.<domain> (i.e. scott.world)
    or you may need to check if TNSNAMES is first in NAMES.DIRECTORY_PATH=
    You can remove or rename the sqlnet.ora to make sure that is not an issue.
    Hope that helps. Good Luck.
    ~Steve.

  • HT4059 I got an error message that I should connect to Wi-Fi after trying to download a Book Sample from the iBooks Store. I still get this error message even after I bought, downloaded, and transferred the file to my iPad's iBook thru iTunes. Wi-Fi ain't

    I got an error message that I should connect to Wi-Fi after trying to download a Book Sample from the iBooks Store. I still get this error message even after I bought, downloaded, and transferred the file to my iPad's iBook thru iTunes. Wi-Fi ain't cheap.

    Hi I had a similar issue to you, I could connect to the router but no internet. Here is my explanation of how I sorted it.....I hope this works for you.
    *To anyone that is reading this it appears that the problem lay in the airport setting: IPV6: set to 'Automatically'. I turned it off (after reading someones plight on MacFixIt) & everything is back to normal.*
    *The worrying thing is although my problem was extreme with other computers on the network being locked out nothing was changed, one minute it worked the next it didn't. Reading on other forums it appears to be a problem with laptops (but I could be mistaken). A lot of people on the Macfixit forum are complaining of network just dropping out even when they are next to the router.*
    *I hope this is the fix (although I dont know why it suddenly went to sh*t!) & I hope my hair pulling & trawling the forums can help someone else out.*
    Much Respect
    Lammo

  • I got a error when i trying to backup my iphone with the usb cable

    i got a error when i trying to backup my iphone with the usb cable. After i update to ios7 and also update itunes to last version, i got a message like 'could not back up the iphone, because a session could not be start with the iphone'. does anyone know how to deal with it. I never meet this question before i update to ios7

    Hello Lazyboy7,
    Thank you for using Apple Support Communities!
    It sounds like you are getting an error message from iTunes when trying to manually backup with your USB cord.
    I found this article to help troubleshoot what might be going on here:
    iOS: Troubleshooting backup issues in iTunes
    http://support.apple.com/kb/ts2529
    Take care,
    Sterling

  • TNS error ORA-12154

    Hi all,
    One of our client is trying to connect to our database from his local pc. We are able to connect to the database fine from here.
    But when he connects from his pc via vpn it gives him this error:
    Ora-12154: TNS:could not resolve the connect identifier specified.
    I checked the path and the Oracle client is in the path on his pc. Tnsping works. Not sure what else I should check. I do not have access to his pc, I just have to troubleshoot on the phont.
    Below is his sqlnet.ora and tnsnames.ora.
    # SQLNET.ORA Network Configuration File: C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
    #NAMES.DIRECTORY_PATH= (TNSNAMES)
    # tnsnames.ora Network Configuration File: C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    alp =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = alm)(PORT = 1525))
    (CONNECT_DATA =
    (SID = alp)
    (SERVER = DEDICATED)
    Please give me your suggestions.
    Thanks.
    Edited by: user553564 on Oct 3, 2008 7:55 AM

    When you do the tnsping, does it say using tnsnames or hostname? I've noticed it can be a bit confusing when you have a host running oracle that is not in your tnsnames.ora, it will successfully tnsping, because the host has a listener running, but you can't attach because the connection string is different. For example, I can tnsping a host named POLARIS, which is not in my tnsnames.ora, but it is in DNS and is running XE. D'Oh!
    You might consider trying a service_name that matches your lsnrctl status output, rather than SID in the tnsnames.ora. It's also possible the user has multiple tnsnames.ora (especially if several things have been installed), and is picking up the wrong one. Try changing things the connect name to something just plain weird and see if it makes a difference. See if there is TWO_TASK in your environment, too.
    Other reasons I'm going bald: case sensitivity of the SID; having two nearly identical entries in the tnsnames.ora and not scrolling down while editing; sqlnet.ora strangenesses; and I've "seen" (in earlier versions, anyways), invisible characters causing problems.

  • OFSA RM PROCESS실행시 OCI DRIVER ERROR - ORA-12154 에러발생

    제품 : OFSA_RM
    작성날짜 : 2003-05-21
    OFSA RM PROCESS실행시 OCI DRIVER ERROR - ORA-12154 에러발생
    ====================================================
    PURPOSE
    Problem Description
    RM process 실행시 아래와 같은 에러 발생.
    Oracle RM
    Version 4.5.36
    Copyright (c) Oracle Corporation, 1995-2000
    All rights reserved worldwide.
    MB(Oracle Financial Services Application error) (203105) Oracle drv_oci error:
    OCI Function: [0] - olon(), orlon()
    Oracle Error: [12154] - ORA-12154: TNS:could not resolve service name
    Driver Function: drv_oci::Connect()
    MB(AttachDB()) Error attaching to database: OFSA45
    Workaround
    Solution Description
    기존에 사용하던 "OFSA45" 라는 listener가 다른 이름으로 바뀌어 있었다.
    OFSA45 Listener를 다시 만들고 test하니, 잘 됨.
    Reference Documents
    -------------------

    First, don't use an ODBC connection, use OCI. Secondly you need to search what's the active home. Also change all your TNSNAMES.ORA files that you can find in your system to make they have the DB name you are trying to resolve. Then try to "tnsping" the DB from a CMD prompt.

  • While logging I am getting error ORA-12154:

    I am getting this error, while logging.
    ERROR:
    ORA-12154: TNS:could not resolve service namePls Wat I need to do,

    hi coolguy,
    my sqlnet.ora file is
    # SQLNET.ORA Network Configuration File: C:\oracle\ora92\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)and my tnsnames.ora file is
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA.ASTSERVER40.COM =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    SANDB.ASTSERVER40.COM =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ast16)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = sandb)
    INST1_HTTP.ASTSERVER40.COM =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = ast16)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = SHARED)
          (SERVICE_NAME = MODOSE)
          (PRESENTATION = http://HRService)
      )and my computer name:
    Full computer name:  ast16.astserver40.com
    Domain                  :  astserver40.comand I tested in command prompt, with tnsping which is mentioned you I am getting this error
    C:\>tnsping sandb
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 21-NOV-20
    07 11:20:22
    Copyright (c) 1997 Oracle Corporation.  All rights reserved.
    Used parameter files:
    C:\oracle\ora92\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve namewhere's the problem....
    Message was edited by:
    user594309

Maybe you are looking for

  • Multiple languages autocorrect issues

    On my iPhone, I added multiple languages and on the keyboard appears the 'globe' to choose one before writing an email. That way, autocorrect adjusts to that language. I added languages to my MacBook Air Air as well, but autocorrect sticks with Engli

  • Loading a table from multiple input files using sqlldr

    Hi, For my project i need to load into a table by joining two input files using sqlldr. For example, I have a file1, which has values name,salary,ssn and file2 which has values for ssn,location,country now i need to load these values into a table say

  • How do I add video to a Pages for iOS document?

    I thought that with the latest updates to Pages that there would be 1:1 parity between the MacOS X and iOS versions of  Pages.  However, I am unable to figure out how to add video to Pages in iOS as I can easily do in Pages for MacOS X (just drag & d

  • How do I get my new mac to read an old dvd to edit it to a new dvd

    how do I get my new mac to read an old dvd to edit it to a new dvd?

  • Xserve Hardware Firewall??

    I am going to be setting up some Xserves in a colo center to host a website. Do I need a hardware Firewall or will OS X Server's software Firewall be fine? If it is not a good idea to run without a hardware Firewall, what are some recommendations for