Tns coulnot resolve service name problem on serverside alone

Hi all,
i have a problem in serverside tnsnames.ora when i try to connect from client to server i am able to connect whereas if i am trying to open the sqlplus with the same username on server i couldn't connect i receive this error
Sathish aravamuthan

I just resolved this same problem, so maybe this will help you. From the server try the following:
Do you have $TNS_ADMIN defined in your environment variables? echo $TNS_ADMIN
cd $TNS_ADMIN
Are sqlnet.ora and tnsnames.ora located here?
When you type "tnsping test.world" does tnsping show that it's using the same sqlnet.ora and tnsnames.ora files that you're viewing? {test.world is a real database for me, so choose an appropriate substitute}
Does the tnsping show OK (0 msec)?
Did you FTP these files from another server? You MUST transfer them in ASCII (not the Linux FTP default of binary). The binary FTP seems to cause the OK (0 msec) problem.
Does your sqlnet.ora have the following line?
SQLNET.AUTHENTICATION_SERVICES= (NTS)
Make sure to delete that if it does.

Similar Messages

  • ORA-12154 - TNS couldnt resolve service name

    I have created the following db link :
    CREATE DATABASE LINK RAN.WORLD
    CONNECT TO <>
    IDENTIFIED BY <>
    USING 'DCCCSN1'
    select * from [email protected]
    This gives ORA-12154 - TNS couldnt resolve service name
    Can someoen advice regarding this please ? I can use the user id and password used to create the db link to connect to the database .Also from command prompt TNSPING DCCCSN1 -also works .So there should be nothing wrong with the TNS entries .Thanks .

    Just want to emphasize on the same point Legatti mentioned.
    The tns entry you mentioned must exist in the tnsnames.ora of the server where the your database (where the dblink has been created) resides.
    Lot of times people think that the tns entry is required on the machine you running the command from, which is wrong.
    Thanks,
    Ankit.

  • Tns could resolve service name

    I have oracle 9i client installed in my machine
    I have installed oracle 9i DS - complete
    I have copied my tnsnames.ora from oracle_home of my client to DS - Home - Network-Admin folder.
    I able to test my connection in net manager but when I connect thru forms builder it says ora-12154 tns could not resolve service name
    I have also manually created the tnsnames.ora thru net8 manager but still I am getting the same problem
    Please can anyone help on this

    Shasi,
    Frank really is right. This is a network configuration problem, particularly the tnsnames.ora (and possibly but unlikely the sqlnet.ora).
    Try connecting from the sql plus in the Oracle Home where Forms & Reports are. You'll get the same error message. You can try to copy the same files over from the database if you're able to connect from that SQL Plus using username/password@connectstring successfully,
    This problem is one we see all the time and is always (maybe a Powerball lottery's odd change it's something else) network configuration files. Make sure they are in the right Oracle Home (Forms & Reports) and that the ones you have work somewhere else.

  • TNS : Cannot resolve service name

    hi i am able to connect to the database (server 10g and client also 10g)
    i mailed the tns entry and gave it to another guy who has oracle 9i (client) installed
    he added the entry to his tns file but unable to connect to the db
    plz help

    something like this...login to cmd promt and then tnsping database_name
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    H:\>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 08-APR-2009 13:
    12:26
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\db_2\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = msn048034c)(POR
    T = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    OK (60 msec)
    H:\>

  • TNS couldpt resolve service name

    Hi all,
    I installed Orale8i on win 2000 server.Later i deinstalled and installed Oracle 9.0.2 on Win 2000 server.I am successfully logging into Oracle 9i through
    SQL Plus.If i try to log in Oracle thru TOAD getting following error
    Building Oracle HOMES List
    HOME Name OraHome81 added to list.
    HOME Name OraHome91 added to list.
    Found multiple homes, searching each HOMEx for valid PATH
    searching in SOFTWARE\ORACLE\HOME0
    Oracle_Home found in SOFTWARE\ORACLE\HOME0 IS in system path!
    searching in SOFTWARE\ORACLE\HOME1
    oci.dll found

    Do you have a backup of your registry? Mucking around with registry entries around Oracle Home's is notoriously difficult because lots of keys reference each other. It's certainly possible to fix everything, but it isn't a simple process.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • ORA - 12154 TNS:couldnot resolve service name

    hi all
    Thank you for all your support .
    Now i am facing a problem . I am using oracle 9i and TOAD 7.3 . we have 4 machines .We can connect to Oracle server from 3 machines through toad .
    But from my machine its showing the above error .But i can connect to the server through RUN (sqlplus username/password@databasename) .
    When i uninstall the TOAD and if i connect it's getting connected. If i shutdown the system and try to connect through TOAD , it will display the error again .
    I copied the sql.net and tnsnames.ora file from other machines which are connecting properly ,then also its not working .
    If anybody knows about this please help me
    thanks & regards

    Oracle networking client gets an alias via @databasename.
    Networking looks up that alias in TNSNAMES.ora - if there is no '.' at the end of the alias it checks the SQLNET.ora for the possibility of a default domain to append.
    It selects the alias from TNSNAMES.ora ...
    - TNS_ADMIN points elsewhere = ORA-12154
    - wrong tnsnames.ora when multiples exist (common) = ORA-12154
    - no tnsnames.ora = ORA-12154
    - no alias = ORA-12154
    and other reasons found http://download.oracle.com/docs/cd/B19306_01/network.102/b14212/troublestng.htm#CEGJAGGH

  • TNS:cannont resolve service name

    i can't understand why this message comes over when i work in form designer in spite of i write the right name of the database
    i work in windows system any one can help me

    i think you must have not added the database string in tnsnames.ora. please check that if it is added in the file. then try running.

  • Fundamental Problem: ORA-12154: TNS:could not resolve service name

    Hello,
    I am faced with a fundamental problem:
    ORA-12154: TNS:could not resolve service name
    I can say with a high level of confidence that the TNSNAMES.ora configuration file is not the problem. My peer is using the exact same file with no issues. I am using the TOAD database utility to connect to the db host. Also, I have ORACLE_HOME defined and the file is located in /network/ADMIN.
    Any ideas?

    Hello,
    Make sure your toad looking into right tnsnames.ora; also try this from command line after adding following entry to your tnsnames.ora.
    sqlplus username/password@ECDEV
    ECDEV =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS =
            (PROTOCOL = TCP)
            (HOST = rscdd01)  --> you can try ipaddress of your server name as well
            (PORT = 1521)
        (SDU = 8192)
        (CONNECT_DATA =
          (SERVICE_NAME =ECDEV)
          (INSTANCE_NAME=ECDEV)
      )Edited by: OrionNet on Dec 23, 2008 2:22 PM

  • TNS: could not resolve service name

    ERROR: ORA-12154: TNS: could not resolve service name
    does any1 know what this means...and how to overcome this problem
    username : scott
    passwd: tiger
    host string: myora
    i have personal oracle8i in d:\oracle
    and d2k in d:\d2k
    it connects with the SQLPlus
    however with d2k when i try to connect it gives the above error
    message.
    does any 1 know a solution to the problem...

    Hello,
    First of all, If you are using PO8i and D2k as a front end
    on single machine,no need of specifying Connect String. You can
    connect using scott,tiger. If still it is giving problem,try
    this one.
    Open TNSNAMES.ORA file from folder NET80/Admin in your PC
    using NOTEPAD. Look there entry for myora. If it is there,Check
    SID,IPAddress or remove word "World" from there. See E.g
    ora816 = -- Your connect string
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (COMMUNITY = tcp.world)
    (PROTOCOL = TCP)
    (Host = 10.0.0.3) -- IP address
    (Port = 1521)
    (CONNECT_DATA = (SID = ora816) -- Database SID
    Hope it will work...
    Adi

  • MSDAORA,IIS,ORA-12154: TNS:could not resolve service name

    Hi All,
    I have a Web Service that coded in VS2008, using ORACLE DB(9i).
    At a time the application working fine and I can access and do everything with database.
    Some other time database server is down for scheduled maintenance. If I try to run the application at this point of time it will raise err "ORA-12154: TNS:could not resolve service name".
    When i reset iis it start to work fine for a while.Then same problem occurs again.
    My connection string is connectionString="provider=MSDAORA.1;data source=***;user id=***;password=***;"
    is there any solution?
    i tried that;
    If theire is multiple copies of OCIW32.dll you have to make sure that there is only one copy of OCIW32.dll which should be in /Bin folder of the oracle home folder.
    Add the IUSR_machine name account and the IWAM_machine name account to the Oracle home folder. Give both accounts full control.
    Create empty file tnsnames.ora in same directory as aspnet_wp.exe,

    Hi,
    The issue doesnt make much sense on the surface at least. 12154 means the client couldnt figure out what you were referring to with your Data Source= entry. If the database was taken down, I'd expect an "oracle not available" or some other sort of error, as the client should have still be able to resolve the entry at least, even if the database wasnt up at the time.
    What do you mean by "When i reset iis it start to work fine for a while.Then same problem occurs again."? The same problem meaning you get 12154 when you take the database down? Or you get 12154 without a db restart?
    Are you using TNSNames.ora for client naming resolution, or something else (ldap, for example)?
    Greg

  • Oracle 9i "TNS:could not resolve service name" on 64-bit OS

    I have a 32-bit .NET 3.0 application that can run on 64-bit OS using WOW64. When I connect to the database on 32-bit OS with 9i (9.2.0.1) client, everything works fine. However, if I install the same client on 64-bit OS (assuming that it would run using WOW64) and run the application, I get "TNS:could not resolve service name" error.
    To make sure that it's not something with configuration, I've installed both clients in the same directory on 32-bit OS and 64-bit OS, and copied the same tnsnames.ora and sqlnet.ora files. I can also connect to the database without a problem on 64-bit OS using SQL Plus. The error only occurs when connection is made via the application, which uses .NET oracle client. The only main difference is that on 64-bit OS, 64-bit version of .NET 3.0 is installed.
    Does anyone have an idea why I am getting this error?
    [tnsnames.ora]
    TRADMIN.ASCINDIA.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.253.57.44)(PORT = 1521))
    (CONNECT_DATA =
         (SID = TRADMIN)
         (SERVER = DEDICATED)
    [sqlnet.ora]
    # SQLNET.ORA Network Configuration File: D:\Oracle\Ora92\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = xxx.yyy.zzz
    SQLNET.AUTHENTICATION_SERVICES= (NONE)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    [tnsping on 32-bit OS]
    Used parameter files:
    D:\Oracle\Ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.253.57.44)(PORT = 1521))) (CONNECT_DATA = (SID = TRADMIN) (SERVER = DEDICATED)))
    OK (640 msec)
    [tnsping from 64-bit OS]
    Used parameter files:
    D:\oracle\ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.253.57.44)(PORT = 1521))) (CONNECT_DATA = (SID = TRADMIN) (SERVER = DEDICATED)))
    OK (590 msec)

    Hi, paste in this post your tnsnames.ora and sqlnet.ora files and give us a example tnsping for test your alias database.
    Good luck.
    Regards.

  • "Database Log In Failed - TNS could not resolve service name"

    Hello.
    I have an installation of Oracle 10g Release 2 (10.2) for Microsoft Windows (32-Bit) using WinXP Pro on my computer.
    I have also installed the compantion CD on the same machine (In a separate home directory) so that I can use PL/SQL.
    I have searched through the forum threads but haven't found any similar problem. The solutions that fixed other peoples problem don't seem to be applicable to mine.
    I have created a user 'antagning' and some tables and also some PL/SQL procedures that compile fine. When I request
    http://localhost:7777/pls/projekt/firsttest
    (firsttest is the procedure. doesn't take any params)
    I get the famous
    Database Log In Failed
    TNS could not resolve service name
    Verify that the TNS name in the connectstring
    entry of the DAD for this URL is valid.
    This is my DAD file:
    <location /pls/projekt>
    SetHandler pls_handler
    PlsqlDatabaseUsername antagning
    PlsqlDatabasePassword antagning
    PlsqlDatabaseConnectString ORCL
    PlsqlAuthenticationMode Basic
    PlsqlErrorStyle DebugStyle
    </location>
    and my tnsnames.ora looks like: (there is only one on the machine so there is no conflicting setups I think)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST =
    localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = ORCL)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    finally, this is my sqlnet.ora:
    # sqlnet.ora Network Configuration File: c:\oracle10g\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    I haven't set any default domain because the database runs on my local computer and not on a microsoft server in a domain. Is that correctly concluded?
    I get an OK message when I ping my TNS with "tnsping orcl" (Maybe that information is not relevant in the context)
    My webserver is started and is running fine (I think). If I request:
    http://localhost:7777/pls/projekt (without any procedure name)
    I get the message that no procedure is specified to run so I get some sort of answer from the webserver, so far so right.
    When I log in using sqlplus with my own created user account I have to leave the database field empty or the login will fail. If I specify the field with the string orcl
    the login will fail. Does that imply that something is not quite right? Maybe that hasn't got anything to do with the failure message.
    /Fredrik

    Has anyone resolved the problems with using TNSFormat?
    As is, I want to move to a shared server setup and to do that I want to use TNSFormat and point to a tns entry which is setup for IPC+Shared connection.
    But the Oracle Home that has the Oracle HTTP Server (from the companion CD) does not have SQL*net installed and does not seem to understand TNS.
    I have TNS_ADMIN setup, I have ORACLE_HOME_LISTENER poiting to the DB Home.
    for the OHS home, using "sqlplus login/pw@ipcshared" works, but "tnsping ipcshared" does not, since tnsping does not exist in the OHS home.
    I cannot install SQL*Net from the CD1, since it requires a dedicated/new home and does not want to install in the OHS Home.
    The only format that works in a dedicated OHS Home setup is ServiceNameFormat.
    Any help or input would be very helpful.
    Regards
    ps. This is a redhat linux setup.
    Message was edited by:
    Oli_t

  • About ORA-12154:  TNS:could not resolve service name

    Hi~
    i have a problem about Oracle Form/Report connecting
    when i keyin UserName/PassWord & Service Name(like myInstance_172.22.22.22) connecting to Instance,connection failed(Form/Report),error as follow
    ORA-12154: TNS:could not resolve service name
    but when i try this(the same userName/PassWord & Service String) on the SQL*Plus or DBA(OEM),it can successfully connection to Instance.
    what should i to do to resolve this problem?
    Thanks.

    Robson
    "TNS:could not resolve service name" means the tnsnames.ora file doesn't have the entry for your service name.
    There are couple of situations where this error can come even if you see the sqlplus works
    Please check the follwoing
    1. You may be having morethan one tnsnames.ora file in your system and the entry doesn't exist in any one of them , which is unfortunatel used by Forms/Reports.
    In your Oracle_Home for Forms / Reports, serach for the folder Network/admin or Net80/Admin and see the tnsnmaes.ora file there. Ensure you have the proper entry for your referred tnsname
    2. If your Reports server / client is in different machines, ensure both the machne's tnsnames.ora files have the entry
    Alternatively, you canedit the registry of your Oracle_Home to add another variable call ed TNS_ADMIN and give your directory where theproper tnsnames.ora
    is available
    Thanks
    The Oracle Reports Team

  • ORA-12154: TNS:could not resolve service name

    Hi Guru's
    i applied Maintainacepack 3480000 patch on my application for upgrading 11.5.7 to11.5.10.2, after completion of patch, I run the autoconfig it has given bellow error, please anybody can help me, i need to finish my task immediately, please provide me the solution.
    autoConfig Profile Phase
    Running Profile Process 1 of 1 for CLN_TOP
    Executing script in InstantiateFile:
    /sgmtemp/prodcomn/admin/install/MSBEP004_dcpsr006osm/clnadmprf.sh
    script returned:
    clnadmprf.sh started at Sun Feb 17 06:24:13 WST 2008
    The environment settings are as follows ...
    ORACLE_HOME : /sgmtemp/prodora/8.0.6
    ORACLE_SID :
    TWO_TASK : msbep004
    PATH : /sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/8.0.6/bin:/sgmtemp/prodappl/fnd/11.5.0/bin:/sgmtemp/prodappl/ad/11.5.0/bin:/sgmtemp/prodcomn/util/jre/1.1.8/bin:/sgmtemp/prodcomn/util/unzip/unzip::/sgmtemp/prodora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/iAS/Apache/perl/bin:/sgmtemp/prodora/8.0.6/bin:/sgmtemp/prodcomn/util/jre/1.1.8/bin:/sgmtemp/prodcomn/util/unzip/unzip:/sgmtemp/prodora/8.0.6/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/java14/jre/bin:/usr/java14/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/sgmtemp/prodappl/bin:/usr/bin/X11:/sbin:/usr/lpp/pd/bin:.
    LD_LIBRARY_PATH : /sgmtemp/prodora/8.0.6/network/jre11/lib/aix/native_threads:/sgmtemp/prodappl/cz/11.5.0/bin:/sgmtemp/prodora/8.0.6/lib:/usr/dt/lib:/usr/openwin/lib
    Executable : /sgmtemp/prodora/8.0.6/bin/sqlplus
    SQL*Plus: Release 8.0.6.0.0 - Production on Sun Feb 17 06:24:13 2008
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve service name
    clnadmprf.sh exiting with status 1
    ERRORCODE = 1 ERRORCODE_END
    .end std out.
    thanks

    Please Apply "Patch 5985992 - TXK AUTOCONFIG ROLLUP PATCH Q (JUL/AUG 2007)", run AutoConfig, and check then.

  • IFS 9 : TNS:could not resolve service name

    Hello,
    I have this message when Trying to connect in Java to IFS 1.2 :
    oracle.ifs.common.IfsException: IFS-21008: Unable to connect to
    iFS service
    java.sql.SQLException: ORA-12154: TNS:could not resolve service
    name
    I have been developing with IFS 1.16 for a while but now I have
    to upgrading to IFS 9 (1.2). To set up my development
    environment I did the same thing that I did for the version 1.1.6
    1-     Copying all Jar from D:\oracle\ora90\9ifs\lib and I had
    them to my classpath
    2-     Copying the folders under D:\oracle\ora90\9ifs\settings
    to have access to the IfsDefault.properties. file.
    3-     I got the new JDBC driver and Oracle Client 9 on my
    developer station.
    IfsDefault.properties is pointing to the right TSN. When I test
    my TSN (orcl) with the SQL+ it works just fine. I tried to use a
    Invalid Ifs Service Name instead of IfsDefault too see if I got
    a different error message and no, I got the same error. It looks
    like the environment doesn&#8217;t find the IfsDefault.properties
    file ?
    Any Idea of it could be ?
    There is the code that I use to connect :
    LibraryService service = new LibraryService();
    CleartextCredential cred = new CleartextCredential
    (username, password);
    ConnectOptions options = new ConnectOptions();
    options.setLocale(Locale.getDefault());
    options.setServiceName(repository);
    options.setServicePassword(repositoryPass);
    _ifsSession = service.connect(cred, options);
    // Doit mettre explicitement le Admin flag dans la
    Session
    DirectoryUser user = _ifsSession.getDirectoryUser();
    _ifsSession.setAdministrationMode(user.isAdminEnabled
    _logger.info("user " + user +"  is now connected to
    Ifs " + repository + ", " + _loggedUserCounter + " connected.");
    Thank you

    Looks like your TNSnames is not properly configured .. Did you
    try to do a sqlplus from the command prompt to see if you can
    connect to SQLPlus ??

Maybe you are looking for

  • Macbook Pro 2012 Kernel Panic

    During graphic intensive applications(gaming, netflix, etc), my macbook pro will randomly hard freeze(sometimes it's after a few minutes and other times several hours). I can't access any other applications during this, and I can't force quit using t

  • Unable to upgrade Acrobat v6.0.0 to 7.1.0

    Hi, I'm trying to update Adobe Acrobat v6.0.0 to 7.1.0 without success. I get the following error if i log the installation: === Verbose logging started: 13-10-2008 15:46:23 Build type: SHIP UNICODE 3.01.4000.2435 Calling process: C:\WINNT\system32\m

  • Extra and unwanted paragraph tag after text inset

    Using Framemaker 7.2 -- we maintain a number of manuals which reference a group of common sections, each of which is a separate .fm file. The ratio is one-to-many: for example, there is an .fm file called "Bob" which contains information common to mu

  • My itunes library has been erased

    When I connected my i-Pod to my laptop, it said there was a problem with this disc and suggested I repair it.  Now EVERYTHING has been deleted from my library and i-Pod!  How can I restore it?

  • File Sharing With the BEFW11S4 in Vista....

    I have two computer connect to my router on a network, Both computers are running Windows Vista. I am able to see each computer on the network map in the network and sharing center. But when I go to the network folder the computers do not apper at al