ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect

Hi Friends,
I have created 10g database for catalog.
I kept the tns entry in some other server. Tnsping is working fine.. I can see the result.
mexn01:$ tnsping rman09na
TNS Ping Utility for HPUX: Version 9.2.0.5.0 - Production on 28-APR-2008 19:29:07
Copyright (c) 1997 Oracle Corporation. All rights reserved.
Used parameter files:
/apps/app/oracle/local/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))
OK (0 msec)
When I am trying to connect to the database I am getting following error..
mexn01:$ sqlplus ismdba/xxxxx@rman09na
SQL*Plus: Release 9.2.0.5.0 - Production on Mon Apr 28 19:29:22 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
ERROR:
ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect
descriptor
Please help me..
Thanks in advance.

Try on the server where it doesn't work:
sqlplus ismdba/xxxxx@"(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))"
or
tnsping "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = torora60)(PORT = 1522))) (CONNECT_DATA = (SERVICE_NAME = rman09na)))"
(note the double quotes)
If that works then your tnsnames.ora is incorrect on that server.

Similar Messages

  • ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect des

    Hello all,
    I installed a 10g client on a windows PC, which already had 8i installed.
    SQLPlus login works for databases in both environments, but now a 8i database cannot be connected from Visual Studio.
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
    I immediately checked both tnsnames.ora, but I don't see anything wrong.
    sqlnet.ora has:
    SQLNET.AUTHENTIFICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    Has anybody encountered this issue?
    I'm thinking of de-installing 10g now...
    Thanks in advance.

    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a service name for a service (usually a database service) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.
    Action:
    - Wait a moment and try to connect a second time.
    - Check which services are currently known by the listener by executing: lsnrctl services <listener name>
    - Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.
    - If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.
    - Check for an event in the listener.log file.
    Pay special attention to these possible reasons:
    - Check which services .......
    - Check that the SERVICE_NAME parameter ...........
    There's a mismatch between service_name is tnsnames.ora and service_name known by the actual listener.
    Werner

  • ORA-12514 TNS:Listener could not resolve SERVICE_NAME given in connect desc

    Hi
    It's my first post and the first time I use an Oracle product. I begin with Oracle 10g. When I want to connect to an oracle database through vs2003 or vs2005, three things should be provided. 1.Server name(I don't know it?!) 2.Username(I don't know it?) 3.Password(I don't know it?)
    I set password for SYSTEM, SYS and their passwords are the same. I don't know whether SYSTEM is my user name or not?
    I enter localhost for server name and the above error occures.
    Thank you
    Seyyed Reza Qomi Behbehani

    do not connect oracle with system,sys or whatever username with sysdba or sysoper role.create new normal user to connect oracle machine.server name is oracle service name(SID).don't connect with localhost server except you set your service name to localhost..servername may be orcl or ora10g

  • ORA-12514: TNS:listener could not resolve SERVICE_NAME given

    Hi
    I have 3 server having oracle 9i database same version
    -one at head office
    -one at ours sister company and
    -one at port
    when i create string from Gui (SQL*NET configuration head office database)
    to connect sister co's database it works well and then i create db
    link by using this string its working fi9.
    but when i create string from head office to port database
    its giving me error when i test string during wizard
    Connecting..
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given
    in connect descriptor
    Although from port databse i can connect to head office database succesfully.
    I am giving correct machine name and sid during creating string from database SQL*NET configuration wizard.
    Why its giving ORA-12514 from Head office to connect port database
    but not from Port to Head office database nor from Head office to
    sister co's Data base?
    Khurram Siddiqui
    [email protected]

    Hi Pal Here is wot u required
    D:\oracle\ora92>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-JAN-2006 16:27:
    25
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC0)))
    Services Summary...
    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 "icsyard.com" has 2 instance(s).
    Instance "icsyard", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Instance "icsyard", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:17 refused:0 state:ready
    LOCAL SERVER
    Service "icsyardXDB.com" has 1 instance(s).
    Instance "icsyard", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1002 state:ready
    DISPATCHER <machine: ICSYARD, pid: 360>
    (ADDRESS=(PROTOCOL=tcp)(HOST=icsyard.icsdomain.com)(PORT=1141))
    The command completed successfully
    D:\oracle\ora92>
    Tnsname.Ora For Head Office
    # TNSNAMES.ORA Network Configuration File: D:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    HATAF.GACPAK.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hataf)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = hataf)
    OEMREP.GACPAK.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hataf)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = OEMREP.gacpak.com)
    EXTPROC_CONNECTION_DATA.GACPAK.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    INST1_HTTP.GACPAK.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hataf)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    KHURRAM.GACPAK.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = YAWAR)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = YAWAR.WORLD)
    Thanks for urs quick response
    Khurram Siddiqui
    [email protected]

  • ORA-12514: TNS:listener could not resolve SERVICE_NAME given in conne

    I am running Oracle 8.1.7.1.4 on Windows 2000. After I created a database TEST using a script created by my previous colleague, I got the following error:
    sqlplus SYSTEM/PASSWORD@TEST
    ERROR:
    ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor
    Enter user-name:
    But if I enter system as username and the password, I could connect to sqlplus without any problem.
    I checked the OracleServiceTest is running as a Service, and here is what in my tnsnames.ora.
    TEST.UNHQ.UN.ORG =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = TEST)
    Here is what in my listener.ora file.
    (SID_DESC =
    (GLOBAL_DBNAME = TEST)
    (ORACLE_HOME = d:\oracle\ora817)
    (SID_NAME = TEST)
    The following is what in my sqlnet.ora file.
    NAMES.DEFAULT_DOMAIN = unhq.un.org
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    Here are a few important lines in my init.ora file.
    db_name=TEST
    instance_name = TEST
    service_names = TEST
    I tried to use sqlplus system/[email protected], but got the same error.
    Any help would be greatly appreciated.
    Thanks,
    Jane

    Hi Werner:
    Thank you very much for your suggestions. Yeah, I have
    a db_domain = UNHQ.UN.ORG in my init.ora file. I tried
    to append it manually into the service_names in my
    init.ora file and made corresponding changes to
    tnsnames.ora file. Now I could access to TEST database
    without any problem.
    I have another question. How can I prevent the
    db_domain from appending to SERVICE_NAMES by default?
    By set it to db_domain="" or just don't have it in my
    init.ora file? I don't want to have the domain name
    appearing in my SERVICE_NAMES.
    Thanks,
    Jane

  • ORA-12514: TNS:listener could not resolve SERVICE_NAME

    ORA-12514: TNS:listener could not resolve SERVICE_NAME
    how to resolve this problem ?

    ORA-12514: TNS:listener could not resolve SERVICE_NAME
    $ oerr ora 12514
    12514, 00000, "TNS:listener does not currently know of service requested in connect descriptor"
    // *Cause:  The listener received a request to establish a connection to a
    // database or other service. The connect descriptor received by the listener
    // specified a service name for a service (usually a database service)
    // that either has not yet dynamically registered with the listener or has
    // not been statically configured for the listener.  This may be a temporary
    // condition such as after the listener has started, but before the database
    // instance has registered with the listener.
    // *Action:
    //  - Wait a moment and try to connect a second time.
    //  - Check which services are currently known by the listener by executing:
    //    lsnrctl services <listener name>
    //  - Check that the SERVICE_NAME parameter in the connect descriptor of the
    //    net service name used specifies a service known by the listener.
    //  - If an easy connect naming connect identifier was used, check that
    //    the service name specified is a service known by the listener.
    //  - Check for an event in the listener.log file.
    $

  • ORA-12505: TNS:listener could not resolve SID given in connect descriptor

    Dear experts,
    I restarted server since when i am getting this error while connecting with server.
    ORA-12505: TNS:listener could not resolve SID given in connect descriptor
    what is that?
    and how can i resolve it?

    You are not the first person to ask this question.
    http://forums.oracle.com/forums/search.jspa?objID=f61&q=ORA-12505
    Highly likely you will find your answer in one of the posts.

  • ORA 12541:TNS: listener could not solves SERVICE_NAME given in connect

    when i tried to start the service
    OracleOraDb10g_home1TNSListenercompiere using services.msc
    it has given the following message
    Could not start the OracleOraDb10g_home1TNSListenercompiere on local computer .the service could not return an error. This could be an internal window error or service error.
    When i tried to connect from client i got the following error.
    TNS: listener could not solves SERVICE_NAME given in connect
    pls help
    harinder

    Thanks!
    There was os problem of trusted domain.
    I have changed sqlnet.ora (NTS to NONE)
    Thanks and Regards
    Harinder

  • Listener could not resolve SID given in connect descriptor

    Hello,
    I have three servers : two with oracle 9.2.0.1 databases and one with application. I have a load balancer, with a virtual IP, that manage the connections to the databases. The two databases are the same. My application connects to the database via the virtual IP of the load balancer. When my application connects, I have the following error in the listener.log :
    13-JUL-2006 11:53:48 * (CONNECT_DATA=(SID=SSOSESS)(CID=(PROGRAM=NSora20.so)(HOST=ssops1)(USER=smuser))) * (ADDRESS=(PROTOCOL=tcp)(HOST=<my_ip>)(PORT=8409)) * establish * SSOSESS * 12505
    TNS-12505: TNS:listener could not resolve SID given in connect descriptor
    But, when I do an sqlplus request from the server of the application to the virtual IP of the databases, it works fine :
    13-JUL-2006 11:54:57 * (CONNECT_DATA=(SERVICE_NAME=SSOSESS)(CID=(PROGRAM=)(HOST=ssops1)(USER=smuser))) * (ADDRESS=(PROTOCOL=tcp)(HOST=<my_ip>)(PORT=8411)) * establish * SSOSESS * 0
    I have you got an idea of the cause of the error ?
    Thanks...
    Delphine

    The tnsnames.ora that my application uses iscorrect,
    I think :
    (SERVICE_NAME = SSOSESS)This does not say "SID=..." which was used in the
    failed connect attempt (per listener.log)?
    >
    Do you have several tnsnames.ora files, maybe?
    (search the drive/file systems)
    Maybe some app specific config?I don't have several tnsnames.ora. In my application, I have to setup the host name, the user, the password, the port and the sid.
    >
    Hm, I was sure sid/service_name from tnsnames.ora and
    listener services had to match but now I'm not...
    Dont have a setup to test in right now.
    What does lsnrctl serv output?I dit the lsnrctl command on my database server, and I had the following result :
    oracle@ssosess1$ lsnrctl services
    LSNRCTL for Solaris: Version 9.2.0.1.0 - Production on 13-JUL-2006 17:05:14
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=ssosess1-frontend)(PORT=1521)))
    Services Summary...
    Service "SSOSESS" has 1 instance(s).
    Instance "SSOSESS1", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:32922 refused:0
    LOCAL SERVER
    Service "SSOSESS1" has 1 instance(s).
    Instance "SSOSESS1", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully
    >
    Message was edited by:
    orafadThanks again...

  • "ORA:12514 TNS: listener could not currently know of service requested in c

    Hi,
    I have just install 10g database, and when am connecting from 'scott' with password 'oracle' it'll get connected but when at the same time am giving the host string 'ORCL' it does not work giving below attached error,
    "ORA:12514 TNS: listener could not currently know of service requested in connect descriptor"
    plz help me to come out to this problem.
    Thanks & Regards,
    Neha

    ORA-12154: TNS:could not resolve the connect identifier specified
    Cause: A connection to a database or other service was requested using a connect identifier, and the connect identifier specified could not be resolved into a connect descriptor using one of the naming methods configured. For example, if the type of connect identifier used was a net service name then the net service name could not be found in a naming method repository, or the repository could not be located or reached.
    Action:
    - If you are using local naming (TNSNAMES.ORA file):
    - Make sure that "TNSNAMES" is listed as one of the values of the NAMES.DIRECTORY_PATH parameter in the Oracle Net profile (SQLNET.ORA)
    - Verify that a TNSNAMES.ORA file exists and is in the proper directory and is accessible.
    - Check that the net service name used as the connect identifier exists in the TNSNAMES.ORA file.
    - Make sure there are no syntax errors anywhere in the TNSNAMES.ORA file. Look for unmatched parentheses or stray characters. Errors in a TNSNAMES.ORA file may make it unusable.
    - If you are using directory naming:
    - Verify that "LDAP" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Verify that the LDAP directory server is up and that it is accessible.
    - Verify that the net service name or database name used as the connect identifier is configured in the directory.
    - Verify that the default context being used is correct by specifying a fully qualified net service name or a full LDAP DN as the connect identifier
    - If you are using easy connect naming:
    - Verify that "EZCONNECT" is listed as one of the values of the NAMES.DIRETORY_PATH parameter in the Oracle Net profile (SQLNET.ORA).
    - Make sure the host, port and service name specified are correct.
    - Try enclosing the connect identifier in quote marks. See the Oracle Net Services Administrators Guide or the Oracle operating system specific guide for more information on naming.

  • Hi...Please help...Getting ORA 12154 TNS Listener could not resolve...

    Hi,
    I have just loaded Oracle 10g Rel 2 in Win 2003 Enterprise Edition.
    But when I try to connect to sqlplus, I am getting ORA -12154 : TNS: Listener could not resolve the connect identified specified.
    I have registered the database, the listener and tnsnames have been set correctly.
    I have also set the Oracle Home environment variable.
    Still getting the error.
    Any help will be highly appreciated.
    Thanks,

    I agree
    ORA-12145: (does not exist in the standard manuals)
    ORA-12154: TNS:could not resolve the connect identifier specified
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    ORA-12541: TNS:no listener
    It is pretty easy to fat-finger these 4 message numbers. As a result, when a person has the actual and complete error message and an error number for a different message, it is usually not a bad idea to use the actual message. (Based on transposing only 3 digits compared to typing over 50 characters correctly.)
    In this case the OP has really bollixed things: Subject implies a true 12154, text in the thread is an actual 12514 but mentions 12154.
    As a result, there are several potentially correct answers, depending on the interpretation of the question.
    - sb92075 gave the correct answer based on the number
    - I gave the correct answer based on the message in the thread
    - Anurag and Ed gave the correct answer based on 'the question is not formed correctly'
    Edited by: Hans Forbrich on Jan 24, 2010 7:13 AM
    (BTW - ORA-12415 and ORA-12451 are the other permutations ... described http://download.oracle.com/docs/cd/B19306_01/server.102/b14219/e12400.htm#sthref3357)

  • Native Error: 12505 - listener could not resolve SID given in connection description

    Hi - I am having great difficulties with this - 2 products, and
    Aspect ACD telephony switch, and Crystal Decisions Seagate
    software - the common link? Well, neither make the Oracle
    Client, and will NOT help me resolve the error message I am
    getting - when I go through Net8 Configureation, the tests etc
    are successful, but when I attempt it from the ODBC test, I get
    the message above.
    This is my first posting here, so I apologise if there is a more
    appropriate place for it.
    With kindest regards, Mark Tait CGEY

    you should properly configure the SQL*NET files - sqlnet.ora and
    tns<ORACLESID>.ora file.
    thx,
    dan

  • TNS Could not resolve SID given in Connect Descriptor

    Hi All
    Having a problem with a dataexport command in a calc script.
    Am using the command as follows:
         DataExport "DSN" "ProdServer" "Table Name" "username" "password";
    The similar command works fine in UAT.
    When I run the script I get this error:
    OK/INFO - 1021013 - ODBC Layer Error: [08001] ==> [[DataDirect][ODBC Oracle Wire Protocol driver][Oracle]TNS-12505: TNS:listener could not resolve SID given in connect descriptor].
    OK/INFO - 1021014 - ODBC Layer Error: Native Error code [4294967295] .
    ERROR - 1021001 - Failed to Establish Connection With SQL Database Server. See log for more information.
    The ODBC connection is setup the same as in UAT with the correct port number.
    This is also shown:
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver]Cannot open TNS Names file.]
    Could it require the restart of the TNS listener?
    Simon
    Edited by: Simon Watts on 18-May-2011 09:38

    Simon Watts wrote:
    This is also shown:
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC Oracle Wire Protocol driver]Cannot open TNS Names file.]Have you tested the ODBC connection in the ODBC manager, are you sure the information in the tnsnames.ora file is correct?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ORA-12514: TNS:listener does not currently know of service requested

    While connecting "sqlplus SYSADM/SYSADM@HCM" I am getting the below error:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Installation background:
    Windows 7 l(64-bit) laptop.
    Created linux virtualbox to installl peoplesoft VM templates.
    so far installed: Oracle11gR2.vdi and HCMDB.vdi on the linux virtualbox.
    Followed the steps exactly what it is in the link below: Got the above error in page 4 of the link at connecting to database via sqlplus.
    http://bloggingaboutoracleapplications.org/running-oracle-vm-templates-oracle-enterprise-linux-guide-part-1-7/
    Below provided initHCM.ora, tnsnames.ora, listerner.ora and some responses I tried. I could not figure out what causing the issue even after researching in web.
    Your help would be highly appreciated.
    tnsnames.ora:
    =============
    # tnsnames.ora Network Configuration File:
    HCM =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = HCM)
    Listener.ora:
    =============
    # listener.ora Network Configuration File:
    /u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hcmdb91)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    initHCM.ora:
    ============
    DB_FILES =256
    OPEN_CURSORS = 1000
    db_block_size = 8192
    remote_login_passwordfile = NONE
    undo_tablespace=PSUNDOTS
    NLS_LENGTH_SEMANTICS=CHAR
    # Cache and I/O
    #db_block_size=
    db_file_multiblock_read_count=16
    # Database Identification
    # db_domain=us.oracle.com
    # db_name=
    # Diagnostics and Statistics
    #background_dump_dest=
    #core_dump_dest=
    #user_dump_dest=
    # Job Queues
    job_queue_processes=10
    # Processes and Sessions
    processes=150
    # SGA Memory
    sga_target=287309824
    # Security and Auditing
    #audit_file_dest=
    #remote_login_passwordfile=EXCLUSIVE
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=XDB)"
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=95420416
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    #undo_tablespace=
    unnestsubquery=false
    # Miscellaneous
    compatible=11.2.0.2.0
    control_files=(/u01/app/oracle/oradata/HCM/control01.ctl)
    DB_NAME=HCM
    [oracle@hcmdb91 ~]$ tnsping hcm
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
    07:40:37
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
    hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
    HCM)))
    OK (20 msec)
    [oracle@hcmdb91 ~]$
    [oracle@hcmdb91 ~]$ tnsping hcm
    TNS Ping Utility for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013
    07:40:37
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
    hcmdb91)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME =
    HCM)))
    OK (20 msec)
    [oracle@hcmdb91 ~]$ lsnrctl start
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:41:32
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    TNS-01106: Listener using listener name LISTENER has already been started
    [oracle@hcmdb91 ~]$ lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:20
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 28-MAR-2013 07:29:21
    Uptime 0 days 0 hr. 13 min. 1 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File
    /u01/app/oracle/product/11.2.0.x/db_1/network/admin/listener.ora
    Listener Log File
    /u01/app/oracle/product/11.2.0.x/db_1/log/diag/tnslsnr/hcmdb91/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hcmdb91.example.com
    )(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
    The listener supports no services
    The command completed successfully
    [oracle@hcmdb91 ~]$ lsnrctl services
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 28-MAR-2013 07:42:44
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=hcmdb91)(PORT=1521)))
    The listener supports no services
    The command completed successfully
    [oracle@hcmdb91 ~]$
    [oracle@hcmdb91 ~]$ sqlplus SYSADM/SYSADM@HCM
    SQL*Plus: Release 11.2.0.2.0 Production on Thu Mar 28 07:44:25 2013
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in
    connect descriptor
    My guess is that the database service "HCM" is not up and running but not sure how to make up and running. Even I could not find it listed in the linux services list.
    Note: Able to login sqlplus using "sqlplus sys/sys as sysdba" but failing to access database table as "select * from PSRECDEFN;"
    thanks
    Espii.
    Edited by: 995437 on Mar 28, 2013 6:52 AM
    Edited by: 995437 on Mar 28, 2013 6:59 AM

    Hi Nicolas,
    I have no luck and the error still persists.
    I have set the "export ORACLE_SID=HCM" from root user and oracle user too.
    I guess, I have already loaded database when I ran the "cd /opt/oracle/psft/vm
    ./oraclevm-template.sh"
    The outcome of the above script as similar as below:
    Creating
    ovm_configure_pre
    CreateVirtualEnvironment
    /u01/scripts/db-reconfig.sh: line 238: ovm_set_password: command not found
    /u01/scripts/db-reconfig.sh: line 239: ovm_configure_network: command not found
    INFO:
    Starting Oracle database reconfiguration.
    Oracle Database Configuration
    This will configure on-boot properties of Oracle Database.
    The following questions will determine whether the database should be
    starting upon system boot, the ports it will use.
    Press <Enter> to accept the defaults.
    Do you want to relink binaries? (y/n) [n] y
    Specify a port that will be used for the database listener [1521]:
    Do you want Oracle Database to be started on boot (y/n) [y]:y
    Wrote to /etc/sysconfig/oracle11g
    Relinking Oracle Binaries...
    Oracle Relinking Completed Successfully
    Logs: /home/oracle/relink.log
    Running orainstRoot.sh and root.sh...
    set 2GB tmpfs
    Enabling Oracle Database service
    Configuration Completed Successfully.
    Enter the name of the database SID [TESTDB]:HCM
    ORACLE instance started.
    Total System Global Area 288104448 bytes
    Fixed Size 2225832 bytes
    Variable Size 104859992 bytes
    Database Buffers 176160768 bytes
    Redo Buffers 4857856 bytes
    Control file created.
    Database altered.
    Tablespace altered.
    Tablespace altered.
    Tablespace altered.
    1 row updated.
    160 rows updated.
    Commit complete.
    Kumar - I have found no sqlnet.ora file exist in the $ORACLE_HOME/NETWORK/ADMIN
    Edited by: 995437 on Mar 28, 2013 9:15 AM

  • Problem: ORA-12514, TNS:listener does not currently know of service request

    When I enter a command for an Oracle 10g Express installation I am getting the following error:
    Integration Repository Creation Assistant (IRCA) 10.1.3.1.0
    (c) Copyright 2006 Oracle Corporation. All rights reserved.
    Running IRCA for all product(s):
    connection="localhost 1521 orcl", -overwrite, orabpelUser=ORABPEL, esbUser=ORAESB, orawsmUser=ORAWSM
    ERROR: Failed to establish database connection due to the following error:
    Listener refused the connection with the following error:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    The Connection descriptor used by the client was:
    (DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl)))
    Please check your connection parameters and try again.
    Hmm, whats wrong?
    Listener status yields:
    D:\db\install\soa_schemas\irca>lsnrctl status
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 10-FEB-2008 13:04:22
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS des LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Startdate 10-FEB-2008 12:48:44
    Uptime 0 days 0 hours. 15 min. 38 sec.
    Trace-Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Standard-Service XE
    Parameter file of listener D:\Oracle\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Log file of listener D:\Oracle\app\oracle\product\10.2.0\server\network\log\listener.log
    Summary listener endpoints...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Services overview...
    Service "CLRExtProc" hat 1 Instance(s).
    Instance "CLRExtProc", Status UNKNOWN, has 1 Handler for this service...
    Service "PLSExtProc" hat 1 Instance(s).
    Instance "PLSExtProc", Status UNKNOWN, has 1 Handler for this service...
    Service "XEXDB" hat 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Service "XE_XPT" hat 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Service "xe" hat 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    The command was successfully executed.
    D:\db\install\soa_schemas\irca>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 10-FEB-2008 13:18:59
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Anmeldung bei (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    Services _bersicht...
    Service "CLRExtProc" has 1 Instance(s).
    Instance "CLRExtProc", Status UNKNOWN, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "PLSExtProc" has 1 Instance(s).
    Instance "PLSExtProc", Status UNKNOWN, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "XEXDB" has 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Handler:
    "D000" established:0 refused:0 current:0 max:1002 Status:ready
    DISPATCHER <machine: LOCALHOST, pid: 3584>
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1049))
    Service "XE_XPT" has 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:1 refused:0 Status:ready
    LOCAL SERVER
    Service "xe" has 1 Instance(s).
    Instance "xe", Status READY, has 1 Handler for this service...
    Handler:
    "DEDICATED" established:1 refused:0 Status:ready
    LOCAL SERVER
    The command was successfully executed.

    Hi,
    no, you got it wrong:
    Oracle uses network services which are a logical representation of the database to resolve network requests.
    in your ntsnames.ora file you have the following:
    network_alias = my_alias -- here you can write anything you just need to resolve it correctly
    (DESCRIPTION=
    (ADDRESS=
    (PROTOCOL=TCP)
    (host=hostname or IP)
    (port=listener adapter port)
    ) -- this a complete socket information of the listener adapter!!
    (CONNECT_DATA=
    (SERVICE=your_service) -- this is what you tell the listener about the service you want to connect to. It is defined in the instance with the paramter service_names
    In general it is network aliasses which are resolved with connect descriptor in the tnsnames.ora.
    A connect decriptor consists of the address part + the connect_data part.
    The address part is used to reach the listener.
    The connect_data part is the information you hand over to the listener.
    So the listener must know the service name.
    The listener can either know this from the instance itself. When an Oracle instance is started it tries to registrer itself with a listener which listens on port 1521 for the protocol TCP.
    The instance tell this listener two paramater values: INSTANCE_NAME and SERVICE_NAMES. Then the listener knows the instance and which services are defined. It is just a reprentation of the database to the listener.
    If the listerner knows the service requested with a connect, it can establish a connection to a service handler. This could be a dedicated server process or a dispatcher.
    Another mehtod to let the listener know the service requested is so called static regustration of the instance. This is made with an SID LIST in the listener.ora file.
    Then the listener knows SID for the instance plus ORACLE_HOME and can find the executable to start a server process for a connect request.
    Hope it helps a little-.
    =;-)
    If you have further questions pls do not hesitate to ask. O.K.?

Maybe you are looking for

  • Accesskey used in uix templates not working when page is rendered

    Hi, I have a uix template that contains a few links. These links have accesskeys set in them. However when rendering a uix page that extends the uix template the accesskeys dont work. Any ideas as to whether this is a vaild way of doing accesskeys? C

  • Save EDC Code(MAPAR) in Functional Location tcode

    Hi gurus all, I want to save edc code field after being filled with some value in transaction il02. I'm using enhancement EXIT_SAPMILO0_001, this enhancement triggered after i ticked the save button. However, in this enhancement, there is not edc cod

  • Filtering documents to create

    Dear Firendas, Weu2019ve created two different role configuration keys for our project, so we have two different configurations for many components. Weu2019ve create many types of documents (IMG, CRM, Transactions, Basic Settings, Define Transaction

  • Re-partitioning to Mac OS X?

    Hi, I am acknowledgedly new to Macs, but I have my experiences. I have used Mac os 9 and Mac os X, and I have been with Bootcamp before, but I wanted to know if it's possible to de-partition the drive or turn the drive completely back into Mac OS X,

  • Problem for Giving Authorization Related to Notification

    Hi We are using QM02 to check the quality notification type q1. For some users we have to give authorizations to change the document attached to notification. Already they have been given authorization for T code QM02. but users are unable to change