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

Similar Messages

  • 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.

  • 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

  • ORA-12154: TNS:Could not resolve service name. (WIS 10901).

    HI Gurus, we have the following scenario...
    Weu2019ve installed Busines Objects EDGE 3.1 SP3.
    The server of this installation is MS Windows Server 2003 Enterprise Edition SP2, Intel ® Xeon Enterprise TM CPU 2.80 GHz 6.5 RAM.
    In the Server we have SAP R/3 Installed over a DB Oracle 9i Enterprise Edition Release 9.2.8.0.
    We installed all BO bundle with successful and we can use the Designer Tool for create universe. In the creation of the universe, we created a connection to the database of the SAP R/3 System and the test runs well, we save and export the universe to CMS. Then, we used that universe in the WebI tool of the suite installed in the server, and it runs well (we call the universe, selected fields of the table, and after run the query, it gives us registers of the DB).
    After all this, we open the InfoView and used the WebI and execute the same universe and the same steps. And when we execute the query the following error occurs .
    A database error occured. The database error text is: ORA-12154: TNS:Could not resolve service name. (WIS 10901)
    The connection to DB is through Designer and we use ODBC Oracle to create the Universe with the Client type and we used super user system, validated previously OK.
    Any suggestion for this error?.
    Thanks.
    Betto.
    Edited by: Alberto Magaña Chávez on Jul 9, 2011 7:44 PM

    Make sure there are no syntax errors in the TNSNAMES.ORA file, look for unmatched parentheses. Also check the SQLNET.ORA file.
    Is the environment is clustered, if so then make sure you have the ODBC connection in all the servers.

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

    Hi All,
    I am connecting to the db using oracle thin driver in java. I am invoking a SOAP call and after getting the response, i am inserting the response(gen. a pdf file) into my DB. I am using a static connection. I have to insert 130 pdf's in DB. After processing 120 pdf's, the following error has occurred,
    ERROR DBUtil - ORA-12154: TNS:could not resolve service name
    java.lang.NullPointerException
         at com.elsevier.cds.ew.DBUtil.insertPDF(Compiled Code)
         at com.elsevier.cds.ew.GenerateSoapRequest.generateSOAPCall(Compiled Code)
         at com.elsevier.cds.ew.EOffprintLoad.processPDFFiles1(Compiled Code)
         at com.elsevier.cds.ew.EOffprintLoad.init1(Compiled Code)
         at com.elsevier.cds.ew.EOffprintLoad.<init>(EOffprintLoad.java:138)
         at com.elsevier.cds.ew.EOffprintLoad.main(EOffprintLoad.java:987)
    ERROR GenerateSoapRequest -
    ERROR DBUtil - ORA-12154: TNS:could not resolve service name.
    The checked the oracle listener status. It was UP.
    Can anyone help me in this issue.
    Thanks,
    Rag

    Hello,
    Make sure that the service which you have specified in jdbc for making connection with oracle, exists in TNSNAMES.ORA file. You will find this file at different locations in 8i and above. So, better search for it. And add you service name in it. Example services is given in this file itself. So, take help from them.

  • ORA-12154 TNS could not resolve service name error

    Hi
    I'm having trouble connecting to database throug sql*plus.I'm able to connect through TOAD but getting 'ORA-12154 TNS could not resolve service name error' when trying to login through sql*plus using same credentials .
    I tried running sqlplus through command prompt,but when i enter the user-name i'm getting ORA-12203:TNS:unable to connect to destination.
    Can someone help me with this error.
    Thanks.

    It would probably give you an idea where to start looking. You need to make sure that you have the correct .ora files needed for establishing connections. I don't know if your service desk just does the installation but no setup or if they also do the setup configuration. You can also try doing the setup on your own to check. You can use net easy config.

  • CONCSUB failed due to ORA-12154: TNS:could not resolve service name

    Hiall,
    While bringing up concurrent managers getting the below error.
    Cause: CONCSUB failed due to ORA-12154: TNS:could not resolve service name
    I just cloned the instance.
    urgent help is appreciated as I am missing the dead line to complete clone.
    Regards,
    Siva

    Pleas post OS and EBS version
    Please check the listener is up and running on DB tier.
    TROUBLESHOOTING GUIDE: ORA-12154 & TNS-12154 TNS:could not resolve service name [ID 114085.1
    Edited by: 3Amigos on Nov 21, 2010 9:16 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ToadFree-ORA-12154: TNS:Could not resolve service name

    Hello forum,when I install my oracle9.2.0.1.0 last week, I connected to it with taodFree succesfully, but now when try to connect by using taod the same user/password I get the following message.
    ORA-12154: TNS:Could not resolve service name
    But I can connect to the database with sqlplus.
    using the same user/password
    I am trying to connect to JULSOF.
    tnsnames.ora.
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    JULSOF =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS =
    (PROTOCOL = TCP)(HOST = jean)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = JULSOF)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = jean)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)

    Thanks Michel for your time.
    well please look here.
    C:\oracle\ora92\bin>tnsping julsof
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 30-AUG-2003 13:03:53
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Brugte parameterfiler:
    C:\oracle\ora92\network\admin\sqlnet.ora
    Brugte TNSNAMES adapter til at tolke aliaset
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = jean)(PORT =
    1521))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = JULSOF)))
    OK (30 msec)
    here is sqlnet.ora
    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)
    listner.ora
    # LISTENER.ORA Network Configuration File: C:\oracle\ora92\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = jean)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora92)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = JULSOF)
    (ORACLE_HOME = C:\oracle\ora92)
    (SID_NAME = JULSOF)
    here is init.ora.724200395724
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # Cache and I/O
    db_block_size=8192
    db_cache_size=25165824
    db_file_multiblock_read_count=16
    # Cursors and Library Cache
    open_cursors=300
    # Database Identification
    db_domain=""
    db_name=JULSOF
    # Diagnostics and Statistics
    background_dump_dest=C:\oracle\admin\JULSOF\bdump
    core_dump_dest=C:\oracle\admin\JULSOF\cdump
    timed_statistics=TRUE
    user_dump_dest=C:\oracle\admin\JULSOF\udump
    # File Configuration
    control_files=("C:\oracle\oradata\JULSOF\CONTROL01.CTL", "C:\oracle\oradata\JULSOF\CONTROL02.CTL", "C:\oracle\oradata\JULSOF\CONTROL03.CTL")
    # Instance Identification
    instance_name=JULSOF
    # Job Queues
    job_queue_processes=10
    # MTS
    dispatchers="(PROTOCOL=TCP) (SERVICE=JULSOFXDB)"
    #dispatchers="(PROTOCOL=TCP) (SERVICE=JULSOF)"
    # Miscellaneous
    aq_tm_processes=1
    compatible=9.2.0.0.0
    # Optimizer
    hash_join_enabled=TRUE
    query_rewrite_enabled=FALSE
    star_transformation_enabled=FALSE
    # Pools
    java_pool_size=33554432
    large_pool_size=8388608
    shared_pool_size=50331648
    # Processes and Sessions
    processes=150
    # Redo Log and Recovery
    fast_start_mttr_target=300
    # Security and Auditing
    remote_login_passwordfile=EXCLUSIVE
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=25165824
    sort_area_size=524288
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_retention=10800
    undo_tablespace=UNDOTBS1
    *********************************************************

  • Suddenly getting "ORA-12154: TNS: could not resolve service name"

    Hi all
    A fairly basic post from a newbie here!
    Basically, I connect to several Oracle 9i instances from my PC using Toad and SQLPlus. Yesterday, this was working fine, but today, I am getting "ORA-12154: TNS: could not resolve service name" every time I try to hit any oracle instance from either Toad or SQLPlus. I have checked my TNSNAMES.ora file and it looks fine.
    Are there any system variables I should look at? My PATH was changed yesterday, but I have checked and my Oracle 9i bin path is still correctly in my PATH.
    I'm a bit baffled so any help/pointers would be most welcome!
    Many thanks
    Jon

    Since you have changed your PATH, did you change any other Env Variable?
    How many ORACLE_HOME have you got. i.e have you installed any new Oracle Software on the same machine?
    Ensure that that Environment Variables ORACLE_HOME and TNS_ADMIN is pointing to the correct directory where your TNSNAMES.ORA is located.

  • 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-12535 TNS:Operation time Out and ORA-12154:TNS Could not resolve servic

    Greetings!!!
    I have installed my Oracle Database 10g & Developer Suite 10g in Windows XP Pro Machine. Oracle Application Server 10g is also installed in Windows 2003 Server machine.Both machine have different domain.When using Form Developer Suite OC4J to run my form program, i can connect to the database properly run the form perfectly.
    Problem encountered.
    When I tried to run the form using Application Server 10g(installed in Windows 2003 Server), I got an error ORA-12154:TNS Could not resolve service name when connecting to the database and I got an error ORA-12535 TNS:Operation time Out when using TNSPing. I checked both the configuration of TNSNAMES.ORA(database & Application SErver) using the same port & service name but still got the same error.
    Hope somebody can help me out there...
    Many thanks in advance.
    Regards,
    BTF

    I have seen this before with my setup, I found that I had to go into the net configuration assistant, and change my host name to the fully qualified name, example: my compuer name is computer1, I had to enter in computer1.OIT.Docfinity.com for it to take. That has always gotten me past that TNS error, just my 2 cents, hope it helps.
    keep on keeping on.

  • ORA -ERR :Tns could not resolve service name

    Hi,
    I am tring to get into sql plus. As the oracle is pre installed and as donot know the system password, I am tring to login as Scott/tiger and host string as 'ORCL'.
    I am getting the following error.
    ORA-12154 :
    Tns could not resolve service name
    Is there any way to find the Host string name through any of the installation files.
    Please suggest.
    Badrinath

    Hi,
    Open the tns file ( available at oracle_home/network/admin/tnsnames.ora). I do not know what your oracle_home name is. Usually it is oracle/ora81/ under c: or D: or where ever you installed Oracle. Go thru the file. You will find the service name. Use that while logging. If you want to login to ORCL, it has to be there in tns files name otherwise Oracle cvan not resolve the name.
    Good luck
    Krishna Priya
    null

  • ODBC - ORA-12154: TNS:could not resolfe service name

    I am receiving the following error when doing a Test Connection on an System DSN (Oracle ODBC Driver Configuration).
    Unable to connect
    SQState=08004
    [Oracle][ODBC][Ora]ORA-12154: TNS:could not resolfe service name
    I am using the Oracle 9.02 ODBC driver. Database server is EE 10.1.0.3.
    An OK status is resturned by TNSPING
    I am able to login to the database using SQLPLUS.
    The Windows user account that has this problem does not have local admin rights. If I use a Windows user account that has local admin rights, the Test Connection works.
    I was ABLE to successfully create other System DSN using the user account that does not have local admin.
    When I first tried to create a System DSN the following error occured:
    ODBC--call failed.
    Specified driver could not be loaded due to system error 5 (Oracle in Oracle920).(#160)
    I did the following to resolve:
    Login as Administrator
    Open MY COMPUTER
    Navigate to the parent of your ORACLE install directory
    Right Click on the ORACLE directory and click PROPERTIES
    Click the SECURITY tab
    Click the ADVANCED button
    Check the “Replace permission entries on all child objects with entries shown here that apply to child objects” box
    Click OK
    This corrected the system error 5 error, but now have the ORA-12154: TNS:could not resolfe service name
    error.
    Any advise on how to correct the problem would be greatly appreciated.
    Thanks.

    For Me no need to change TNS_ADMIN
    but what was indicated 'changing security advanced parameters'. was ok for me :
    ora8i

  • ODBC 12154: TNS: could not resolve service name BUT TNSPING works fine

    We are trying to rebuild an existing server and finally got the tnsnames.ora updated and now the tnsping works fine, but still the ODBC error occurs. Even when I try a data import into Excel to test the ODBC connection. I can ping the server name and the TNSPING works for the alias. Any thoughts?
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    TESTC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SERVERDB)(PORT = 1520))
    (CONNECT_DATA =
    (SERVICE_NAME = TESTC)
    Test the ping::
    C:\Documents and Settings\JMLee>tnsping testc
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.7.0 - Production on 19-JUN-20
    07 10:38:18
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    C:\oracle\ora92\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = SERVERDB)(PORT = 1520))) (CONNECT_DATA = (SERVICE_NAME = TESTC)))
    OK (10 msec)

    Do you have multiple Oracle versions installed? Is ORACLE_HOME set? Does PATH include ORACLE_HOME\bin? Do you have any weird characters in your tnsnames.ora? Did you get this error testing the ODBC connection in the driver manager? Is Oracle really listening on port 1520?

  • 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

Maybe you are looking for

  • Optimzing, Defragmenting,etc. on the Macmini

    Hi all, I'd like your thoughts on optimizing and defragmenting the Mac mini to perform at tip top shape and prevent any viruses. I have cocktail software but havent really learned the ins and outs. Thanks for your help, web dude

  • Library doesnt sync with Ipod Library

    Whenever I make changes in the itunes library (changing genre, artists, etc), the ipod's library doesn't change...any advice?

  • I have the error code 90b in my hp envy 14 beats edition (HP ENVY 14t-2000 CTO Notebook PC)

    The problem has been happening for about a week and a half. Every time i open the computer from either sleep or hibernate it will turns on like it is working but then the  screen will imediatly go black and shortly after shut off then i have to turn

  • IMessage will not sign in.

    I sign in using my Apple ID to activate it, yet it comes up saying there is a "network error". This also happens when I try to activate/log in to FaceTime. What can I do?

  • Limited Excel inplace

    Hi guys, I have an issue related to the Excel inplace fuctionality in SAP, I have an ABAP-developped report which, when run, it returns 20.000 lines. The option Excel in place, in that case, does not work properly, giving me the error "Data set canno