Remote JDBC Connection Error

Hi
I am using from main() method to access jdbc.
Lookup is successful but I got the following error after that
My Code Snippet
Properties jndiCtxProp = new java.util.Properties();
                              jndiCtxProp.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl" );
                              jndiCtxProp.put(Context.PROVIDER_URL, "host:port");
               jndiCtxProp.put(Context.SECURITY_PRINCIPAL, "login");
                    jndiCtxProp.put(Context.SECURITY_CREDENTIALS, "password");
               Context initCtx = new InitialContext(jndiCtxProp);
               DataSource dataSource =
                    (DataSource) initCtx.lookup("jdbc/FLIGHTDATA");
               System.out.println("nFLIGHTDATA lookup successn"); //no problem upto this     
               conn = dataSource.getConnection();
I have used the following JAR's
logging.jar
sapj2eeclient.jar
exception.jar
jdbc20.jar
jta.jar
connector.jar
opensql.jar
opensqlapi.jar
opensqlcore.jar
sqljapi.jar
tc_sec_secstorefs.jar
Exception chain is
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: Could not instantiate class com.sap.sql.connect.OpenSQLDataSourceImpl.
     at com.sap.engine.services.dbpool.cci.ConnectionFactoryImpl.getConnection(ConnectionFactoryImpl.java:59)
     at com.ibm.training.carrier.dbload.JDBCLoader.getConnect(JDBCLoader.java:63)
     at com.ibm.training.carrier.dbload.JDBCLoader.doLoad(JDBCLoader.java:29)
Thanks
Ananda

Hi anand,
Is it not throwing u any error after u give catch statement also?
<b>try()
coding for DB
catch(Exception e)
wdComponentAPI.getMessageManager.raiseException("Exception :" +e);
}</b>
Even this din work?
http://help.sap.com/saphelp_erp2005/helpdata/en/de/7d77f8714b4ef080f2219d7d968008/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/70/a19cc472e72c4481172909938578fc/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/91/ccbf560ecc4e2fb99b09a5e7bce95e/frameset.htm
Hope this helps u,
Regards,
Nagarajan.

Similar Messages

  • 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

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

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

  • 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

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

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

  • How to have remote jdbc connection to timeten?

    I think our admin have set up a timeten daemon , can I connect it remotely using JDBC connection? How the connection should be? Is it like
    jdbc:timesten:192.168.1.2:dsn=my_dsn
    ??

    To create a JDBC connection, you need to specify a TimesTen connection URL. The format of a TimesTen connection URL is: </br></br>
    jdbc:timesten:{direct | client}:dsn=DSNname;[DSNattributes;]
    </br></br>
    For example, to create a client connection to the demo data store, the URL looks similar to the following:
    String URL = "jdbc:timesten:client:dsn=demoCS";
    </br></br>
    For more information, please refer to the section "Connecting to a TimesTen data store" in the Oracle TimesTen In-Memory Database Java Developer's and Reference Guide.

  • 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

  • Remote Database connection error on local database while running a procedur

    Dear Gurus,
    I am trying to run a procedure to grant Select Access to all objects of a schema to all schema but getting below error messages:
    Error report:
    ORA-02019: connection description for remote database not found
    This is on local database and all required privileges have been given to run this procedure but I dont understand why this error is being thrown every time. I am able to fetch all the tables directly (i.e. SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID')
    Kindly let me know if you have any solution.
    Procedure detail:
    declare
    sqltxt varchar(250);
    cursor course_det is
    SELECT object_name FROM user_objects where OBJECT_TYPE IN('TABLE','VIEW','MATERIALIZED VIEW') AND STATUS='VALID';
    v_objnm user_objects.object_name%type;
    begin
    open course_det;
    loop
    fetch course_det into v_objnm;
    exit when course_det%notfound;
    sqltxt :='GRANT SELECT ON ' || v_objnm|| ' TO public with grant option';
    EXECUTE IMMEDIATE sqltxt ;
    end loop;
    end;
    System detail:
    Oracle 11.2.0.3/Linux 5.3
    Ragards.
    Edited by: 877938 on Mar 20, 2013 12:27 AM

    Hi,
    It seems you are fetching records from one database to other. for that you need to create dblink for that.
    Create dblink first and then try to fetch records using that dblink.
    ORA-02019: connection description for remote database not found
    Cause: An attempt was made to connect or log in to a remote database using a connection description that could not be found.
    Action: Specify an existing database link. Query the data dictionary to see all existing database links. See your operating system-specific Net8 documentation for valid connection descriptors. 

  • Error in adapterlog: JDBC connection error

    Hi Experts,
    I am getting this error during database connection to the database URL 'jdbc:sqlserver:// <servername>:1433;database=HRBD' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://<servername>:1433;database=HRBD': com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host  has failed. java.net.ConnectException: Connection timed out'
    I am able to connect this server from Microsoft SQL Server2005(Which does not require the port number) but when I am trying to connect from PI JDBC sender adapter ,I am getting this error.
    It is a SQL Server.JDBC driver seems ok(com.microsoft.sqlserver.jdbc.SQLServerDriver) because I connected the Staging database server from PI but unable to connect to this production database.
    After starting the channel ,after 5-7 minutes I am getting this error.
    Need your help on urgent basis!!
    regards
    Anupam

    Anupam Ghosh wrote:
    Hi Navin,
    >
    > I made a telnet test from putty giving the server name and port number and it showed me the "connection timed out".
    > But I made telnet test to other database which resulted in successful connection.
    > So is it a firewall issue with that particular databse?
    > In that case only network team of that databse can handle this issue?
    >
    > Thanks,
    > Jaydeep
    Few things that mght help u 
    1. Check the port no for the DB that is getting timed out. .check
    2. Disable the firewall. and check
    3. Consult the N/w and the DB team.. .telling clearly the issue
    Good Luck
    XA

  • Oracle JDBC Connection Error code 12505 in J2EE

    Hi All,
    I'm in a great problem.Could not connect my J2EE server to my Oracle database server.
    My config/resource.properties file as follows
    ================================
    jdbcDataSource.5.name=jdbc/iisdb
    jdbcDataSource.5.url=jdbc:oracle:thin:@128.51.12.33:15 21:iisals.rsapps;create=true
    jdbcDriver.1.name=oracle.jdbc.driver.OracleDriver
    My config/default.properties file as follows
    ================================
    jdbcDatasources=jdbc/iisdb|jdbc:oracle:thin:@128.51.12.33:1521:iisals.rsapps
    Deployment is successful but while running the application through browser the error is as follows
    =======================================
    javax.ejb.CreateException: java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    which is for either SID identification problem or TCP/IP
    port problem.
    But from my PC the same database can be connected through sql plus.
    So I am n't getting where is the problem ??????
    Whether any properties file has to be changed ???
    Can anyone help me in this regards,

    Hai everybody,
    I do have the same problem. I am trying to connet to the oracle8.1.7 database in linux machine from windows98. I am able to connect to the database thro' sqlplus, but when i try to connect using JDBC i am getting the follg error :
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNU
    M=135294976)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    can any one rectify this problem. I checked even java.policy file. Everything seems to be ok.
    Thx & regards
    jagan

  • 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

Maybe you are looking for

  • How to Make All Events in One Calendar Have Alerts Automatically

    I am a college student majoring in engineering, which means I always have lots of homework due at various times. So to help me keep better track of when my assignments are due, I have started putting the due dates into my calendar. The only problem w

  • Unable to install Flash on windows XP Pro. SP2 Limited/Power user

    I have a windows Xp pro sp 2. power user login. I am not able to install flash. No error message, but it says IE Blocked the flash. I don't know how can i install. Administrator login I can install but it wont work in user or power user login. Please

  • Excel 2013 hangs when previewing xls file made by Reporting Server 2008

    Hi all. I have a unusual error in excel 2013. We have a homepage that delivers statics to our users and there you can choose to export the webpage to a xls file via SQL ReportingServer 2008. The thing is when I open this exported file in Excel and hi

  • SOAP to IDOC and Control record

    Hi I am doing SOAP to IDOC scenario and we are using XSLT mapping in our scenario. In the mapping we dont want to hard code any IDOC control record values..can some one explain how to proceed with this. We tried the following scenarios. 1) We hard co

  • Document Form Settings

    Is there a quick way to copy over the Document Form Settings for multiple users at the same time? thx, Richard