Suddenly getting ORA-12514

Hi
I am parsing an XML file and trying to store data into oracle 10g.
My connection string is :
Connection c = DriverManager.getConnection("jdbc:odbc:Oracle-DB","scott","tiger");
But suddenly I am getting error like ORA-12514. below is the stack trace for the same.
Please help me. Couldnt really figure out why this happens.
This is not actually a parsing error since I can parse the XML file correct.
Thanks in advance....
java.sql.SQLException: [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at xdconvert.MyConnection.getConnection(mainForm.java:331)
at xdconvert.mainForm.main(mainForm.java:249)
Root Element is:catalog
Total Numbers of Nodes:5
Text at Node articleis
Text at Node titleis
The active XML
Text at Node articleis
Text at Node authoris
Julie Basu
Text at Node articleis
Text at Node articleis
Text at Node titleis
The Active Database
Text at Node articleis
Text at Node authoris
Cameron ORourke
Text at Node articleis
java.sql.SQLException: [Oracle][ODBC][Ora]ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at xdconvert.MyConnection.getConnection(mainForm.java:331)
at xdconvert.xmlTodb.btnConvertActionPerformed(xmlTodb.java:228)
at xdconvert.xmlTodb.access$200(xmlTodb.java:61)
at xdconvert.xmlTodb$3.actionPerformed(xmlTodb.java:147)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Please in the future, first of all look up the error message in the online documentation, even before posting this error yet again, showing you didn't try to figure out what happened.
The error message implies
service_name in tnsnames.ora != service_name of the database.
Make sure both service_names match.
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Suddenly getting ORA-12514 error Oracle 11gr2

    I installed Oracle 11g r2 fine, had 2 databases (se3 and mydb, both have db_domain .orcl i.e. mydb.orcl and se3.orcl) running on it fine till yesterday. but suddenly im getting ORA-12514 error (TNS:listener doesn't know of service requested in connect descriptor)..
    My tnsnames.ora file:
    # tnsnames.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_MYDB =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    MYDB =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = mydb.orcl)
    SE3 =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = se3.orcl)
    LISTENER_SE3 =
      (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    and my listener.ora file is as follows:
    # listener.ora Network Configuration File: G:\oracledb\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ADR_BASE_LISTENER = G:\oracledb
    * i have both of databases up and running(confirmed through administration assistant), the listener is up.. im able to execute "tnsping mydb/se3".. i'm not able to connect to either one of them through sqlplus/sql developer.. The result of "lsnrctl service" is as follows:
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
      TNS-00511: No listener
       32-bit Windows Error: 2: No such file or directory
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    The command completed successfully
    PLEASE HELP ME FRIENDS!! I HAVE A PROJECT DUE IN EARLY OCTOBER

    Hi,
    Instead of this:
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    have the following in your listener file
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:G:\oracledb\product\11.2.0\dbhome_1\bin\oraclr11.dll")
       (SID_DESC =
          (SID_NAME = mydb)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)
        (SID_DESC =
          (SID_NAME = se3)
          (ORACLE_HOME = G:\oracledb\product\11.2.0\dbhome_1)   
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    Also, dont have 'localhost' in your listener.ora file, provide the actual IP or hostanme. NEVER YOU should have
    localhost.
    Restart listener and try.
    Thanks &
    Best Regard,

  • Keep getting ora-12514 for client test TAF to primary or standby readonly

    I kept getting ora-12514 error while trying to access to the database.
    Edited by: 846422 on Dec 16, 2011 5:14 AM

    Hello;
    ( Consider a different service name, see my comment below )
    After you start the service
    exec dbms_service.start_service('hyrdev');
    I would expect you might set Several of the default parameters
    Ex.
    BEGIN
       DBMS_SERVICE.MODIFY_SERVICE
       ('hyrdev',
       FAILOVER_METHOD => 'BASIC',
       FAILOVER_TYPE => 'SELECT',
       FAILOVER_RETRIES => 200,
       FAILOVER_DELAY => 1);
    END;
    /Also your startup trigger is much different than anything I have seen.
    My Example (This was taken from the Oracle document and almost certainly pretested by Oracle, why change it?? )
    CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
    DECLARE
    V_ROLE VARCHAR(30);
    BEGIN
    SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
    IF V_ROLE = 'PRIMARY' THEN
    DBMS_SERVICE.START_SERVICE('hyrdev');
    ELSE
    DBMS_SERVICE.STOP_SERVICE('hyrdev');
    END IF;
    END;
    /There's another example here :
    http://uhesse.wordpress.com/2009/08/19/connect-time-failover-transparent-application-failover-for-data-guard/
    "lsnrctl status" will confirm if you are working.
    MY test
      Instance "TRAINING", status READY, has 1 handler(s) for this service...
    Service "ernie" has 1 instance(s).
      Instance "PRIMARY", status READY, has 1 handler(s) for this service...
    The command completed successfullyFrankly I would use a different alias than "hyrdev" because by using that you make it very difficult see the new service.
    Your Tnsnames.ora looks correct. Try using different service name.
    You can always delete it later :
      DBMS_SERVICE.DELETE_SERVICE('ernie');
    For additional details check Oracle Doc B14258-02 or B10802-01 and search for "DBMS_SERVICE"
    Finally, check this Oracle note :
    How to configure Client Failover after Data Guard Switchover or Failover [ID 316740.1]
    Best Regards
    mseberg
    Edited by: mseberg on Dec 15, 2011 3:48 PM

  • 10g stopped working after 11g installed. Getting ORA-12514: error

    I had Oracle 10g installed in win2000 sp2. with port 1521.
    I have installed Oracle 11g on the same system. with port 1522.
    I am able to start both the instances and tnslistener but I am not able to connect to Oracle10g database. Getting following error.
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    I have done the following check.
    c:\> tnsping tek10g
    TNS Ping Utility for 32-bit Windows: Version 11.1.0.6.0 - Production on 14-MAR-2
    008 13:04:26
    Copyright (c) 1997, 2007, Oracle. All rights reserved.
    Used parameter files:
    C:\app\mmurugai\product\11.1.0\db_1\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = PC456)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = tek10g) (SRVR = DE
    DICATED)))
    OK (50 msec)
    2) Checked lsnrctl services
    LSNRCTL> services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC456.SYNTELORG.COM)(PO
    T=1522)))
    Services Summary...
    Service "orcl11g" has 1 instance(s).
    Instance "orcl11g", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    Service "orcl11gXDB" has 1 instance(s).
    Instance "orcl11g", status READY, has 1 handler(s) for this service...
    Handler(s):
    "D000" established:0 refused:0 current:0 max:1022 state:ready
    DISPATCHER <machine: PC456, pid: 284>
    (ADDRESS=(PROTOCOL=tcp)(HOST=PC456.SYNTELORG.COM)(PORT=2963))
    Service "orcl11g_XPT" has 1 instance(s).
    Instance "orcl11g", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:3 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    LSNRCTL>
    I am not able to see my tek10g 10g database details.
    I also checked my tnsnames.ora file which has the entries properly.
    Sqlnet.ora file has
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    How to solve this issue? Is that possible to run oracle 10g and oracle 11g in same host?
    Thanks in Advance...
    regards,
    Manikandan

    The approach I would take, in general is:
    1) pick a listener, and only one. Get that working.
    2) Make sure all the databases register to that listener
    3) Fix the TNSNAMES.ORA files appropriately.
    To fix the listener
    1) Verify the listener address matches the current environment
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oracle\app\oracle\product\10.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oracle\app\oracle\product\10.2.0\server)     << - MUST point to correct HOME
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
          (ADDRESS = (PROTOCOL = TCP)(HOST = myHOST)(PORT = myPORT))
      )where
    myHOST is this host's resolvable name or IP address
    myPORT is the port (default 1521) that the listener should monitor
    The HOST is often a problem if the machine uses DHCP.
    2) Register the databases
    On startup, database will auto-register to the listener defined in the init parameter 'LOCAL_LISTENER', which defaults to 'HOST={current_host}, PORT=1521'
    After startup, if the listener is taken down, you can register each database manually using the DBA command
    ALTER SYSTEM REGISTER;
    Either way, it should show up in the output of 'lsnrctl status'
    While you are accessing the database, you might want to find out which services the database supports. That can be done in SQLPlus using the command
    SHOW PARAMETER SERVICE_NAMES
    Note that the database name is the default service name.
    3) Fix [all] the TNSNAMES.ORA file[s].
    Each SERVICE_NAME from the previous list that you want to access from this client, yu should find an entry that looks like
    myTEST =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = myHOST)(PORT = myPORT))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = mySERVICE)
    myTEST is the alias I want to look up by using it as the connect target string.
    myHOST should match the HOST= entry in the LISTENER.ORA
    myPORT MUST match the PORT= entry in the LISTENER.ORA
    mySERVICE is the Service to which I am asking the listener to connect me, as found in the lsnrctl status output

  • Getting ORA-12514 errotr while switchover using DGBROKER

    Hi ,
    Please see the error log.
    DGMGRL> switchover to dgtest1dr1;
    Performing switchover NOW, please wait...
    Operation requires shutdown of instance "dgtest1" on database "dgtest1"
    Shutting down instance "dgtest1"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires shutdown of instance "dgtest1dr1" on database "dgtest1dr1"
    Shutting down instance "dgtest1dr1"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "dgtest1" on database "dgtest1"
    Starting instance "dgtest1"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "dgtest1"
    You must start instance "dgtest1" manually
    Operation requires startup of instance "dgtest1dr1" on database "dgtest1dr1"
    You must start instance "dgtest1dr1" manually
    Switchover succeeded, new primary is "dgtest1dr1"
    What could be the cause?

    Hi Naveed,
    Still iam getting the same error.
    I am pasting the Tns-entry for both the primary & standby:
    dgtest1 =
    (DESCRIPTION =
    (SDU=32767)
    (MDU=32767)
    (TDU=32767)
    (RECV_BUF_SIZE=9375000)
    (SEND_BUF_SIZE=9375000)
    (ADDRESS = (PROTOCOL = TCP)(HOST = sdal201)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dgtest1_DGB)
    dgtest1dr1 =
    (DESCRIPTION =
    (SDU=32767)
    (MDU=32767)
    (TDU=32767)
    (RECV_BUF_SIZE=9375000)
    (SEND_BUF_SIZE=9375000)
    (ADDRESS = (PROTOCOL = TCP)(HOST = smro181)(PORT = 1522))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = dgtest1dr1_DGMGRL)
    Listener.ora in standby.
    SID_LIST_LISTENER_dgtest1dr1 =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = dgtest1dr1_DGMGRL)
    (ORACLE_HOME = /apps/oracle/product/10.2.0.4)
    (SID_NAME = dgtest1dr1)
    (SID_DESC =
    (GLOBAL_DBNAME = dgtest1dr1_DGB)
    (ORACLE_HOME = /apps/oracle/product/10.2.0.4)
    (SID_NAME = dgtest1dr1)
    LISTENER_dgtest1dr1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (SDU=32767)
    (MDU=32767)
    (TDU=32767)
    (RECV_BUF_SIZE=9375000)
    (SEND_BUF_SIZE=9375000)
    (ADDRESS = (PROTOCOL = TCP)(HOST = smro181)(PORT = 1522))
    Listener.ora in primary.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = dgtest1_DGMGRL)
    (ORACLE_HOME = /fosappdalprod1/fos5/product/10.2.0.4)
    (SID_NAME = dgtest1)
    (SID_DESC =
    (GLOBAL_DBNAME = dgtest1_DGB)
    (ORACLE_HOME = /fosappdalprod1/fos5/product/10.2.0.4)
    (SID_NAME = dgtest1)
    LISTENER_dgtest1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (SDU=32767)
    (MDU=32767)
    (TDU=32767)
    (RECV_BUF_SIZE=9375000)
    (SEND_BUF_SIZE=9375000)
    (ADDRESS = (PROTOCOL = TCP)(HOST = sdal201)(PORT = 1522))
    Kindly help me on this.

  • Getting ORA-12514

    Hi,
    I am getting problem to connect my oracle 10g database with schema name:
    The error is ORA-12514 TNS:Listener does not currently know of service requested in connect descriptor.
    my Operating system : Windows Vista
    Oracle version : 10g
    my TNSNames.ora files:
    ORCL =(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    and my listener file is like:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    And I am using the SQL PLUS to connect the database.
    When I am giving the details as
    user name: scott password: tiger host string : orcl
    it is not accepting with hostring, but I am able to connect without of host string.
    Please can any one help to solve this problem.
    Regards,
    Sree
    Edited by: user12188008 on Nov 8, 2009 10:49 PM

    1st case (not able to access) I am providing details like:
    username: scott
    pw: tiger
    host string : orclYou're connecting at LISTENER
    1. Please check
    tnsping orcl
    Example:
    $ tnsping orcl
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
    2. on database... check your database/service database register in listener
    lsrnctl service
    Example:
    $ lsnrctl service
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    Edited by: Surachart Opun (HunterX) on Nov 9, 2009 2:26 PM

  • 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

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

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

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

  • DB nonresponsive with ORA-12514 after weeks of running fine

    I have seen many prior users complain about getting ORA-12514 after a reboot after installation, and looking at the suggestions, I couldn't find anything addressed a situation where the whole system works for a long period of time and then stops working.
    I have a working APEX installation that I can access over the web from remote clients
    I have a working JDBC connection that I can use from several remote clients.
    After several weeks/months of happily running, I no longer can access the apex website, and I can no longer access the db through the JDBC connection getting:
    ORA-12514, TNS:listener does not currently know of service requested in connect
    descriptor
    The Connection descriptor used by the client was:
    //###.###.###.###:1521/XE
    Going to look at Windows services, both OracleServiceXE and OracleXETNSListener are still running. To try and recover, I do the following:
    * Stop the db and start the db. (Which simply stops OracleServiceXE, and then starts both it and the listener)
    Doesn't fix it
    * Thinking that the listener might be the problem, I then stop the db, and also manually stop the listener. I then start both of the services
    Doesn't fix it
    * I reboot the computer
    Fixes it.
    What is different about rebooting the computer that could possibly fix this? Also, someone had suggested in another thread to look at the listener log in db_1/network/admin/listener.log. I don't know what db_1 is, but I have a oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN directory that does not have this log. If anyone has any insight into what this is, or what log I should look at to identify it, I would be greatly appreciative.
    Thanks,
    Dan

    Thanks!
    Ah, the alert log, that is a useful find. For those who don't know, you can find where the alert log is stored by doing the following:
    select value from v$parameter where name = 'background_dump_dest';
    I looked at the alert log, and i think it indicates that the process is running out of memory. Since it can run for a very long time without this, I'm assuming it's some kind of memory leak. Especially since I think the less I develop pages with APEX, the longer the system goes between crashing (That is only anecdotal). I looked at the .trc files that it spit out as well, but they seem to have internal stack traces and dumps. Where do I go from here? Is this something I post to an Oracle bug list? Below is the relevant section of the alert log:
    Tue May 27 18:00:52 2008
    Thread 1 advanced to log sequence 340
    Current log# 1 seq# 340 mem# 0: D:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\ONLINELOG\O1_MF_1_39DP20B8_.LOG
    Wed May 28 04:00:10 2008
    The value (30) of MAXTRANS parameter ignored.
    kupprdp: master process DM00 started with pid=26, OS id=3900
    to execute - SYS.KUPM$MCP.MAIN('SYS_EXPORT_FULL_01', 'MYUSERNAME', 'KUPC$C_1_20080528040025', 'KUPC$S_1_20080528040025', 0);
    Wed May 28 20:50:58 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_arc0_2060.trc:
    ORA-04030: out of process memory when trying to allocate 82444 bytes (pga heap,control file i/o buffer)
    Wed May 28 20:50:58 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_arc0_2060.trc:
    ORA-04030: out of process memory when trying to allocate 82444 bytes (pga heap,control file i/o buffer)
    Wed May 28 20:50:58 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_arc0_2060.trc:
    ORA-04030: out of process memory when trying to allocate 82444 bytes (pga heap,control file i/o buffer)
    Wed May 28 20:50:58 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_arc0_2060.trc:
    ORA-04030: out of process memory when trying to allocate 82444 bytes (pga heap,control file i/o buffer)
    Wed May 28 20:50:58 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_arc0_2060.trc:
    ORA-04030: out of process memory when trying to allocate 82444 bytes (pga heap,control file i/o buffer)
    Wed May 28 20:50:58 2008
    Master background archival failure: 4030
    Wed May 28 20:51:04 2008
    Process startup failed, error stack:
    Wed May 28 20:51:06 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_pmon_4052.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:06 2008
    PMON: terminating instance due to error 490
    Wed May 28 20:51:06 2008
    Error occured while spawning process J000; error = 490
    Wed May 28 20:51:06 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_lgwr_3964.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:06 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_dbw0_1748.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:06 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_mman_2128.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:06 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_q001_2200.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:07 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_ckpt_1288.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:08 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_q003_3424.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:14 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_reco_3524.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:14 2008
    Errors in file d:\oraclexe\app\oracle\admin\xe\bdump\xe_smon_1644.trc:
    ORA-00490: PSP process terminated with error
    Wed May 28 20:51:14 2008
    Instance terminated by PMON, pid = 4052
    Dump file d:\oraclexe\app\oracle\admin\xe\bdump\alert_xe.log
    Thu May 29 10:39:58 2008

  • TNS Listener -ORA-12514 error following database shutdown - Oracle 11g

    Hi
    I have hit a problem with my oracle development database.
    When in sqlplus I executed the shutdown command, but nothing happened for several minutes and it was just hanging. No messages were displayed to the screen. The only thing was to close the command window. When I open sqlplus again and enter in the user name password as sysdba I am getting ORA 12514 TNS Listener could not resolve service in descriptor. This is odd as I could log on before and use the database. So I thought that the services were still shutting down I waited, and using the Windows snap on tool for Oracle 11g, I restarted the services on the database, but this has had no effect.
    Even using EM made no difference because I couldn't log on to perform a startup or recovery.
    So, please does anyone know how I can fix this?
    Thanks

    user633278 wrote:
    Hi
    I have hit a problem with my oracle development database.
    When in sqlplus I executed the shutdown command, but nothing happened for several minutes and it was just hanging. No messages were displayed to the screen. The only thing was to close the command window. When I open sqlplus again and enter in the user name password as sysdba I am getting ORA 12514 TNS Listener could not resolve service in descriptor. This is odd as I could log on before and use the database. So I thought that the services were still shutting down I waited, and using the Windows snap on tool for Oracle 11g, I restarted the services on the database, but this has had no effect.
    Even using EM made no difference because I couldn't log on to perform a startup or recovery.
    So, please does anyone know how I can fix this?
    open Command Window & do EXACTLY as below; line for line
    sqlplus
    / as sysdba
    shutdown abort
    startup
    exit
    COPY command & results from above then PASTE all back here

  • ORA 12514 once again..

    Hello, I knew, there are thousends of topics similiar to mine. I read them all. Nothing works for me. And there i will discribe my problem: I created a Oracle database using Oracle SQL developer setting values :
    connection name: test,
    username: bob,
    password: qwerty
    Connection type: basic,
    role: defoult,
    Hostname: localhost,
    port: 1521,
    SID : orcl.
    Reason im writing all of this is that i rally did everything possible, and i hope that by providing each kind of data someone will be able to help me.
    My next step was downloading and instaling ODAC 11.2 Release 4 (11.2.0.3.0) with Oracle Developer Tools for Visual Studio.
    When i want make a connection to databese from my application using server explorer im entering following data:
    data source name: //localhost:1521/test
    user name: ADMIN
    password : qwerty
    connection name is being set automaticly.
    When im trying to test connection im getting ORA 12514... and here it is how i changed mine tnsname.ora:
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    orcl =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    )

    Have you tried?
    data source name: orcl
    user name: bob

  • Urgent -- ORA-12514.

    Hi,
    I restarted my database (RAC). After that I am getting ORA-12514 from second node while trying to connect username/pwd@cs, but it is working in first node.
    Can any body will help me.
    Regards,
    Kiran

    Hi,
    I am getting the following message:
    in 1 st node:
    ===========
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ETEFS-DB1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ETEFS-DB2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes) (FAILOVER = yes) (FAILOVER_MODE = (TYPE = select)
    (METHOD = preconnect) (RETRIES = 5) (DELAY = 3)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = KASTLE)))
    OK (150 msec)
    in 2nd node:
    ===========
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)
    (HOST = ETEFS-DB1-vip)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = ETEFS-DB2-vip)(PORT = 1521))
    (LOAD_BALANCE = yes) (FAILOVER = yes (FAILOVER_MODE = (TYPE = select)
    (METHOD = preconnect) (RETRIES = 5) (DELAY = 3)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = KASTLE)))
    TNS-12533: TNS:illegal ADDRESS parameters
    Regards,
    Kiran

  • Ora-12514: listener error in Toad

    Hi
    In my computer i installed oracle 10g.
    it is working forfectly. i am able to connect oracle server with sql * plus.
    to day i installed Toad software. when i am trying to connect with toad i am getting ora-12514 listener error.
    how can i solve this problem
    thanks in advance.

    Eat your heart out.
    Millions like you couldn't read the documentation and asked the same question
    http://forums.oracle.com/forums/search.jspa?threadID=&q=ora-12514&objID=f75&dateRange=all&userID=&numResults=15&rankBy=10001
    Sybrand Bakker
    Senior Oracle DBA

  • Ora-12514 - sqlnet.log states ora-12564

    Oracle 8.1.5 w/Patch level 02 applied
    I have come to the end of my rope. I have tried and tried to connect to my database using the following: sqlplus system/manager@mydbname and always get ora-12514. When I look at the sqlnet.log file I find:
    Tns error struct:
    nr err code: 0
    ns main err code: 12564
    TNS-12564: TNS:connection refused
    etc etc etc
    I turned trace on level 6 for the client and I find these items scattered about:
    nncpmlf_make_local_addrfile: construction of local names file failed
    niotns: Call refused: (DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12514)(ERROR_STACK=(ERROR=(CODE=12514(EMFI=4))))
    nioqper: error from nscall
    etc etc etc
    I am so frustrated. Somebody please help.
    Randy
    null

    Hi Randy,
    I got the same problem and I fixed it using the "netasst" (for
    solaris) or Net8 Assistant (for windows).
    Within the Assistant select your Service Naming (mydbname as in
    your exemple), in the right site check the "Use Oracle8i Release
    8.0 Compatible Identification" box. This will enable the SID
    field, enter there your "mydmname" and save this new
    configuration.
    Exit the Assistant and test your connect string.
    I hope this will fix your problem.
    Regards,
    Jeferson
    [email protected]

  • ORA-12514: TNS:listener - RMAN - Target Database

    Hi Pals,
    Today while configuring two of my machines (On same Network) for RMAN I'm facing some issues while connect to the Catalog Server and register a target database.
    Here are more details about the (Environment) -- machines:
    Machine 1 - ORCL (Catalog Server)
    Machine 2 - PRCL (Target Database)
    Both machines and in same network.
    Tnsping results: both machines are able to ping each other
    Unix Ping results: both machines are able to ping
    Listeners: Up and Running on both machines
    Names: Listeners (Both Machines)
    TNSnames: Created an for both machines in each others tnsnames.ora file.
    tnslsnr status: Connected Both Machines)
    OS: Linux Red Hat 5
    Db: Oracle 11gR2
    Status: DB are up and working good and both are in ARCHIVELOG Mode.
    Env: VMWARE Team (Version 6)
    So, while trying to connect to Catalog Server(DB Name: ORCL) from Target Machine (DB name: PRCL) I'm getting a TNS:Listener based error.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    [oracle@localhost ~]$ rman target / catalog rman/oracle90@orcl
    Recovery Manager: Release 11.2.0.1.0 - Production on Mon May 21 20:49:08 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    connected to target database: PRCL (DBID=459947553)
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04004: error from recovery catalog database: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    [oracle@localhost ~]$
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Please assist and let me know in case more details required.
    Thanks
    Prashant Dixit

    Hi Tychos/DMorgan,
    Below provided are tnsentries and listener.ora file contents from both of the machines.
    Yes, i'm using vmware (Team) and have 2 machines in the same network (1st ORCL - 2nd PRCL). Both of them are able to ping each other.
    First Machine 1 - ORCL Instance:
    *1. listener.ora file:*
    +++++++++++++++++++++++++
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    ADR_BASE_LISTENER = /u01/app/oracle
    ----> tnsnames.ora__
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.localdomain)
    PRCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = prcl.localdomain)
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Machine 2: PRCL Instance -
    listener.ora file
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    ---> tnsnames.ora file
    # tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    PRCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = prcl.localdomain)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost.localdomain)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.localdomain)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    I've tried several options with SERVICE_NAME and HOST name after your's and Morgan's post but no luck so far. Please let me know if need (*tnslsnr* status results as well)
    So, this is what i originally have on my machine and yes I'm still getting ORA-12514: TNS:listener error.
    Thank you guys for your attention.
    Please help.
    Thanks
    Prashant Dixit
    Edited by: OracleAnt ... on May 22, 2012 4:58 PM

Maybe you are looking for