JDBC Connection Error ORA-12514

Hi all,
I am trying to connect to an Oracle database on my workstation. I am
running Red Hat WS 4.x.
The odbc string I am using is this:
jdbc:oracle:thin:@//localhost:1521/danoracle
I am getting the following error:
Error getting JDBC connection using driver
'oracle.jdbc.driver.OracleDriver' to database at
'jdbc:oracle:thin:@//ddschwitrh4.er.xxxx.gov:1521/danoracle' for user
'satin': 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

It looks like the spam filter does not like the copyright line of the output in both commands.
[oracle@ddschwitrh4 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-FEB-2011 11:21:31
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 03-FEB-2011 11:00:55
Uptime 25 days 0 hr. 20 min. 35 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/ddschwitrh4/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ddschwitrh4.er.xxxx.gov)(PORT=1521)))
Services Summary...
Service "danoraclXDB.er.xxxx.gov" has 1 instance(s).
Instance "danoracl", status READY, has 1 handler(s) for this service...
Service "danoracle.er.xxxx.gov" has 1 instance(s).
Instance "danoracl", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@ddschwitrh4 ~]$ lsnrctl services
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 28-FEB-2011 11:22:32
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
Services Summary...
Service "danoraclXDB.er.xxxx.gov" has 1 instance(s).
Instance "danoracl", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: ddschwitrh4.er.xxxx.gov, pid: 20456>
(ADDRESS=(PROTOCOL=tcp)(HOST=ddschwitrh4.er.xxxx.gov)(PORT=11097))
Service "danoracle.er.xxxx.gov" has 1 instance(s).
Instance "danoracl", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:31020 refused:0 state:ready
LOCAL SERVER
The command completed successfully

Similar Messages

  • Connection error ORA-12514

    Ive recently installed Oracle 10g on my Windows XP and was able to connect.
    When i did a shutdown immediate and tried to connect again as a sysdba i get an error:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    Did a few basic checks like Oracle services, listener and all seems up and running. As im studyin Oracle 10g currently, please explain me in simple language meand guide to what i should do to resolve this problem. Any help is much appreciated!

    Sorry I did understand your question after I replied.
    As for your first point. Output in Command Prompt
    =====================================================
    SQL> conn / as sysdba
    Connected.
    SQL> exit
    Disconnected from Oracle Database 10g Release 10.2.0.1.0 - Production
    C:\Documents and Settings\Nitesh>sqlplus /nolog
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun May 13 15:44:01 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn sys@orcl as sysdba
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    ==================================================
    Also i get the same error when i connect via the web to iSQL Plus
    Asfor your second point, Yes all is in Started status even after stopping the Listener and my services for 'OracleServicesORCL' Still same error as above in my command prompt and via web too.
    A question for you, in my TNS file you can see my ' (SERVICE_NAME = orcl)' and in my LISTENER file 'SID_NAME = PLSExtProc'. Do these two have to match when the listener listens for a connection?
    Any fix for my ongoing issue??. Thanks for your effort.

  • 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

  • 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

  • 10g Installation and Error : ORA-12514 : Listerner cant recog. service requ

    Hi,
    I installed 10g, and trying to start sql plus. I entered
    username: orcl
    password: my own password
    host string: name of my computer
    I am getting the error: ORA-12514: TNS: Listener does not currently know of service orequested in connect descriptor.
    I started the services and tried again but same problem.
    I also tried system and sysman as username, w/o a password and included my computer name, but still facing the same problem.
    Any thing else I should do besides uninstalling and reinstalling ?
    Thanks

    Where did the user name orcl come from? It certainly is not going to be there unless you logged in with a DBA account and created it: Did you?
    So back to basics ... what version of Oracle did you install? 10g is a marketing label not a version number. It is likely something between 10.1.0.2 and 10.2.0.4.
    Second how did you install the database? With the Oracle Universal Installer or with a script? Were there any error messages?
    Have you checked the installation log?
    Has it ever worked in the past and is now broken or has it never worked?
    Is the listener running? How did you check?
    When you say "I started the service" you are in what operating system and you started what service and how?
    My guess, and it is only a wild guess given how little information you provided, is that there is an issue in your listener.ora and/or tnsnames.ora files: Post them along with the value you are entering as "Host" when you try to log in.
    Again just a guess ... the user name should be SYSTEM, the password whatever you entered, and the Host "orcl."

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

  • ERROR   ORA-12514: TNS: unable to start extract process

    Hi Experts,
    I have installed Oracle Golden Gate in the below environment.But unable to start extract process
    Primary site (source): This is production DB and up and running.
    RAC 2 nodes
    Oracle RAC 11.2.0.1.0
    ASM
    Oracle GoldenGate 11g Release 1 (11.1.1.0.0)
    Enterprise Linux Server release 5.5 (Carthage)
    Processor Type x64
    OS 64 bit
    target Site (destination):
    Standalone single server - Non RAC
    Oracle version 11.2.0.1.0
    ASM
    Oracle GoldenGate 11g Release 1 (11.1.1.0.0)
    Enterprise Linux Server release 5.5 (Carthage)
    Processor Type x64
    OS 64 bit
    Getting below error in logs while starting extract process:
    RECOVERY: reset to initial or altered checkpoint.
    2012-08-05 10:34:10  ERROR   OGG-00868  Oracle GoldenGate Capture for Oracle, aaa.prm:  Attaching to
    ASM server asm: (12514) ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor.
    2012-08-05 10:34:10  ERROR   OGG-01668  Oracle GoldenGate Capture for Oracle, aaa.prm:  PROCESS
    ABENDING.[oracle@ ggate]$
    Getting below error while connecting with asm instance directly:
    [oracle@ admin]$ sqlplus sys@asm as sysasm
    SQL*Plus: Release 11.2.0.1.0 Production on Sun Aug 5 11:16:11 2012
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Enter password:
    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    [oracle@ ~]$ tnsping asm TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 05-AUG-2012 11:55
    :42
    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 = xxx-
    scan)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = ASM) (I
    NSTANCE_NAME = +ASM1)))
    OK (0 msec) Any help Please ?
    Regards
    LazyDBA
    Edited by: LazyDBA11g on Aug 5, 2012 12:14 AM
    Edited by: LazyDBA11g on Aug 5, 2012 11:25 PM
    Edited by: LazyDBA11g on Aug 12, 2012 4:36 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hello JK,
    Thanks a lot for specific response.
    SQL> select INST_ID, NAME, VALUE from gv$parameter where name like '%_listener%';
    INST_ID NAME VALUE
    1 local_listener (DESCRIPTION=(ADDRESS_LIST=(AD
    DRESS=(PROTOCOL=TCP)(HOST=xxx_
    data1-vip)(PORT=1521))))
    1 remote_listener xxxdata-scan:1521
    2 local_listener (DESCRIPTION=(ADDRESS_LIST=(AD
    DRESS=(PROTOCOL=TCP)(HOST=xxx_
    data2-vip)(PORT=1521))))
    2 remote_listener xxxdata-scan:1521
    If I  add REMOTE_LISTENER pointing to SCAN ip address, Does it require DB bounce ? (Its production DB)
    Regards,
    LazyDBA
    Edited by: LazyDBA11g on Aug 10, 2012 12:01 PM
    Edited by: LazyDBA11g on Aug 12, 2012 4:48 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

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

    My Data base in Linux box, I have default SID as ORCL, and i have created 3 more instances of DB (TST1,TST2 and TST3) . As long as my system has not restated, I am bale connect to the instances. Once my system restated i am unable to connect to the new instances of DB.. Pl adivice..Thanks..
    In sqlplus: username/password @ ORCL - working fine...
    username/password @TST1 or other services ...i am getting ..error .. ERROR: ORA-12514: TNS:listener does not currently know of service requested
    I have created all instances of DB by using below command:
    dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname TST1 -sid TST1 -responseFile NO_VALUE -characterSet AL32UTF8 -memoryPercentage 40 -emConfiguration LOCAL
    Edited by: user10980939 on Jul 20, 2011 2:16 PM

    -- Below is my tnsnames.ora and listner.ora files....Pl let me know how to add different ports...
    cat tnsnames.ora
    # tnsnames.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    LISTENER_BHPT =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    TFOCUS =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TFOCUS)
    BDO_PDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.153)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = BDO_PDB)
    LISTENER_BDOT =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    LISTENER_TFOCUS =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    BHPT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = BHPT)
    BDOAIX61 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.224)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = bdo)
    BDOT =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = BDOT)
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    Listner.ora file
    [oracle@WBE07180 admin]$ cat listener.ora
    # listener.ora Network Configuration File: /home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = ORCL)
    (SID_NAME = ORCL)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.245)(PORT = 1521))
    ADR_BASE_LISTENER = /home/oracle/app/oracle

  • Can't deploy - error ora-12514

    Hi,
    I've got problem. During deploying some errors occured:
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    </NAMESPACE>
    RUNTIME_SERVICES_DEBUG [WhValidationGenerationTransaction] DeploymentSpecificati onImpl.addToUnitSpecificationImplArrayList: created UnitSpecification for Deploy mentAdapterName DDLDeployment StoreUOID= 8FF70863EE62307EE043A9B6BF4B307E Action = 1 FCO list= EXT_TAB_STMT_KL,SOME_NAME__REJECTED_ROWS_LOCATION_0,SOME_NAME__EXT_TAB_LOGS_LO CATION,SOME_NAME__STMT_LOCATION_0,
    Notification (Unit): start SOME_NAME_DATA_LOCATION (Create) - 0 (Adapter=DDLDeploy ment Location=SOME_NAMEDATA_LOCATION)
    Notification (Message): Listener refused the connection with the following error :
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    Notification (Message): RPE-01008: Recovery of this request is in progress.
    Notification (Message): Listener refused the connection with the following error :
    ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
    Notification (Unit): complete SOME_NAME_DATA_LOCATION (Create) - 0 (Adapter=DDLDep loyment Location=SOME_NAMEDATA_LOCATION)
    MEM:GenerationValidationService:internalCompile:after transaction:U: 126938816%
    If I test connection in Connection Explorer on SOME_NAME_DATA_LOCATION it comes with Successfull.
    Listener is in ready state and connection with ie toad works.
    Can somebody give me some clues?
    PS. Sorry for my English.

    check if this helps:
    Cause
    Oracle Workflow software was installed but the packages/repository have not been created.
    RPE-002053 indicates that Oracle Workflow Installation is incomplete and OWF_MGR schema should not be empty.
    Solution
    1) From Oracle Workflow ORACLE_HOME:
    - Run $ORACLE_HOME/wf/install/wfinstall.csh
    - Follow Oracle Workflow Configuration Assistance screen to install Workflow packages under OWF_MGR schema.
    2) Review if there is any error after running the script.
    3) Re-deploy OWB Process Flow.
    Edited by: Darthvader-647181 on Mar 6, 2009 2:28 AM

  • Deployment Error ORA-12514

    I have the following problem:
    After a failed deployment the deploy status of the project is failed, with the error:
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.
    I'm using Oracle 10g Release 1 and Oracle Warehouse Builder 10g Release 1
    I've read several threads already about the same error message, but none of the provided solutions worked for me. I've checked the tnsnames.ora files for the service names which should be correct. The runtime repository connection I've created should work because I'm able the start the editor for the runtime repository connection.
    Anyone got any suggestions for what the problem could be?
    MIS-a

    Hello,
    Have you looked at the TNSNAMES.ORA file in the ORACLE_HOME of the instance where your OWB Runtime is installed?
    Check that the registered location (in Deployment Mgr) of your target matches the TNSNAMES.ORA entry and also matches the real target instance location.
    I believe that the runtime environment instance's TNSNAMES.ORA is used to resolve the registered target location, not your design client TNSNAMES.ORA.
    [Last minute addition: It might be the design repository instance you need to check, not the runtime repository - we have all in one instance, so I'm not sure exactly where the target location is resolved]
    Regards, Hans Henrik

  • ADF: Gracefully handling JDBC connection errors?  Part II

    Hi gang
    I while back I posted a forum post to find a solution to "display a specific web page when the JDBC connection drops out on our ADF application, specifically the following error: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection"
    ...you can see the original post here:
    Re: ADF: Gracefully handling JDBC connection errors?
    For the life of me I can't get this to work now. It appears I can't redirect to another page during the call to reportException. I've had a play with different methods of redirecting, as seen in the following code sample:
    public class ErrorHandlerImpl extends DCErrorHandlerImpl {
      public ErrorHandlerImpl() {
        super(true);
      @Override
      public void reportException(DCBindingContainer dCBindingContainer, Exception exception) {
    //    try {
          String message = exception.getMessage();
          if (message.indexOf("JBO-26061") >= 0) {
            // Method 1
            FacesContext fc = FacesContext.getCurrentInstance();
            UIViewRoot viewRoot =
            fc.getApplication().getViewHandler().createView(fc, "faces/errorPage.jspx");
            fc.setViewRoot(viewRoot);
            fc.renderResponse();
            // Method 2              
            // FacesContext fc = FacesContext.getCurrentInstance();
            // fc.getApplication().getNavigationHandler().handleNavigation(fc, null, "goError");
            // fc.responseComplete();
            // Method 3 - required IOExcepition handler
            // FacesContext.getCurrentInstance().getExternalContext().redirect("faces/errorPage.jspx");
          } else
              super.reportException(dCBindingContainer, exception);
    //    } catch (IOException e) {
    }... with no success.
    Has anyobody any other solutions or advice on getting this to work?
    Your help appreciated.
    Thanks & regads,
    CM.
    PS. JDev 11gR1 ADF BC + ADF Faces RC

    Hi Frank
    Yep, I' tried redirect, that was method 3 (you can see all 3 methods I've attempted, last 2 are commented out).
    With the declarative ADFc exception handler, problem is it's a catch all, not specifically for JBO-26061. Can you think of a way I can tailor fit it for JBO-26061 with a custom message "Database down"?
    In addition the exception handler is not consistently called. As example, if you're moving between pages rather than operating on 1 page, the standard af:messages error dialog is shown if the db connection has been dropped, rather than navigating to the exception handler page. As such it seems the DCErrorHandlerImpl.reportExceptions is the better chokepoint to work from.
    Cheers,
    CM.

  • Error ORA-12514 Product = RDBMS80 | Help Please!!!

    Hi!! i have this error when i try to execute a fmx... i have oracle forms 6i and Database 10g!
    it works fine some days but today have crashed!!
    Why i get this error??
    This is my listener.ora:
    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 = Ignacio1)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    My 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)
    SQLNET.AUTHENTICATION_SERVICES = (NONE)
    and my tnsnames.ora:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Ignacio1)(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)
    I have Windows Vista.
    Edited by: JuaNiNNaio on 09-feb-2009 22:59

    Your listener.ora file doesn't list any db services, so you must be depending on database self-registration with the listener, and given that it "used" to work, I assume that self-registration is fundamentally working.
    Is it still broken? If so, note what ORA-12514 means. (You <b><i>did</i></b> look it up, didn't you??)
    "TNS:listener does not currently know of service requested in connect descriptor"
    So, on the database server, what do you see when you check the listener status?
    c:\lsnrctl statusIt should list a service that matches the "service name" in the relevent tnsnames.ora entry on your client machine.
    You mention this is on "Vista". Please note that no Oracle rdbms product is certified on Vista Home_anything.
    Also, your subject says product = rdbms80, but then say you are running 10g. Which is it?

  • TNS listener error "ORA-12514: TNS:listener..."

    Hi all,
    I have a problem with my listener on Oracle 11.2.0.2.
    I am more of a developer than a DBA, and I do not have a DBA to consult, so I hope you can address me, please.
    I have 2 DB instances running on the same machine ORCL and ORCL2 on port 1521, both using the same listener "LISTENER" as well on port 1521.
    In my TNSnames I had to add yesterday as well a new entry to a DB (ORCL3) hosted on a different machine.
    Since then, I can connect to ORCL and ORCL3 without problem via sqlplus, but I get the below error when I connect to ORCL2:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor
    I think the answer is to have to separate listeners for ORCL and ORCL2, but I have had several failed attempts.
    Can you please advise on what I need to do? I have looked at various sites, but if you are not too experienced with listeners, they are not really very clear.
    Thanks

    Hi, thanks.
    ORANAMES:
    # tnsnames.ora Network Configuration File: C:\oracle\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    LISTENER_ORCL =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    ORCL2 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl2)
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.xxx.xxx.net)
    ORCL3 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1.2.3.4)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl.2.3.4)
    STATUS:
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date 28-JAN-2012 10:14:06
    Uptime 0 days 2 hr. 19 min. 26 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
    Listener Log File C:\oracle\diag\tnslsnr\xxx\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl.xxx.xxx.net" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB.xxx.xxx.net" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully

  • JDBC connection error -- unknown SID

    Hello,
    I am trying to run my first JDBC application (using the thin driver) -- the Oracle DMLSample example. But I am getting a connection error related to SID:
    "Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(PORT=1521)(HOST=127.0.0.1))(CONNECT_DATA=(SID=dmsdm)))"
    Here is my setup:
    I have started the listener -- here is the result of "lsnctl start" command:
    Starting /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qella.array.ca)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Here is the listener.ora file content
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 25-MAY-2007 09:46:36
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qella.array.ca)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    The application is built with JDevloper and tries to connect to the DB (located on the same Linux machine where the Oracle installed) with the following parameters:
    HostName = qella.array.ca
    SID = dmsdm
    Port = 1521
    UserName = hr
    Password = hr
    Here is the listener.ora file contents:
    # listener.ora Network Configuration File:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = qella.array.ca)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    Here is the listener.ora file contents:
    # tnsnames.ora Network Configuration File:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = qella.array.ca)(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)
    My questions:
    1. What is wrong/missing in my setup?
    2. In case I don't remember the SID -- how can I find it?
    Thanks very much!
    Mark.

    Mark,
    You asked:
    What is wrong/missing in my setup?Possibly nothing. My guess is the problem is with your code. Excuse me, but I couldn't find that in your post.
    You also asked:
    In case I don't remember the SID -- how can I find it?In one of the data dictionary views. The Oracle documentation will tell you which one.
    (I don't remember right now.)
    Note, however, that the connection URL you use in JDBC may contain either the SID or the service name and you have posted the service name, namely:
    (SERVICE_NAME = XE)For your information I have Oracle database express edition (XE) installed on my Windows machine. The connection URL I use to connect to the sample HR schema is:
    jdbc:oracle:thin:HR/hr@//localhost:1521/XEIf you haven't already done so, I recommend reading the Oracle documentation first, in particular the JDBC User's Guide and Reference.
    Good Luck,
    Avi.

  • ADF: Gracefully handling JDBC connection errors?

    Hi gang
    We've a use case to display a specific web page when the JDBC connection drops out on our ADF application, specifically the following error:
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    I've been researching solutions to this and came up with a near solution of placing the following entry in the application's web.xml file:
    <error-page>
      <exception-type>oracle.jbo.DMLException</exception-type>
      <location>/MyErrorPage.jsp</location>
    </error-page>This works okay but is a blunt mechanism as it captures all DMLExceptions which includes insert/update/delete failures, as well as the JDBC connection drop out.
    Has anybody come up with a better solution for handling JDBC connection drop outs?
    Thanks & regards,
    CM.
    PS. (JDev 11g build 5188, ADF BC + ADF Faces RC)

    Thanks John, that's the solution. For some reason I'd forgotten that DCErrorHandlerImpl exists in the controller layer, not the model layer, so it makes perfect sense to override it and do the redirect.
    Here's what I came up with:
    @Override
    public void reportException(DCBindingContainer dCBindingContainer,
                                Exception exception) {
        try {
            String message = exception.getMessage();
            if (message.indexOf("JBO-26061") >= 0) {
                FacesContext.getCurrentInstance().getExternalContext().redirect("faces/ErrorPageJDBCFailure.jspx");
            } else
                super.reportException(dCBindingContainer, exception);
        } catch (IOException e) {
    }The following OTN post shows some other methods to do the redirect: JSF forward Vs redirect
    Cheers!
    CM.

Maybe you are looking for

  • ITunes 8 won't recognize my ipod Classic 80GB (Spinning Beach Ball)

    I recently upgraded my iMac G5 to 10.5.5 and iTunes 8. When the first time I synced my iPod Classic after the upgrade, it erased everything on my iPod. Now when I start-up iTunes it works fine, however as soon as I connect my iPod I get the spinning

  • SQL Developer: Not able to view tables

    I am new to sqldeveloper and oracle products. I've recently installed sqldeveloper onto my pc, i am able to connect to the database but when i try and expand the tables item in the treeview i dont get the tables displayed and the error Warning, unhan

  • RE: Scheduling a Report automatically

    Hi Sap Guru's, I need to schedule a report Daily Morning 09:00 AM automatically, is it possible or not. If it is possilble please give me information on this. Thanks in Advance, KrishnaPrasad.

  • Extreme large in-clause

    I want do something like select * from table where . and id in ( list_of_many_ids ) list_of_many_ids contains a variable number of up to 10000 ids. I can build a dynamical sql-statement, putting up to 1000 ids in one in-statement and combine the in-s

  • Check field to InfoObject

    Hi, How to check field to InfoObject mapping, i mean how to identify particular field is exactly matching with corresponding InfoObject. For example, when i searched in Business content(BW) for Document number..lot of InfoObjects has come..so, how to