JDBC connection error to ORACLE in JSP

To connect to the Oracle database (using java server pages), we have installed the oracle client on web server box during the installation, it has installed jdbc classes also. We have put this classes in the Environment variable - path and class path. We have also put the same in class path of JVM (virtual server -> java tab -> configure jvm attributes) also. Still the connectivity with database is not getting established!!
The Error is mentioned below : (from error log file)
     "[08/Oct/2002:17:19:51] info ( 309): Internal Info: loading servlet /test/doctor8.jsp          
                                             // doctor8.jsp is the page, where we try to connect to the database. (the same page used to be working fine with our previous web server.)
[08/Oct/2002:17:20:04] info ( 309): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\iPlanet\Servers\https-web_test.wellcarehmo.com\config\..\ClassCache\_jsps\_test\_doctor8_jsp.java:31: Ambiguous class: java.beans.Statement and java.sql.Statement
     Statement st=null;
     ^
C:\iPlanet\Servers\https-web_test.wellcarehmo.com\config\..\ClassCache\_jsps\_test\_doctor8_jsp.java:123: Class <<ambiguous>>Statement not found in =.
                    st=con.createStatement();
                    ^
C:\iPlanet\Servers\https-web_test.wellcarehmo.com\config\..\ClassCache\_jsps\_test\_doctor8_jsp.java:123: Incompatible type for =. Can't convert java.sql.Statement to <<ambiguous>>Statement.
                    st=con.createStatement();
                    ^
C:\iPlanet\Servers\https-web_test.wellcarehmo.com\config\..\ClassCache\_jsps\_test\_doctor8_jsp.java:125: Class <<ambiguous>>Statement not found in void _jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse).
                    rs=st.executeQuery(strSql);
                    ^
4 errors, 1 warning
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
     at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
     at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
     at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
[08/Oct/2002:17:20:04] warning ( 309): Internal error: Failed to get GenericServlet. (uri=/test/doctor8.jsp,SCRIPT_NAME=/test/doctor8.jsp)

org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\iPlanet\Servers\https-web_test.wellcarehmo.com\config\..\ClassCache\_jsps\_test\_doctor8_jsp.java:31: Ambiguous class: java.beans.Statement and java.sql.Statement
Statement st=null;
You are declaring a variable st of type Statement and the compiler can't figure out whether you mean a java.beans.Statement or java.sql.Statement. Change your declaration to fully qualify the one you want:
java.sql.Statement st = null ; // for example

Similar Messages

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

  • 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

  • Oracle JDBC Connection Error ?

    Hi all .. i have JDeveloper9.0 and oracle database i have created the following page (which is the first !) to test the connection to oracle database,
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <%@ page import="java.sql.*"%>
    <%@ page import="oracle.jdbc.driver.*"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <%
    out.println("good things comes for the ones whos wait");
    // testing Database Connection
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@10.0.24.23:1513:test","ap1s","ap1s");
    Statement st = conn.createStatement();
         ResultSet rs= st.executeQuery("select * from XX_CNSLTNT");
         while(rs.next())
    System.out.println(rs.getString(1));
    %>
    <form method="POST" action="untitled1.jsp">
    <p>
    <input type="text" name="T1" size="20">
    <input type="submit" value="Submit" name="B1">
    <input type="reset" value="Reset" name="B2">
    </p>
    </form>
    </BODY>
    </HTML>
    and its generating me this error, when i compile :
    Error: cannot access directory oracle\jdbc\driver; verify that directory is reachable from classpath and/or sourcepath
    so, does any one have a clue of the problem is ??
    thanx in advance

    Is ojdbc14.jar or classes12.jar in the Classpath?

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

  • Error deploying oracle report JSPs in Jdeveloper.

    Hi,
    I am trying to deploy and run a report created using oracle Report tool(comes with oracle 10g developer suite). I did the below steps.
    1. I created a web layout report in oracle reports tool.
    2. Open Jdeveloper (which comes in developer suite).
    3. Create a new project in Jdeveloper. selected to create new "report component" from new. Copied my oracle report to this jsp page.(Report run time was automatically added to the libraries of the project created)
    4. Run using embedded oc4j and report was successfully run.
    5. Created a deployment profile for WAR. Created a war successfully. Then created an EAR.
    6. Right click deployment profile and configured standalone oc4j connected(connection1). Tested the connection. The test connection was success.
    7. Then right clicked the deployement profile and clicked deploy to connection1.
    8. The EAR file was deployed but in the standalone OC4J, it is showing few errors.
    07/05/02 17:04:47 Error: oracle.reports.jsp.ReportTagExtraInfo
    07/05/02 17:04:47 Errors parsing jar:file:/D:/OC4J/j2ee/home/applications/webapp1/webapp1/WEB-INF/lib/reports_tld.jar!/META-INF/taglib.tld
    07/05/02 17:06:11 Error: oracle.reports.jsp.ReportTagExtraInfo
    07/05/02 17:06:11 Error: loading Tld's into cachedConfigTable: null
    Can anyone tell me how to correct this error?
    -regards,
    K
    6.

    I can successfully deploy the EAR after including the Report Runtime in the dependencies of the deployment profile in Jdeveloper. But I am getting the below error.
    Reports Error Page
    Wed May 02 18:35:53 GMT+05:30 2007
    java.lang.NullPointerException
    java.lang.NullPointerException
         at oracle.reports.rwclient.RWClient.getTrace(RWClient.java:1321)
         at oracle.reports.jsp.JspTagUtil.getRWClient(JspTagUtil.java:59)
         at oracle.reports.jsp.RwTag.setPageContext(RwTag.java:54)
         at oracle.reports.jsp.ReportTag.setPageContext(ReportTag.java:101)
         at oracle.jsp.runtime.OracleJspRuntime.getTagHandler(OracleJspRuntime.java:1298)
         at MyReport.jspService(_MyReport.java:46)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    Any help?
    -K

  • JDBC Connect error on Linux: UnsatisfiedLinkError

    Hi,
    I'm running one of the sample JDBC programs
    provided by Oracle (This installation is on
    Linux system). This simple program tries to
    connect to Database after accepting all the
    parameters. When I run this program, I get
    the following error.(I'm using Java2).
    Any ideas/solution(s) would be appreciated.
    Rgds,
    $ java JdbcCheckup
    Please enter information to test connection to the database
    user: scott
    password: tiger
    database (a TNSNAME entry): ORCL.localhost
    Connecting to the database...Connecting...
    Exception in thread "main" java.lang.UnsatisfiedLinkError: make_c_state
    at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:148)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:103)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
    at java.sql.DriverManager.getConnection(DriverManager.java:453)
    at java.sql.DriverManager.getConnection(DriverManager.java:133)
    at JdbcCheckup.main(JdbcCheckup.java:43)
    null

    Hi again,
    now, as I found out how to get around the broken forum login, thank you, Dave, for your reply. You were right, the configuration was the problem.
    I did Naming.rebind("//localhost/MyServiceName", serviceObject); which worked well on Windows even when connecting remotely. On Linux I had to put the actual IP address of the machine to make it work, i.e. something such as Naming.rebind("//192.162.2.99/MyServiceName", serviceObject); ...simpler than I feared... ...just in case someone encounters similar trouble.
    Ulrich

  • JDBC connection error in Crystal Reporting through ESRI Dekho product

    Wow, I am so far out of my depth here I am not even sure I am in the correct forum.  I have recently started using the GIS software ESRI product Dekho (a web based browser basically) and the reporting tool is Crystal Reports.  The JDBC connection required for me to connect to data held in a corporate oracle db is failing with a driver error and I don't know how to troubleshoot it.  ESRI support seem to think it's a Crystal Reports issue.  If anyone has any idea what I am talking about please respond, including pointing me to a forum which might assist, if this one is not where I should be asking such a question.  Thanks in advance.

    Simon here from Esri Australia, I work in the support team for the Dekho product, that this client was having problems with.
    We established that our Dekho product was passing the relevant information over to Crystal and that Crystal was having issues connecting to a database due to an issue with Crystal not having the correct JBDC drivers installed.
    = Therefore we concluded that the client should get in touch with you to resolve these JDBC driver issues.
    The error in the report is:
    ['Failed to open the connection, Details:JDBC driver not found"|http://i7.photobucket.com/albums/y254/jak-c/Outlook1.jpg]
    We believe that the issue is specifically a Crystal Reports issue on connecting to an Oracle database. 
    If we take Dekho out of the equation, the issue is still apparent.
    We did some testing on Oracle XE and were able to get it to communicate with Crystal Reports ok.
    We had to make the following change:
    1. copied the database drivers from:
    C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib
    to
    C:\Program Files (x86)\Business Objects\Common\4.0\java\lib\external\
    2. Edit "C:\Program Files (x86)\Business Objects\Common\4.0\java\lib" to include the above JAR file into the classpath tag.
    We touch on this in [our own web-help|http://www.dekho.com.au/help/31/default.htm?turl=Documents%2Fconfigurecrystalreports.htm], although this is more specific to SQL Server.
    The client had problems setting up this Crystal Reports to Oracle link, due to drivers missing.
    Can you generate a support ticket for this client and assist her with getting CR drivers working with her version of Oracle?
    As a sidenote - Esri Australia is a distributor for Esri, and not sure if the OEM extends to us?
    We would like to get a better relationship with you on how to deal with Crystal related issues with our own product.
    For issues like the above, we would like to come up with a more efficient means for our clients to get resolutions to their issues, and if the issue stems to outside our product - a good process for our support team to log a ticket on behalf of our client and pass all the relevant info across, so that a solution can be resolved quickly.
    - Do you have a contact in Australia that we could talk to about this?
    Let me know if you need the clients contact details - I believe this is still an issue for her.

  • Configure JDBC connection ERROR: no ocijdbc9 in java.library.path

    ERROR: no ocijdbc9 in java.library.path
    step 6 is where I need help!? thanx.
    When configuring a database connection, I chose
    1. Oracle JDBC (connection type)
    2. Authentication (username/password of my D2K repository)
    3. Driver: oci8
    4. Hostname: pmurphy1 (my local machine where my db is)
    5. Port: 1521 default (odbc works on this)
    * 6. Enter custom JDBC url (? please help ?) left blank!!
    I really wanna get started with this cool toy!!!
    Cheers,
    Paully

    I am assuming you are using JDeveloper 3.2x
    Please see the online help for additional details.
    Search help for "JDBC Connection Properties" - With the
    quotations and you will find a page names "JDBC Connection
    Properties"
    This page contains the following info and additional links.
    -John
    ------------- COPIED FROM HELP ---------------
    Oracle JDBC-OCI8 Driver
    Use this type 2 driver when creating a Java application that
    runs against an Oracle8i server. This is a thick driver
    optimized for the Oracle8i database: it cannot be used with
    applets. This driver handles any database protocol (TCP, IPX,
    BEQ, and so on). It is required for applications which are run
    from the machine they are stored on. It can also be used against
    an Oracle7 database.
    This driver requires client software installation. The project
    must also include the correct version of the driver in a library
    and include no other Oracle JDBC library. This driver is
    included in the default Oracle JDBC library for all projects.
    The library is named Oracle 8.1.7 JDBC and it includes both the
    Thin JDBC and JDBC-OCI8 driver library components. For all OCI
    and type 2 JDBC drivers, see Connection Requirements for OCI and
    Type 2 JDBC Drivers.
    ------------- COPIED FROM HELP ---------------

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

  • Remote JDBC connect error; missing SecStore.properties

    Hi
    After creating the intial context for a remote JDBC connection, using a Java client, to the J2EE engine, when calling createConnection(), I get the following error on ver 6.4:
    com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.dbpool.exceptions.BaseResourceException: SQLException thrown by the physical connection:
    com.sap.sql.log.OpenSQLException: Error while accessing secure store: File "SecStore.properties" does not exist although it should..
    I can not find the file on the server, although what limited doco I can find suggests SecStore should be created at install time. Am I missing something here?
    Thanks, Leonard

    Tried, but no success. Am definitely connecting to jndi, getting the context etc. The issue seems to be here;
    Caused by: com.sap.security.core.server.secstorefs.FileMissingException: File "SecStore.properties" does not exist although it should.
            at com.sap.security.core.server.secstorefs.StorageHandler.openExistingStore(StorageHandler.java:372)
            at com.sap.security.core.server.secstorefs.SecStoreFS.openExistingStore(SecStoreFS.java:1946)
            at com.sap.sql.connect.OpenSQLConnectInfo.getStore(OpenSQLConnectInfo.java:803)
            at com.sap.sql.connect.OpenSQLConnectInfo.lookup(OpenSQLConnectInfo.java:784)
            at com.sap.sql.connect.OpenSQLDataSourceImpl.setDataSourceName(OpenSQLDataSourceImpl.java:206)
    Why is StorageHandler.openExistingStore trying to open SecStore.properties from the remote java client and not on the j2ee server? This makes no sense.
    Thanks

  • Sql server 2000 type4 driver for jdbc connection error

    hello,
    I am trying to connect m ms sql server 2000 database server with type 4 driver.But I am getting an connection error like *"Error Establishing Socket"* .Can any one please help me out?

    Well i personally prefer usage of open source MS SQL SERVER 2k jdbc driver called jtds instead of the driver provided by MS themselves(which is proproteriry) as i had similar problem which i personally encountered when i was using it.
    go through the below link for further info.
    http://jtds.sourceforge.net/
    REGARDS,
    RaHuL

  • Unable to start SAP due to the connection error with Oracle

    Dear All,
    We have done distributed installation. CI, Oracle has been installed successfully.
    But when we tried to connect the DB from CI. we are getting the error
    R3trans -d is giving the return code 00012,  when we tried to start system from CI.
    Following is the trans.log error
    $ more trans.log
    4 ETW000 R3trans version 6.09 (release 640 - 26.10.04 - 15:45:42).
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time   : 05.05.2009 - 18:03:30
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: R3trans -d
    4 ETW000  trace at level 2 opened for a given file pointer
    4 ETW000  [dev trc     ,00000]  Tue May  5 18:03:30 2009                              48  0.000048
    4 ETW000  [dev trc     ,00000]  db_con_init called                                    11  0.000059
    4 ETW000  [dev trc     ,00000]  create_con (con_name=R/3)                             40  0.000099
    4 ETW000  [dev trc     ,00000]  Loading DB library '/usr/sap/BSW/SYS/exe/run/dboraslib.o' ...
    4 ETW000                                                                              37  0.000136
    4 ETW000  [dev trc     ,00000]  load shared library (/usr/sap/BSW/SYS/exe/run/dboraslib.o), hdl 0
    4 ETW000                                                                            3493  0.003629
    4 ETW000  [dev trc     ,00000]  Library '/usr/sap/BSW/SYS/exe/run/dboraslib.o' loaded
    4 ETW000                                                                              18  0.003647
    4 ETW000  [dev trc     ,00000]  function DbSlExpFuns loaded from library /usr/sap/BSW/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              34  0.003681
    4 ETW000  [dev trc     ,00000]  Version of '/usr/sap/BSW/SYS/exe/run/dboraslib.o' is "640.00", patchlevel (0.32)
    4 ETW000                                                                             120  0.003801
    4 ETW000  [dev trc     ,00000]  function dsql_db_init loaded from library /usr/sap/BSW/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              20  0.003821
    4 ETW000  [dev trc     ,00000]  function dbdd_exp_funs loaded from library /usr/sap/BSW/SYS/exe/run/dboraslib.o
    4 ETW000                                                                              42  0.003863
    4 ETW000  [dev trc     ,00000]  New connection 0 created                              20  0.003883
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 00
    0, con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              23  0.003906
    4 ETW000  [dev trc     ,00000]  db_con_connect (con_name=R/3)                         25  0.003931
    4 ETW000  [dev trc     ,00000]  find_con_by_name found the following connection for reuse:
    4 ETW000                                                                              18  0.003949
    4 ETW000  [dev trc     ,00000]  0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000
    , con_max = 255, con_opt = 255, occ = NO
    4 ETW000                                                                              20  0.003969
    4 ETW000  [dev trc     ,00000]  Got ORACLE_HOME=/oracle/BSW/920_64 from environment
    4 ETW000                                                                             300  0.004269
    4 ETW000  [dev trc     ,00000]  -->oci_initialize                                     20  0.004289
    4 ETW000  [dev trc     ,00000]  Client NLS settings: AMERICAN_AMERICA.WE8DEC        4762  0.009051
    4 ETW000  [dev trc     ,00000]  Logon as OPS$-user to get SAPR3's password            29  0.009080
    4 ETW000  [dev trc     ,00000]  Connecting as /@BSW on connection 0 ...               22  0.009102
    4 ETW000  [dev trc     ,00000]  Allocating service context handle                     22  0.009124
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      13  0.009137
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server BSW (con_hdl=0,svchp=110791c98,svrhp=1107942f8)
    4 ETW000                                                                              67  0.009204
    4 ETW000  [dev trc     ,00000]  Assigning server context 1107942f8 to service context 110791c98
    4 ETW000                                                                           39616  0.048820
    4 ETW000  [dev trc     ,00000]  Allocating user session handle                        29  0.048849
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=110791c98,srvhp=1107942f8,usrhp=11079cd38)
    4 ETW000                                                                              24  0.048873
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1034
    4 ETW000                                                                            2415  0.051288
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=1,svrhp=1107942f8)
    4 ETW000                                                                              28  0.051316
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=110791c98,srvhp=1107942f8)
    4 ETW000                                                                              18  0.051334
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 1107942f8         142  0.051476
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000                                                                              25  0.051501
    4 ETW000  [dev trc     ,00000]  Try to connect with default password                  20  0.051521
    4 ETW000  [dev trc     ,00000]  Connecting as SAPR3/<pwd>@BSW on connection 0 ...
    4 ETW000                                                                              19  0.051540
    4 ETW000  [dev trc     ,00000]  Allocating server context handle                      11  0.051551
    4 ETW000  [dev trc     ,00000]  Attaching to DB Server BSW (con_hdl=0,svchp=110791c98,svrhp=1107942f8)
    4 ETW000                                                                              27  0.051578
    4 ETW000  [dev trc     ,00000]  Assigning server context 1107942f8 to service context 110791c98
    4 ETW000                                                                           33038  0.084616
    4 ETW000  [dev trc     ,00000]  Assigning username to user session 11079cd38          15  0.084631
    4 ETW000  [dev trc     ,00000]  Assigning password to user session 11079cd38          13  0.084644
    4 ETW000  [dev trc     ,00000]  Starting user session (con_hdl=0,svchp=110791c98,srvhp=1107942f8,usrhp=11079cd38)
    4 ETW000                                                                              22  0.084666
    4 ETW000  [dboci.c     ,00000]  *** ERROR => OCI-call 'OCISessionBegin' failed: rc = 1034
    4 ETW000                                                                            1858  0.086524
    4 ETW000  [dev trc     ,00000]  server_detach(con_hdl=0,stale=1,svrhp=1107942f8)
    4 ETW000                                                                              18  0.086542
    4 ETW000  [dev trc     ,00000]  Detaching from DB Server (con_hdl=0,svchp=110791c98,srvhp=1107942f8)
    4 ETW000                                                                              19  0.086561
    4 ETW000  [dev trc     ,00000]  Deallocating server context handle 1107942f8         123  0.086684
    4 ETW000  [dbsloci.    ,00000]  *** ERROR => CONNECT failed with sql error '1034'
    4 ETW000                                                                              24  0.086708
    4 ETW000  [dblink      ,00419]  ***LOG BY2=>sql error 1034   performing CON [dblink#1 @ 419]
    4 ETW000                                                                              57  0.086765
    4 ETW000  [dblink      ,00419]  ***LOG BY0=>ORA-01034: ORACLE not available           18  0.086783
    4 ETW000                        ORA-27101: shared memory realm does not exist
    4 ETW000                        IBM AIX RISC System/6000 Error: 2: No such file or directory [dblink#1 @ 419]
    2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'BSW'"
    Could you please provide us the relavant solution.

    hi
    > 4 ETW000  [dblink      ,00419]  ***LOG BY0=>ORA-01034: ORACLE not available           18  0.086783
    Check for your ORACLE_HOME and ORACLE_SID
    ORA-01034 is thrown during you attempt to upgrade because there is an invalid entry in one of the following files:
    /etc/oratab
    /var/opt/oracle/oratab
    Regards,
    Nitin Salunkhe

  • Oralce 10G2 JDBC Driver - Error Loading oracle.jdbc.driver.OracleDriver

    When attemping to use the 10G2 jdbc driver the following NoClassDefFoundError is encountered:
    Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: oracle.jdbc.driver.OracleDriver
    <<No stacktrace available>>
    Caused by: java.lang.ClassNotFoundException: oracle.security.pki.OracleWallet not found in [file:./, file:ojdbc1410g2.jar, file:/usr/share/java/libgcj-3.4.4.jar, file:./, core:/]
    <<No stacktrace available>>
    The error does not occur when reverting back to the 9 jdbc driver. Does anyone know what is causing this behavior?
    Regards,
    Paul

    Paul,
    Actually, class "oracle.jdbc.OracleDriver" extends class "oracle.jdbc.driver.OracleDriver".
    So check the JAR files in the list displayed by your error message and see if any of them contain the [missing] class, for example:
    jar tvf ojdbc1410g2.jar oracle/jdbc/driver/OracleDriver.classGood Luck,
    Avi.

  • JDBC connect to remote Oracle, IOException,Help!

    I am trying to connect to remote Oracle 8.1.6 resides on IBM AIX server, the oracle SID is correct, and ping host address is also successful. also, downloaded JDBC driver classes12.zip from oracle...but i still encounter the IOException: Network adapter cannot establish connection!...could anyone tell me how to test whether the oracle's listener works...?
    i also tried to run the following piece of code on that IBM server, changed the host address to 'localhost', but still, the IOExcetpion:Network adapter cannot establish connection!...why? cos i am running the code on the server where Oracle resides.....
    great appreciation for anyone replies me.....the code is here:
    import java.io.*;
    import java.sql.*;
    import java.text.*;
    import oracle.jdbc.driver.*;
    public class viewtable
    Connection con;
    Statement st;
    public viewtable (String args[]) throws ClassNotFoundException,FileNotFoundException,IOException,SQLException
    url="jdbc:oracle:thin:system/manager@IP:1521:SID";
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    try
    con=DriverManager.getConnection(url);
    st = con.createStatement ();
    doexample ();
    st.close ();
    con.close ();
    }catch(SQLException e)
    System.err.println(e.getMessage());
    public void doexample () throws SQLException
    ResultSet rs = st.executeQuery("select * from sales");
    if(rs!=null) {
    while(rs.next())
    int a = rs.getInt("no"); System.out.println("NO = "+a);
    rs.close();
    public static void main (String args[])
    System.out.println ("Oracle Exercise 1 \n");
    try
    viewtable test = new viewtable(args);
    } catch (Exception ex)
    System.err.println ("Exception caught.\n"+ex);
    ex.printStackTrace ();

    with an RS/6000, don't you have a db admin ? he/she should know how to set up the listener properly.
    if you have to do it on your own, try the following things:
    - www.orafaq.com is often very helpful
    - search the web for "oracle listener" etc. A first goolg search gave me the following link: http://www.ibiblio.org/mdw/HOWTO/Oracle-7-HOWTO.html
    - check the files listener.ora and tnsnames.ora. They should be located somewhere in your oracle home direcotry on the server
    good luck
    PS: to start a listenter, type "startup" in the lsnrctl tool, maybe you can already see something.

Maybe you are looking for