Service name name vs name . hostname

I am trying to connect to my sample orcl database using
sqlplus hr/hr@TNS:orcl
After many tries and getting ORA-12594 error I finally got this to work. The trick was to update tnsnames.ora file and change
SERVICE_NAME = orcl
to
SERVICE_NAME = orcl.<hostname>
Does anyone know why this is like that? How can I get this to work with SERVICE_NAME = orcl

This is what lsnrctl serv returns... I see the service orcl.<host> but I do not know where its coming from. Its not in listener.ora file.
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
Service "orcl.static-31-241-17-257.tampfl.fios.verizon.net" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:20 refused:0 state:ready
LOCAL SERVER
Service "orclXDB.static-31-241-17-257.tampfl.fios.verizon.net" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: static-31-241-17-257.tampfl.fios.verizon.net, pid: 21487>
(ADDRESS=(PROTOCOL=tcp)(HOST=static-31-241-17-257.tampfl.fios.verizon.net)(PORT=62833))
Service "orcl_XPT.static-31-241-17-257.tampfl.fios.verizon.net" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:20 refused:0 state:ready
LOCAL SERVER

Similar Messages

  • Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING

    hello colleagues,
    In the phase Connect Diagnostics dont show the Agent available in SLD, but when go to SLD i have the agents,
    Error,
    Connect Diagnostics Agent
    The table does not contain any data
    Agent availables in all SLD
    SOAP:1.007 SRT: Unupported xstream found: ("HTTP Code 401 : Unauthorized")
    Web service invocation problem on host hostname and port 8000 protocol : http logical port name : LP_WS_SMDAGENT_MONITORING
    Thanks

    OK, then pls follow below steps;
    - Go to step 'Create Users' in solman_setup System Preparation scenario and make sure the user SM_INTERN_WS has a green status. Use the 'Test Login' button to make sure the user is not locked and has correct credentials maintained in solman_setup
    - Immediately after checking the user status, navigate to Configure Connectivity->Enable Web Services and execute again the 'Create Logical Ports' automatic activity, in order to propagate the correct credentials to the Logical Port definitions.
    - If the above operation is not successful, repeat the two steps above, providing a different user Id in 'Create Users' step, eg SM_INTERN_W1. This will prevent situations where the user gets locked by Logical Ports using an obsolete password.
    Let me know the results.
    Regards,
    Vivek

  • Gateway hostname and gateway service name for XI

    Hi,
    Where can i find the Gateway hostname and gateway service name for XI Integration server. I need this info to input for creating RFC for SAPSLDAPI.
    Thanks in advance. Sri

    Sri,
    You can find this info from t-code SMGW
    Choose menu Goto->Parameters->Display and search for entries
    gateway hostname and gateway service (usually sapgw00)
    Reward if helpfull
    Vijay Kothapalli

  • Service name or instance name is not specified

    Hi,
    I am adding third node in oracle 11gr2 on rhel.i have successfully configureg grid and oracle but while adding an instance using dbca i am getting an error "service name or instance name is not specified".I have already expot ORACLE_SID=dev but still getting an error,can anybody suggest me on the same...

    [grid@rac2 bin]$ env
    HOSTNAME=rac2.raczone.com
    SHELL=/bin/bash
    TERM=xterm
    HISTSIZE=1000
    KDE_NO_IPV6=1
    QTDIR=/usr/lib/qt-3.3
    OLDPWD=/raczone/grid_home/network/admin
    QTINC=/usr/lib/qt-3.3/include
    USER=grid
    LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
    KDEDIR=/usr
    MAIL=/var/spool/mail/grid
    PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/grid/bin
    INPUTRC=/etc/inputrc
    PWD=/raczone/grid_home/bin
    LANG=en_US.UTF-8
    KDE_IS_PRELINKED=1
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SHLVL=1
    HOME=/home/grid
    LOGNAME=grid
    QTLIB=/usr/lib/qt-3.3/lib
    CVS_RSH=ssh
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    DISPLAY=:0.0
    G_BROKEN_FILENAMES=1
    _=/bin/env
    [grid@rac2 bin]$

  • Listener_scan1  could not find service name

    Hi All,
    I have installed 11203 on 2 node RAC cluster. I have created 1 scan listener. when i give lsnrctl status LISTENER_SCAN1, I am getting below error
    TNS-01101: Could not find service name LISTENER_SCAN1
    Please give your suggestions and help on this issue.
    Thanks,
    NR

    HI,
    Try to configure the tnsnames.ora in this format and let me know
    if you are using load balancing , try
    TBESTDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = node1_vip)(PORT = 1531))
    (ADDRESS = (PROTOCOL = TCP)(HOST = node2_vip)(PORT = 1531))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TBESTDB)
    And you can add below if you would like to  connect to specific instance
    RAC1 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = rac.oracle.com)
          (INSTANCE_NAME = rac1)
    RAC2=
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = rac.oracle.com)
          (INSTANCE_NAME = rac2)
    Note: Replace the SID, Servicename, hostname, port etc according to your environment, And also make sure that the tnsnames.ora should be in a proper format(eg : even the opening and closing bracket should be in correct order. If u add additional space also it will throw error..)
    Regards,
    Pradeep. V

  • Get port number,host name,service name from database

    Is there any way to know the host name,port number, sid and the service name of a particular instance from the database.

    > Is there any way to know the host name,port number, sid and the service name
    of a particular instance from the database.
    Why?
    The host name in the HOST_NAME column of V$INSTANCE for example, may not be the hostname/IP address that the local Listener listens for connections on. Or the Listener can listen on that host name/IP and several other local IP addresses.
    The port number used for listening for connections by clients, are determined by the Listener's configuration.
    Thus if you can explain the requirement for this info, maybe the forum can provide better and more specific answers.

  • The service name is invalid When starting the Database Control

    Dear Oracle Expert,
    I have installed Oracle database 11g on Windows Professional x64 Edition Version 2003 Service Pack 2..
    When I try to start the Database control after renaming the IP_address to the local machine name which is robert. It prompts back with an error.
    C:\>emctl status dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\>set ORACLE_SID=ocp11g
    C:\>emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://192.168.1.67:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is not running.
    C:\>emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    https://192.168.1.67:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ...The service name is i
    nvalid.
    More help is available by typing NET HELPMSG 2185.
    C:\>hostname
    robert
    C:\>emctl status dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>set ORACLE_SID=ocp11g
    C:\>emctl status dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>emctl start dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>SET ORACLE_HOME= C:\app\Administrator\product\11.1.0\db_1\oc4j\j2ee\OC4J_DBC
    onsole_robert_ocp11g
    C:\>set ORACLE_SID=ocp11g
    C:\>emctl status dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>emctl start dbconsole
    OC4J Configuration issue. C:\app\Administrator\product\11.1.0\db_1/oc4j/j2ee/OC4
    J_DBConsole_192.168.1.67_ocp11g not found.
    C:\>
    Thanks in advance.
    Rlee

    Hello Oracle experts,
    I have to managed to Configure the Database Control by configuring a Microsoft Network adapter on my laptop but
    right now I can't access it within the URL.
    Tests of the running Database control include:
    C:\Documents and Settings\Administrator>emctl status dbconsole
    Environment variable ORACLE_SID not defined. Please define it.
    C:\Documents and Settings\Administrator>SET ORACLE_SID=ocp11
    C:\Documents and Settings\Administrator>emctl status dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://robert:1158/em/console/aboutApplication
    Oracle Enterprise Manager 11g is running.
    Logs are generated in directory C:\app\Administrator\product\11.1.0\db_2/robert_
    ocp11/sysman/log
    C:\Documents and Settings\Administrator>
    When I try to access the database control, I am un able to.
    The page cannot be found
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    Open the robert:1158 home page, and then look for links to the information you want.
    Click the Back button to try another link.
    Click Search to look for information on the Internet.
    HTTP 404 - File not found
    Internet Explorer
    Is this something related to Internet Explorer.
    Kindly rescue me out.
    Regards,
    RLee

  • Standby database service name

    hi,
    i made a physical standby database architecture with one db as a production db on PC1 and on the other site i created a physical standby db on PC2 ,,
    now i did a SWITCHOVER and after that the db on PC1 become physical standby and db on PC2 has become primary db,,,,
    my application running before SWITCHOVER was using a service name that connect it to PC1,,now that application is not running giving me error that initialization or shutdown in progress,,,
    what shud i do now?? will i need to change the service name of my application on each client,,,other option is to use an ORACLE NAMES SERVER,,but if i wanna wont use both of the ways then what can i do??
    Regards

    This is recommended in metalink notes.
    As you say, oracle names as one option. You just go and change the ipaddress/hostname,whatever you use in the tnsnames.
    Your end-users are still trying to access the old primary, which is secondary now. And this db is in mount stage, that is the reason they are getting this kind of error.
    If you have very less users and can be reachable to change the tnsnames then its okay.
    SJH
    OCP DBA

  • To detect the service name of the DB

    Hi,
    Is there a way by which we can detect the corr. service name of the DB, given the IP of that?
    Thks & Rgds,
    HuaMin

    Just my 0.02€ :
    syntax : tnsping <address> <count>
    ->
    will check for an <address> paragraph in tnsnames.ora, and "ping" that name using hostname/port of the paragraph from tnsnames.ora. If it finds no <address> match in tnsnames.ora, it will fail.
    You won't be able to use tnsping to figure out the service_name.
    Maybe in stead try LSNRCTL SERVICE , and/or figure out from init.ora config file.

  • TNS : could not resove the service name

    Here is the line that I added to my PC tnsnames .ora file.
    srprod1.PLUS.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvprod1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = GAV.plusfuds.com)
    Here is my What I get after I started the listerner.
    The global_name is set to TRUE.
    db_domain is also set to plusfunds.com
    LSNRCTL for Solaris: Version 10.1.0.2.0 - Production on 30-AUG-2005 17:28:37
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Solaris: Version 10.1.0.2.0 - Production
    Start Date 30-AUG-2005 16:18:10
    Uptime 0 days 1 hr. 10 min. 26 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/GAV/101_64/network/admin/listener.ora
    Listener Log File /oracle/GAV/101_64/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=srvprod1)(PORT=1521)))
    Services Summary...
    Service "GAV.plusfunds.com" has 1 instance(s).
    Instance "GAV", status READY, has 1 handler(s) for this service...
    Service "plusfunds.com" has 1 instance(s).
    Instance "GAV", status UNKNOWN, has 3 handler(s) for this service...
    The command completed successfully.
    Error message :
    TNS 12154 could not resolve service name.
    What I am missing ?
    From
    P
    SID = GAV
    hostname = srvprod1
    From,
    P

    Funny thing about this tool is I can connect right now with
    PL/SQL developer client and sqlplus client from my PC
    successfully but I can not connect through the dbastudio tool
    But,
    When I tried to connect to dbastudio it is connecting ... I can see in
    on DB server that it has been connected with 1521
    but nothing is happening on dbastudio tool screen.
    Here is the string from tnsnames.ora from my PC file.
    GAV_SRVPROD1.PLUS.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = srvprod1)(PORT = 1521))
    (CONNECT_DATA = (SID = GAV)(SERVER = DEDICATED))
    From
    P

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

  • Netca Local Net Service Name Configuration

    Hello,
    I'm searching for a while now on how to configure a local net service name configuration silently with netca.rsp.
    I can't found any Template according to that kind of configuration.
    So I need to add a "Local Net Service Name configuration" into the Oracle Net Configuration Assistant.
    I just have to configure the service name, TCP, hostname, username and password but I don't know how to setup the response file.
    Here is the generic Template of netca.rsp
    ## Copyright(c) 1998, 2011 Oracle Corporation. All rights reserved. ##
    ## Specify values for the variables listed below to customize your  ##
    ## installation.                                                    ##
    ## Each variable is associated with a comment. The comment          ##
    ## identifies the variable type.                                    ##
    ## Please specify the values in the following format:               ##
    ##         Type         Example                                     ##
    ##         String       "Sample Value"                              ##
    ##         Boolean      True or False                               ##
    ##         Number       1000                                        ##
    ##         StringList   {"String value 1","String Value 2"}         ##
    ## This sample response file causes the Oracle Net Configuration    ##
    ## Assistant (NetCA) to complete an Oracle Net configuration during ##
    ## a custom install of the Oracle11g server which is similar to     ##
    ## what would be created by the NetCA during typical Oracle11g      ##
    ## install. It also documents all of the NetCA response file        ##
    ## variables so you can create your own response file to configure  ##
    ## Oracle Net during an install the way you wish.                   ##
    [GENERAL]
    RESPONSEFILE_VERSION="11.2"
    CREATE_TYPE="CUSTOM"
    # Name       : SHOW_GUI
    # Datatype   : Boolean
    # Description: This variable controls appearance/suppression of the NetCA GUI,
    # Pre-req    : N/A
    # Default    : TRUE
    # Note:
    # This must be set to false in order to run NetCA in silent mode.
    # This is a substitute of "/silent" flag in the NetCA command line.
    # The command line flag has precedence over the one in this response file.
    # This feature is present since 10.1.0.3.
    SHOW_GUI=false
    # Name       : LOG_FILE
    # Datatype   : String
    # Description: If present, NetCA will log output to this file in addition to the
    #        standard out.
    # Pre-req    : N/A
    # Default    : NONE
    # Note:
    #  This is a substitute of "/log" in the NetCA command line.
    # The command line argument has precedence over the one in this response file.
    # This feature is present since 10.1.0.3.
    LOG_FILE=""C:/netca.log""
    [oracle.net.ca]
    #INSTALLED_COMPONENTS;StringList;list of installed components
    # The possible values for installed components are:
    # "net8","server","client","aso", "cman", "javavm"
    #INSTALLED_COMPONENTS={"server","net8","javavm"}
    #INSTALL_TYPE;String;type of install
    # The possible values for install type are:
    # "typical","minimal" or "custom"
    INSTALL_TYPE=""typical""
    #LISTENER_NUMBER;Number;Number of Listeners
    # A typical install sets one listener
    LISTENER_NUMBER=1
    #LISTENER_NAMES;StringList;list of listener names
    # The values for listener are:
    # "LISTENER","LISTENER1","LISTENER2","LISTENER3", ...
    # A typical install sets only "LISTENER"
    LISTENER_NAMES={"LISTENER"}
    #LISTENER_PROTOCOLS;StringList;list of listener addresses (protocols and parameters separated by semicolons)
    # The possible values for listener protocols are:
    # "TCP;1521","TCPS;2484","NMP;ORAPIPE","IPC;IPCKEY","VI;1521"
    # A typical install sets only "TCP;1521"
    LISTENER_PROTOCOLS={"TCP;1521"}
    #LISTENER_START;String;name of the listener to start, in double quotes
    LISTENER_START=""ERPSERVER""
    #NAMING_METHODS;StringList;list of naming methods
    # The possible values for naming methods are:
    # LDAP, TNSNAMES, ONAMES, HOSTNAME, NOVELL, NIS, DCE
    # A typical install sets only: "TNSNAMES","ONAMES","HOSTNAMES"
    # or "LDAP","TNSNAMES","ONAMES","HOSTNAMES" for LDAP
    NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
    #NOVELL_NAMECONTEXT;String;Novell Directory Service name context, in double quotes
    # A typical install does not use this variable.
    #NOVELL_NAMECONTEXT = ""NAMCONTEXT""
    #SUN_METAMAP;String; SUN meta map, in double quotes
    # A typical install does not use this variable.
    #SUN_METAMAP = ""MAP""
    #DCE_CELLNAME;String;DCE cell name, in double quotes
    # A typical install does not use this variable.
    #DCE_CELLNAME = ""CELL""
    #NSN_NUMBER;Number;Number of NetService Names
    # A typical install sets one net service name
    NSN_NUMBER=1
    #NSN_NAMES;StringList;list of Net Service names
    # A typical install sets net service name to "EXTPROC_CONNECTION_DATA"
    NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
    #NSN_SERVICE;StringList;Oracle11g database's service name
    # A typical install sets Oracle11g database's service name to "PLSExtProc"
    NSN_SERVICE={"PLSExtProc"}
    #NSN_PROTOCOLS;StringList;list of coma separated strings of Net Service Name protocol parameters
    # The possible values for net service name protocol parameters are:
    # "TCP;HOSTNAME;1521","TCPS;HOSTNAME;2484","NMP;COMPUTERNAME;ORAPIPE","VI;HOSTNAME;1521","IPC;IPCKEY" 
    # A typical install sets parameters to "IPC;EXTPROC"
    NSN_PROTOCOLS={"TCP;HOSTNAME;1521"}
    Does anyone have an idea or some information on how to configure the netca.rsp?
    Thanks in advance

    Just one more question how could i uninstall ORACLE client, it is not listed in the Add/remove programs.run Oracle Universal Installer (again).
    OUI contains uninstall capability

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

  • 12154: "Could not resolve service name"

    [oracle@proton dbs]$ sqlplus system/manager@bcqa
    SQL*Plus: Release 8.1.7.0.0 - Production on Fri May 4 16:00:00 2001
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    ERROR:
    ORA-12154: TNS:could not resolve service name
    I have read many documentations and I have no clue on what I'm doing wrong.. Here are the contents of a few .ora files:
    listener.ora
    LISTENER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = proton.cityxpress.com)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = TTC)
    (SESSION = NS)
    tnsnames.ora
    PROTON.CITYXPRESS.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.11.19)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = bcqa.cityxpress.com)
    sqlnet.ora
    NAMES.PREFERRED_SERVERS =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dbhost)(PORT = 1575))
    NAMES.DEFAULT_DOMAIN = cityxpress.com
    SQLNET.EXPIRE_TIME = 0
    NAMES.DIRECTORY_PATH=(HOSTNAME)
    lsnrctl started with no problem and here's the output from lsnrctl status:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    [oracle@proton admin]$ lsnrctl status
    LSNRCTL for Linux: Version 8.1.7.0.0 - Production on 04-MAY-2001 16:10:13
    (c) Copyright 1998 Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=proton.cityxpress.com)(PORT=1521))(PROTOCOL_STACK=(PRESENTATION=TTC)(SESSION=NS)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 8.1.7.0.0 - Production
    Start Date 04-MAY-2001 16:10:06
    Uptime 0 days 0 hr. 0 min. 7 sec
    Trace Level off
    Security OFF
    SNMP OFF
    Listener Parameter File /usr/oracle/network/admin/listener.ora
    Listener Log File /usr/oracle/network/log/listener.log
    The listener supports no services
    The command completed successfully
    [oracle@proton admin]$
    <HR></BLOCKQUOTE>
    Here's the output from using tnsping:
    [oracle@proton admin]$ tnsping proton.cityxpress.com
    TNS Ping Utility for Linux: Version 8.1.7.0.0 - Production on 04-MAY-2001 16:11:22
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=proton.cityxpress.com)(PORT=1521))
    OK (0 msec)
    That's good, but look at this one:
    [oracle@proton admin]$ tnsping proton
    TNS Ping Utility for Linux: Version 8.1.7.0.0 - Production on 04-MAY-2001 16:12:11
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    TNS-03506: Failed to create address binding
    Any help would be greatly appreciated, thanks.

    you have a listener problem at least.
    The status request to lsnrctl reports "no service". If the listener does not support any service, no connection.
    configure a service using "netasst".
    Regards
    null

  • ITS. URL iView. No service name specified

    Hello,
    We've created an URL iView. When previsualizating it works ok, but when executing time we get the following error:
    "No service name specified.  Your request did not contain a service name. Please provide a service name as part of the URL. Session already terminated." In some pc it works ok. It could be a problem of java or internet explorer version?
    Thank you in advanced.

    Hello BNates,
    If you are using the internal ITS the URL should be something like:
    http://hostname:port/sap/bc/gui/sap/its/webgui
    In the above example the service is "webgui".  You can then go to transaction SICF and expand tree based on the URL:
    default_host > sap > bc > gui > sap > its
    and find the webgui node.  If it exists then it is a valid service, you can also right click on it to test it to make sure that it is working.
    Edgar

  • TNS Service Name

    While I am configuring DNS for Oracle 10g at that time i come to the TNS Service Name
    but as i dnt know what TNS Service means ?? I wanted to know what does it stand for ?
    And also I am seeing three options to select named as below
    EXTPROC_CONNECTION_DATA
    ORACLR_CONNECTION_DATA
    XE
    I also wanted to know the purpose of each above attributes. So please Guide me..!! and know me what it means ?? Thanks in advance

    You can refer this http://www.ispirer.com/wiki/sqlways/users-guide/setting-up-database-connection/oracle/tns-service-name
    TNS service name is used to connect to a database remotely.
    PROD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = <HOSTNAME>)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = prim)
    In the above example, PROD is the NET ORACLE SERVICE NAME(alias name). This is used while connecting to the database from the remote server.
    Host is the hostname where the database resides.
    SERVICE_NAME is the db_unique_name of the database that you are connecting.
    So when connecting to the database remotely, you use
    sqlplus username/<password>@<connection string>
    sqlplus username/<password>@<prod>

Maybe you are looking for

  • Pressing the space-bar on a JTree results in TreeSelectionEvent.

    Hello, Have a JTree and a TreeSelectionListener that listens. If the focus is on the tree and most of keys are pressed nothing happens. However, if the focus is on the tree and the space-bar is pressed then the TreeSelectionListener.valueChanged(Tree

  • MATERIAL TAG

    Sir, i want to classify some materials as slow moving stock we have a separate location know as "WK01" which defines it as slowmoving my requirement is that in MMBE a separate indicator or tick should come for the storage location ply help regards am

  • Java.lang.IllegalStateException when transferring XmlBean objects

    Hi, I've been testing Coherence 3.2 build 351 and run into a problem. When trying to send/retrieve objects (that extend XmlBean) to/from Jboss and Tomcat we've been receiving the following exception: java.lang.IllegalStateException: unread block data

  • Opinions... desktop image with or without ZCM agent?

    I'm working on deploying ZCM 10 to my company and was wondering what your opinions are on deployment method for newly ghosted computers (I'm going to use a deploy task for all existing computers). What are the pros/cons of installing the Zen Agent wi

  • Unable to "print" using Adobe PDF ... spooler issue?

    Hello, I get the following message when trying to create a PDF file from any of my programs. I've got Vista OS. "Invalid Adobe PDF printer properties. Do not change spooler settings. Please select "Print directly to the printer" option (from Adobe PD