Ora-12514 connect to SCAN listener in dataguard RAC environment

I have two rac nodes datase on linux and two rac standby database also.
Here are what I got when I try to connect to scan listener from client. It connects to vip/or scan ip addresses without any problem.
sqlplus system/password@wxcy
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 14 18:42:42 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
ERROR:
ORA-12154: TNS:could not resolve the connect identifier specified
But when I log in to the ip address of the scan listener, it worked:
sqlplus system/[email protected]:1521/wxcy
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Mar 14 18:43:12 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
SQL>
Here is the tnsnames.ora on the client:
wxcy =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wxcy)
Here are listener.ora and tnsnames.ora on the server:
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy_DGMGRL)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
SID_LIST_LISTENER_SCAN1 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
SID_LIST_LISTENER_SCAN3 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
INBOUND_CONNECT_TIMEOUT_LISTENER = 120
~
tnsnames.ora:
wxcy =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wxcy)
wxcy_DGMGRL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = wxcy_DGMGRL)
wxcy1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)(SERVICE_NAME = wxcy)
(INSTANCE_NAME = wxcy1)
wxcy2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scan.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)(SERVICE_NAME = wxcy)
(INSTANCE_NAME = wxcy2)
From node 2:
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy_DGMGRL)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy1)
SID_LIST_LISTENER_SCAN2 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy2)
SID_LIST_LISTENER_SCAN3 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = wxcy)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(SID_NAME = wxcy2)
I wonder why I can connect to the ip addresses of those scan listener but not the scan name.
Thanks.

Hello;
This note may help :
How to Troubleshoot Connectivity Issue with 11gR2 SCAN Name [ID 975457.1]
Also I would check my DNS ( OK double check ) and each listener service as follows :
lsnrctl service LISTENER_SCAN1
( and so on )
Also
Make sure a password file exists on on that node. ( A copy - Create new with Oracle 11 DG does not work )
Best Regards
mseberg
Edited by: mseberg on Mar 14, 2012 5:10 PM

Similar Messages

  • 11gR2 - Statically defining listener.ora in GRID_HOME with SCAN listener.

    Hi,
    Grid Infrastructure 11.2.0
    DB 11.2.0.3 & DB 10.2.0.4.3
    For all databases on this RAC, I am allowing the Grid Infrastructure SCAN listener handle all the connections which is fine. However, without using the DBHOME Local listener - How do I statically define listener values in the GRID_HOME listener.ora?
    On some of my setup, where Dataguard is present - I will need to statically define XPT, DGB in the listener.ora in order for these services to be listening while the broker is handling Dataguard Switchovers. These will allow the databases to be restarted automatically, without the need to "manually" startup the databases.
    Mind you, some of my setups do not require the XPT and DGB to be statically defined in order for the databases to be started up automatically during a switchover.
    Statically defining XPT and DGB was a workaround that Metalink also suggested on my SR some time ago, however that was more obvious to define under DBHOME listener.ora. Under 11g GRID_HOME, it seems more dynamic.

    In what format?
    This is what is currently in GRID_HOME listener.ora.
    perdevora01:oracle-VPMPER:/apps/grid/product/11.2.0/grid_1/network/admin>cat listener.ora
    LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
    LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
    LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
    LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
    perdevora01:oracle-VPMPER:/apps/grid/product/11.2.0/grid_1/network/admin>Add static configuration in listener's format
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    ...

  • ORA-12514 Connecting through php

    So I want to connect to my database through php. I'm using XAMPP 3.1, Oracle 11g, PHP 5 and Windows XP Pro (VM), and I get this error
    Error: 12514 - ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Here I do "lsnrctl services":
    C:\Documents and Settings\Administrator>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 04-JAN-2013 01:03
    :56
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    A ligar a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=daniel-2f3bc07e)(PORT=1521))
    Resumo dos Serviτos...
    O serviτo "BD1213XDB" tem 1 instΓncia(s).
    A instΓncia "bd1213", estado READY, tem 1 rotina(s) de tratamento deste serviτ
    o...
    Rotina(s) de tratamento:
    "D000" estabelecido:0 recusado:0 actual:0 mßx.:1022 estado:ready
    DISPATCHER <machine: DANIEL-2F3BC07E, pid: 2744>
    (ADDRESS=(PROTOCOL=tcp)(HOST=daniel-2f3bc07e)(PORT=1028))
    O serviτo "CLRExtProc" tem 1 instΓncia(s).
    A instΓncia "CLRExtProc", estado UNKNOWN, tem 1 rotina(s) de tratamento deste
    serviτo...
    Rotina(s) de tratamento:
    "DEDICATED" estabelecido:3 recusado:0
    LOCAL SERVER
    O serviτo "Oracle8" tem 1 instΓncia(s).
    A instΓncia "ORCL", estado UNKNOWN, tem 1 rotina(s) de tratamento deste serviτ
    o...
    Rotina(s) de tratamento:
    "DEDICATED" estabelecido:0 recusado:0
    LOCAL SERVER
    O serviτo "bd1213" tem 1 instΓncia(s).
    A instΓncia "bd1213", estado READY, tem 1 rotina(s) de tratamento deste serviτ
    o...
    Rotina(s) de tratamento:
    "DEDICATED" estabelecido:52 recusado:0 estado:ready
    LOCAL SERVER
    Comando concluφdo com Ωxito
    C:\Documents and Settings\Administrator>
    I'm sorry for this being in portuguese, I don't know how to get in english. I want to connect to bd1213. And the php I'm running:
    <?php
    $cfg = array();
    $cfg['username'] = "trabalho";
    $cfg['password'] = "cp7";
    $cfg['c_string'] = "daniel-2f3bc07e:1521/trabalho";
    $cbd = oci_connect($cfg['username'], $cfg['password'], $cfg['c_string']);
    if(!$cbd){
    $err = oci_error();
    echo "Erro: ".$err['code']." - ".$err['message'];
    die();
    ?>
    Any thougts on how to fix this?
    Thanks in advance!
    Regards,
    Daniel

    979823 wrote:
    So I want to connect to my database through php. I'm using XAMPP 3.1, Oracle 11g, PHP 5 and Windows XP Pro (VM), and I get this error
    Error: 12514 - ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Here I do "lsnrctl services":
    C:\Documents and Settings\Administrator>lsnrctl services
    LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 04-JAN-2013 01:03
    :56
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    A ligar a (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=daniel-2f3bc07e)(PORT=1521))
    Resumo dos Serviτos...
    O serviτo "BD1213XDB" tem 1 instΓncia(s).
    A instΓncia "bd1213", estado READY, tem 1 rotina(s) de tratamento deste serviτ
    o...
    Rotina(s) de tratamento:
    "D000" estabelecido:0 recusado:0 actual:0 mßx.:1022 estado:ready
    DISPATCHER <machine: DANIEL-2F3BC07E, pid: 2744>
    (ADDRESS=(PROTOCOL=tcp)(HOST=daniel-2f3bc07e)(PORT=1028))
    O serviτo "CLRExtProc" tem 1 instΓncia(s).
    A instΓncia "CLRExtProc", estado UNKNOWN, tem 1 rotina(s) de tratamento deste
    serviτo...
    Rotina(s) de tratamento:
    "DEDICATED" estabelecido:3 recusado:0
    LOCAL SERVER
    O serviτo "Oracle8" tem 1 instΓncia(s).
    A instΓncia "ORCL", estado UNKNOWN, tem 1 rotina(s) de tratamento deste serviτ
    o...
    Rotina(s) de tratamento:
    "DEDICATED" estabelecido:0 recusado:0
    LOCAL SERVER
    O serviτo "bd1213" tem 1 instΓncia(s).
    A instΓncia "bd1213", estado READY, tem 1 rotina(s) de tratamento deste serviτ
    o...
    Rotina(s) de tratamento:
    "DEDICATED" estabelecido:52 recusado:0 estado:ready
    LOCAL SERVER
    Comando concluφdo com Ωxito
    C:\Documents and Settings\Administrator>
    I'm sorry for this being in portuguese, I don't know how to get in english. I want to connect to bd1213. And the php I'm running:
    <?php
    $cfg = array();
    $cfg['username'] = "trabalho";
    $cfg['password'] = "cp7";
    $cfg['c_string'] = "daniel-2f3bc07e:1521/trabalho";
    $cbd = oci_connect($cfg['username'], $cfg['password'], $cfg['c_string']);
    if(!$cbd){
    $err = oci_error();
    echo "Erro: ".$err['code']." - ".$err['message'];
    die();
    ?>
    Any thougts on how to fix this?
    Thanks in advance!
    Regards,
    DanielORA-12514 ALWAYS only occurs due to a problem on DB Server system.
    One cause of this problem is when the Oracle database is down & needs to be started.
    A remote client send a request to the Listener asking to be connected to a specific service.
    If/when the listener does not know anything about that service, the listener responds with ORA-12514
    Since every connection request to the listener gets logged, listener.log file will contain a line with 12514 as status code.
    This line contains valuable debugging details. So post this line & surrounding lines.
    for additional debugging suggestions read the URL below:
    http://edstevensdba.wordpress.com/2011/03/19/ora-12514/

  • Changed IP's of nodes cause ORA-12514

    Hi ,
    we reactivated an older RAC (2 nodes) and ran into the following situation:
    - the original IP's of the scan-address have been reused, therefore we had to use new IP's
    After confuguring the new IP's the command <nslookup> myrac-scan.de.domain.dns returns this result:
    Server:         10.xx.xx.x
    Address:      10.xx.xx.x#53
    Name:   myrac-scan.de.domain.dns
    Address: 10.xxx.x.213
    Name:   myrac-scan.de.domain.dns
    Address: 10.xxx.x.212
    Name:   myrac-scan.de.domain.dns
    Address: 10.xxx.x.211
    Executing <srvctl config scan> returns this:
    SCAN name: myrac-scan.de.domain.dns, Network: 1/10.137.1.0/255.255.255.0/bond0
    SCAN VIP name: scan1, IP: /myrac-scan.de.domain.dns/10.xxx.x.212
    SCAN VIP name: scan2, IP: /myrac-scan.de.domain.dns/10.xxx.x.211
    SCAN VIP name: scan3, IP: /myrac-scan.de.domain.dns/10.xxx.x.213
    Therefore: everything looks good to us!
    When executing <lsnrctl services> we get this:
    Service "RAC_DB.de.domain.dns" has 1 instance(s).
      Instance "RAC02", status READY, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:19 refused:0 state:ready
             LOCAL SERVER
    Testing the service RAC_DB.de.domain.dns works fine, too.
    But when trying to connect from my PC (or any other client) we are getting the error ORA-12514 TNS:listener does not currently know of service requested in connect descriptor
    My TNSNAMES.ORA looks like this:
    RAC.de.domain.dns =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = myrac-scan.de.domain.dns)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = RAC_DB.de.domain.dns)
          (SERVER = DEDICATED)
    Any idea? When using PUTTY with myrac-scan.de.domain.dns I get connected to one of the nodes of the RAC - therefore the address itself is OK.
    If the IP's have changed: is ther anything else which needs to be reconfigured?
    Any help will be appreciated.
    Rgds
    Jan

    Does the SCAN listener show any registered services from the RAC db instances?
    If not, then it means that the registration process fails - in which case you need to check things like hostname resolution and firewalls on the RAC server nodes.
    If the SCAN listener does show RAC services, confirm that the service name used by the client's TNS connection is supported.
    If there still does not seem to be an error, enable SQL*Net tracing on the client. Set the client's sqlnet.ora file to include the following settings:
    DIAG_ADR_ENABLED = off
    TRACE_LEVEL_CLIENT = admin
    TRACE_DIRECTORY_CLIENT = <your-local-trace-dir>
    Try connecting from the client again and investigate the trace for that connection attempt.

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

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

    I am not able to connect to oracle 10g xe database....
    Can any one of you help me in resolving this error
    last time I was able to login when I installed Oracle 10g XE on my
    windows xp machine but I dont know wht has happen...now i didnt change
    any setting... just restarted m/c..
    C:\Documents and Settings\ak>sqlplus scott/tiger@XE
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Nov 19 17:11:24 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    regards,
    aak.

    ## below is my listner.ora file
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ak.com)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    ### below is sqlnet.ora
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    ### below is tnsnames.ora
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ak.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )

  • Java.sql.SQLException: Listener refused the connection with the following error: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

    Good Day,
    I'm encountering this problem
         java.sql.SQLException: Listener refused the connection with the following error:
         ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    here's the java code
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    String url = "jdbc:oracle:thin:@//10.143.85.21/UCSL";
    String userName = "mssoriano";
    String passWord = "mssoriano_4319";
    conn = DriverManager.getConnection(url, userName, passWord);
    and here's my tnsnames.ora
    UCSL =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.143.85.21)(PORT = 1521))
        (CONNECT_DATA =
          (SID = psusldb11)
    Please do let me know if what may the cause of the problem and how to solve this. Thank you and God bless.

    Hi,
    see this example
    Connect to Oracle DB via JDBC driver
    Frank

  • Listener (and database instance) does not starts up automatically: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

    Hi at all.... I'm a newbie with database oracle.,
    I have the follow problem:
    I installed Oracle Database 11g R2 XE on my guest operating system CentOS 6.5.
    I have changed  the hostname in my SO CentOS (where is installed oracle 11g R2 XE) after installation was completed successfully.
    -) Before and during installation the hostname was localhost.
    -) After installation I changed the hostname in VMCentOS
    From the moment I changed the hostname, nothing starts up automatically. In particular, the listener and the database instance does not starts up automatically.
    When I starts up the listener manually and I try to connect to database instance with SQLPLUS i get this error:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    I think that the problem is due to the changed hostname because I, for testing and debugging purpose, re-installed a new OS CentOS virtual machine, re-installed oracle database 11g and  I have not got that problem. The database instance and the listener starts up automatically!
    Can any one tell me if maybe the problem is related to the hostname changed? ... and Why?
    P.S.: After changed the hostname I have also modified the listener.ora and the tnsnames.ora by modifying the HOST with the correct hostname.

    -) Output of command chkconfig (there isn't any line oracle-xe 0:off   1:off  2:on  3:on  4:on  5:on  6:off):
    [oracle@VMCentOS /]$ chkconfig
    NetworkManager     0:off    1:off    2:on    3:on    4:on    5:on    6:off
    abrt-ccpp          0:off    1:off    2:off    3:on    4:off    5:on    6:off
    abrtd              0:off    1:off    2:off    3:on    4:off    5:on    6:off
    acpid              0:off    1:off    2:on    3:on    4:on    5:on    6:off
    atd                0:off    1:off    2:off    3:on    4:on    5:on    6:off
    auditd             0:off    1:off    2:on    3:on    4:on    5:on    6:off
    blk-availability    0:off    1:on    2:on    3:on    4:on    5:on    6:off
    bluetooth          0:off    1:off    2:off    3:on    4:on    5:on    6:off
    cpuspeed           0:off    1:on    2:on    3:on    4:on    5:on    6:off
    crond              0:off    1:off    2:on    3:on    4:on    5:on    6:off
    cups               0:off    1:off    2:on    3:on    4:on    5:on    6:off
    dnsmasq            0:off    1:off    2:off    3:off    4:off    5:off    6:off
    firstboot          0:off    1:off    2:off    3:on    4:off    5:on    6:off
    haldaemon          0:off    1:off    2:off    3:on    4:on    5:on    6:off
    htcacheclean       0:off    1:off    2:off    3:off    4:off    5:off    6:off
    httpd              0:off    1:off    2:off    3:off    4:off    5:off    6:off
    ip6tables          0:off    1:off    2:on    3:on    4:on    5:on    6:off
    iptables           0:off    1:off    2:on    3:on    4:on    5:on    6:off
    irqbalance         0:off    1:off    2:off    3:on    4:on    5:on    6:off
    jexec              0:off    1:on    2:on    3:on    4:on    5:on    6:off
    kdump              0:off    1:off    2:off    3:on    4:on    5:on    6:off
    lvm2-monitor       0:off    1:on    2:on    3:on    4:on    5:on    6:off
    mdmonitor          0:off    1:off    2:on    3:on    4:on    5:on    6:off
    messagebus         0:off    1:off    2:on    3:on    4:on    5:on    6:off
    netconsole         0:off    1:off    2:off    3:off    4:off    5:off    6:off
    netfs              0:off    1:off    2:off    3:on    4:on    5:on    6:off
    network            0:off    1:off    2:on    3:on    4:on    5:on    6:off
    ntpd               0:off    1:off    2:off    3:off    4:off    5:off    6:off
    ntpdate            0:off    1:off    2:off    3:off    4:off    5:off    6:off
    portreserve        0:off    1:off    2:on    3:on    4:on    5:on    6:off
    postfix            0:off    1:off    2:on    3:on    4:on    5:on    6:off
    psacct             0:off    1:off    2:off    3:off    4:off    5:off    6:off
    quota_nld          0:off    1:off    2:off    3:off    4:off    5:off    6:off
    rdisc              0:off    1:off    2:off    3:off    4:off    5:off    6:off
    restorecond        0:off    1:off    2:off    3:off    4:off    5:off    6:off
    rngd               0:off    1:off    2:off    3:off    4:off    5:off    6:off
    rsyslog            0:off    1:off    2:on    3:on    4:on    5:on    6:off
    saslauthd          0:off    1:off    2:off    3:off    4:off    5:off    6:off
    smartd             0:off    1:off    2:off    3:off    4:off    5:off    6:off
    snmpd              0:off    1:off    2:off    3:off    4:off    5:off    6:off
    snmptrapd          0:off    1:off    2:off    3:off    4:off    5:off    6:off
    spice-vdagentd     0:off    1:off    2:off    3:off    4:off    5:on    6:off
    sshd               0:off    1:off    2:on    3:on    4:on    5:on    6:off
    sysstat            0:off    1:on    2:on    3:on    4:on    5:on    6:off
    udev-post          0:off    1:on    2:on    3:on    4:on    5:on    6:off
    vmware-tools       0:off    1:off    2:on    3:on    4:on    5:on    6:off
    vmware-tools-thinprint    0:off    1:off    2:on    3:on    4:on    5:on    6:off
    wdaemon            0:off    1:off    2:off    3:off    4:off    5:off    6:off
    winbind            0:off    1:off    2:off    3:off    4:off    5:off    6:off
    wpa_supplicant     0:off    1:off    2:off    3:off    4:off    5:off    6:off
    [oracle@VMCentOS /]$
    Moreover in /etc/sysconfig there isn't any file oracle-xe!!!
    At this point, I suspect that something in the installation I mistook.

  • Hyperion startup error -ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

    Hi All,
    While restarting the hyperion service we see this exception. Nothing was changed on the hyperion server. Checking with DB team if anything was change on their end.
    Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: Listener refused the connection with the following error:ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
            at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:283)
            at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1310)
            at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1227)
            at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:250)
            at weblogic.jdbc.common.internal.ConnectionPool.doStart(ConnectionPool.java:1330)
            Truncated. see log file for complete stacktrace
    We don't have oracle client on our end, so this is not a tnsnames issue. This is preventing all the hyperion services coming up.
    Thanks,

    The listener is up , the message is from the listener indicating the listener does not know of SID/SERVICE name that you are giving it. Manually connect to the db using sqldeveloper in order to make sure the parameters you are providing are working. Pay special attention to SID vs SERVICE_NAME. Then try to open config tool and go back to your database connection info. Reconfigure your database connection. It will likely you will find your connection error there. Also sometimes the config tool has trouble figuring out whether you mean SID or SERVICE_NAME. You can open advanced properties on the connection in configtool and specify / or : in the url.
    Java JDBC - How to connect to Oracle using Service Name instead of SID - Stack Overflow

  • 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

  • Getting "ORA-12514 error" while connecting first time

    Hi,
    Getting below error while connecting to the database first time.
    ORA-12514: TNS:listener does not currently know of service requested in connect
    apludc01dat25:e2cmpc1 > tnsping ora37_ap
    TNS Ping Utility for Linux: Version 10.2.0.5.0 - Production on 26-MAR-2012 12:00:58
    Copyright (c) 1997, 2010, Oracle. All rights reserved.
    Used parameter files:
    /grid/product/crs/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = apl11764clu01-scan-oravip.nat.bt.com)(PORT = 61901)) (CONNECT_DATA = (SERVICE_NAME = ORA37_ap))
    OK (0 msec)
    apludc01dat25:e2cmpc1 > sqlplus
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon Mar 26 12:00:15 2012
    Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
    Enter user-name: outln@ora37_ap
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Enter user-name:
    apludc01dat25:e2cmpc1 > sqlplus
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon Mar 26 12:00:22 2012
    Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
    Enter user-name: outln@ora37_ap
    Enter password:
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    SQL>
    Please help me out to resolve this issue.
    Thank you.
    Regards,
    Dasarath

    Hi,
    We are getting this error while connecting remotely.
    PFB output of listener status and services
    apl11764a001:ORA37a > lsnrctl services LISTENER_ORA37
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 26-MAR-2012 12:18:06
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA37)))
    Services Summary...
    Service "ORA37_ap" has 1 instance(s).
    Instance "ORA37a", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:2 refused:0 state:ready
    LOCAL SERVER
    Service "ORA37_ap_XPT" has 1 instance(s).
    Instance "ORA37a", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:2 refused:0 state:ready
    LOCAL SERVER
    Service "ORA37aXDB" has 1 instance(s).
    Instance "ORA37a", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: apl11764a001, pid: 25970>
    (ADDRESS=(PROTOCOL=tcp)(HOST=apl11764a001)(PORT=10862))
    The command completed successfully
    apl11764a001:ORA37a > lsnrctl status LISTENER_ORA37
    LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 26-MAR-2012 12:18:20
    Copyright (c) 1991, 2008, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_ORA37)))
    STATUS of the LISTENER
    Alias LISTENER_ORA37
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 26-MAR-2012 12:15:17
    Uptime 0 days 0 hr. 3 min. 2 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /grid/product/crs/network/admin/listener.ora
    Listener Log File /grid/product/crs/log/diag/tnslsnr/apl11764a001/listener_ora37/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_ORA37)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.25.169.4)(PORT=62037)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.25.169.7)(PORT=62037)))
    Services Summary...
    Service "ORA37_ap" has 1 instance(s).
    Instance "ORA37a", status READY, has 1 handler(s) for this service...
    Service "ORA37_ap_XPT" has 1 instance(s).
    Instance "ORA37a", status READY, has 1 handler(s) for this service...
    Service "ORA37aXDB" has 1 instance(s).
    Instance "ORA37a", status READY, has 1 handler(s) for this service...
    The command completed successfully
    Thank you.
    Regards,
    Dasarath

  • 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

  • Connecting to Oracle XE via regular 10g client - ORA-12514

    I have had the 10g client installled on my computer for a while, for developing against our company Oracle databases. I have now installed the XE database locally on my computer so I can do some local development - according to the information I've been able to find the two should live side-by-side without problem.
    I can still connect to our company databases just fine, but I can't get a connection to the local XE database at all.
    I've added this line to tnsnames.ora:
    XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = XE)))
    The error I'm getting connecting is:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Thanks for any help!

    Hi,
    I did mean duplicates even between different tnsnames.ora files.
    As I understand, if you XE works, you should not need do anything for that tnsnames.ora.
    Just find how entry should be for client.
    BTW, what tool you will use for XE? Do you need client?
    E.g. if you use SQL Developer, you do not need client or set anything to tnsnames.ora
    Regards,
    Jari
    Edited by: jarola on Jan 18, 2011 2:30 PM
    BTW, it might good to search Instant Client forums if you find help there.
    If you do not find answer, then it might good idea post question there.
    At least for me this is more client question than XE.
    Instant Client
    But as I understand it should not be any problem use 10g client for XE.
    I just have never done that =)

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

    Hi All,
    I am trying to create a physical standby using RMAN duplicate command.Yesterday I created it succesfully ,today I dropped the standby database I tried to create new one when I got hit by this error"
    <code>
    [email protected](standby) $ rman target sys/root123#@db1 auxiliary sys/root123#@standby
    Recovery Manager: Release 11.2.0.1.0 - Production on Sun Mar 3 11:38:08 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    [email protected](standby) $
    </code>
    below is my tnsname and listener files from primary
    [email protected](db1) $ pwd
    /u01/app/oracle/dbhome_1/network/admin
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $ ls -ltr
    total 28
    -rw-r--r-- 1 oracle oinstall 187 May 7 2007 shrept.lst
    drwxr-xr-x 2 oracle oinstall 4096 Sep 12 22:12 samples
    -rw-r--r-- 1 oracle oinstall 40 Jan 20 03:38 sqlnet.ora_1
    -rw-r----- 1 oracle oinstall 1004 Mar 3 00:33 tnsnames.ora
    -rw-r--r-- 1 oracle oinstall 1004 Mar 3 11:27 tnsnames13030311AM2745.bak
    -rw-r--r-- 1 oracle oinstall 514 Mar 3 11:27 listener13030311AM2745.bak
    -rw-r--r-- 1 oracle oinstall 508 Mar 3 11:28 listener.ora
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DB1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary.swapnilkambli.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = db1.primary.swapnilkambli.com)
    RCAT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary.swapnilkambli.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = rcat.primary.swapnilkambli.com)
    DB2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary.swapnilkambli.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = db2.primary.swapnilkambli.com)
    STANDBY =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby.swapnilkambli.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = standby.standby.swapnilkambli.com)
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $ cat listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = rcat.primary.swapnilkambli.com)
    (ORACLE_HOME = /u01/app/oracle/dbhome_1)
    (SID_NAME = rcat)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary.swapnilkambli.com)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    [email protected](db1) $
    [email protected](db1) $ lsnrctl services
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 03-MAR-2013 11:42:52
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=primary.swapnilkambli.com)(PORT=1521)))
    Services Summary...
    Service "db1.primary.swapnilkambli.com" has 1 instance(s).
    Instance "db1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:6 refused:0 state:ready
    LOCAL SERVER
    Service "db1XDB.primary.swapnilkambli.com" has 1 instance(s).
    Instance "db1", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: primary.swapnilkambli.com, pid: 2617>
    (ADDRESS=(PROTOCOL=tcp)(HOST=primary.swapnilkambli.com)(PORT=23611))
    Service "rcat.primary.swapnilkambli.com" has 1 instance(s).
    Instance "rcat", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    The command completed successfully
    [email protected](db1) $ tnsping db1
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 03-MAR-2013 11:43:36
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = primary.swapnilkambli.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = db1.primary.swapnilkambli.com)))
    OK (0 msec)
    [email protected](db1) $
    [email protected](db1) $
    [email protected](db1) $ tnsping standby
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 03-MAR-2013 11:43:44
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = standby.swapnilkambli.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = standby.standby.swapnilkambli.com)))
    OK (0 msec)
    and below are my entries from standby server
    [email protected](standby) $ pwd
    /u01/app/oracle/dbhome_1/network/admin
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $ ls -ltr
    total 24
    -rw-r--r-- 1 oracle oinstall 187 May 7 2007 shrept.lst
    drwxr-xr-x 2 oracle oinstall 4096 Sep 12 22:12 samples
    -rw-r----- 1 oracle oinstall 576 Mar 3 11:21 tnsnames.ora
    -rw-r--r-- 1 oracle oinstall 576 Mar 3 11:25 tnsnames13030311AM2540.bak
    -rw-r--r-- 1 oracle oinstall 514 Mar 3 11:25 listener13030311AM2540.bak
    -rw-r--r-- 1 oracle oinstall 514 Mar 3 11:26 listener.ora
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $ cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /u01/app/oracle/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DB1 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = primary.swapnilkambli.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = db1.primary.swapnilkambli.com)
    STANDBY =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby.swapnilkambli.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = standby.standby.swapnilkambli.com)
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $ cat listener.ora
    # listener.ora Network Configuration File: /u01/app/oracle/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = standby.standby.swapnilkambli.com)
    (ORACLE_HOME = /u01/app/oracle/dbhome_1)
    (SID_NAME = standby)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = standby.swapnilkambli.com)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    [email protected](standby) $
    [email protected](standby) $ lsnrctl services
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 03-MAR-2013 11:43:14
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=standby.swapnilkambli.com)(PORT=1521)))
    Services Summary...
    Service "standby" has 1 instance(s).
    Instance "standby", status BLOCKED, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Service "standby.standby.swapnilkambli.com" has 1 instance(s).
    Instance "standby", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0
    LOCAL SERVER
    The command completed successfully
    [email protected](standby) $ tnsping db1
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 03-MAR-2013 11:49:12
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = primary.swapnilkambli.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = db1.primary.swapnilkambli.com)))
    OK (0 msec)
    [email protected](standby) $
    [email protected](standby) $
    [email protected](standby) $ tnsping standby
    TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 03-MAR-2013 11:49:18
    Copyright (c) 1997, 2009, Oracle. All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = standby.swapnilkambli.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = standby.standby.swapnilkambli.com)))
    OK (0 msec)
    tnsping works from both side I am able to connect from primary as below:
    [email protected](db1) $ rman target sys/root123#@db1 auxiliary sys/root123#@standby
    Recovery Manager: Release 11.2.0.1.0 - Production on Sun Mar 3 11:44:23 2013
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: DB1 (DBID=1402881212)
    connected to auxiliary database: DB1 (not mounted)
    RMAN>
    DB version 11.2.0.1.0
    OS version Linux 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    primary server--- primary.swapnilkambli.com
    primary database--- db1
    standby server--- standby.swapnilkambli.com
    standby database--- standby
    After I dropped the physical standby first time I did make some changes in tns of standby server which I dont recollect.
    Help on this error ORA-12514 is available on internet but I did not find anything helpful to my situation
    Edited by: user12860499 on Mar 2, 2013 10:45 PM

    GOT IT!!!!
    I check listener trace and found below:
    Log messages written to /u01/app/oracle/diag/tnslsnr/standby/listener/alert/log.xml
    03-MAR-2013 12:21:59 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=standby.swapnilkambli.com)(USER=oracle))(COMMAND=reload)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=186646784)) * reload * 0
    03-MAR-2013 12:22:00 * service_register * standby * 0
    Sun Mar 03 12:22:16 2013
    03-MAR-2013 12:22:16 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=db1.primary.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=standby.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=39512)) * establish * db1.primary.swapnilkambli.com * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    03-MAR-2013 12:22:20 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=standby.standby.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=standby.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.102)(PORT=54862)) * establish * standby.standby.swapnilkambli.com * 0
    03-MAR-2013 12:22:20 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=standby.standby.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=standby.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.102)(PORT=54863)) * establish * standby.standby.swapnilkambli.com * 0
    03-MAR-2013 12:22:20 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=standby.standby.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=standby.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.102)(PORT=54864)) * establish * standby.standby.swapnilkambli.com * 0
    Sun Mar 03 12:22:27 2013
    03-MAR-2013 12:22:27 * service_update * standby * 0
    Sun Mar 03 12:22:40 2013
    03-MAR-2013 12:22:40 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=standby.standby.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=primary.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=60821)) * establish * standby.standby.swapnilkambli.com * 0
    03-MAR-2013 12:22:40 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=standby.standby.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=primary.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=60822)) * establish * standby.standby.swapnilkambli.com * 0
    03-MAR-2013 12:22:40 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=standby.standby.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=primary.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.56.101)(PORT=60823)) * establish * standby.standby.swapnilkambli.com * 0
    03-MAR-2013 12:22:42 * service_update * standby * 0
    03-MAR-2013 12:22:45 * service_update * standby * 0
    Sun Mar 03 12:22:51 2013
    03-MAR-2013 12:22:51 * (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=db1.primary.swapnilkambli.com)(CID=(PROGRAM=rman)(HOST=standby.swapnilkambli.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=39536)) * establish * db1.primary.swapnilkambli.com * 12514
    TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
    there was a entry in /etc/hosts which was directing primary.swapnilkambli.com to 127.0.01
    This was because I created this OS from a Virtual box template wherein that entry was made.
    I changed the /etc/hosts to refelct the true address and it worked!!

  • Data Guard Broker teasing error ORA-12514: TNS:listener

    Hello,
    I have spent many hours but don't understand what little thing I am missing or confusing me.. Please help to fix the issue.
    Physical Standb db created successfully, but now facing following issue: Though it should be and must be fixed but really making me mad
    DGMGRL> SHOW CONFIGURATION;
    Configuration - DATA GUARD
      Protection Mode: MaxPerformance
      Databases:
        dg - Primary database
    Fast-Start Failover: DISABLED
    Configuration Status:
    DISABLED
    DGMGRL> ADD DATABASE DG_DB2
    > AS CONNECT IDENTIFIER IS DG_DB2
    > MAINTAINED AS PHYSICAL;
    Error: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    PRIM:
    db_name: DG
    db_unique_name: dg
    service_names:  dg
    STBY:
    db_name: DG
    db_unique_name: dg_db2
    service_names:  dg_db2
    # TNSNAMES same entries on both Primary and Standby: HOSTNAMES are different.
    DG =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dg)
    DG_DB2 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = dg_db2)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))   db02.domain for Standby on standby machine.
    # Listener.ora on PRIMARY:
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = db01.domain)(PORT = 1521))
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = dg_DGMGRL.domain)
          (ORACLE_HOME = /oracle/app/11g/db)
           (SID_NAME = dg)
           (SERVICE_NAME = dg.domain)
    # Listener.ora on Standby:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (GLOBAL_DBNAME = dg_db2_DGMGRL.domain)
          (ORACLE_HOME = /oracle/app/11g/db)
           (SID_NAME = dg_db2)
           (SERVICE_NAME = dg_db2.domain)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = db02.domain)(PORT = 1521))
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    I created Stby DB with the minimum parameters required, so that I configure BROKER and see it magic, but badly stuck in this situation here. I have read many docs related to this..but can not fix it unfortunately.
    Please guide me from your own experience as note ids, blogs are not helping me here...
    Bundle of thanks.
    Best Regards

    Hi,
    Your listener.ora file has SERVICE_NAME = dg_db2.domain whereas tnsnames.ora file has SERVICE_NAME = dg_db2.
    Check in your database for exact service name and reflect the same in both the files.
    SQL> sho parameter service_names
    Restart the listener and try connecting.
    Thank you!!

Maybe you are looking for