Is the initial jdbc connection handshake secure?

My application needs to ensure that all passwords going through the network is encrypted, including that of the database user password when the application connects to the database.
My question is the initial call to get a database connection secure? i.e. is the database password encrypted first before sent over the network?
Can anyone confirm?

There's probably something in the Security documents somewhere, but I don't know where.
JDBC does the logon handshake exactly the same as OCI; the bits on the network are identical. Maybe there is something in the OCI documentation that answers your question. I suppose there could be something in the Security chapter of the Oracle JDBC Developer's Guide, but I don't recall anything.
Douglas

Similar Messages

  • I want the complete JDBC Connection details

    Hi
    I want to have a complete JDBC Connection like how to insert records, update/edit records and deleting records. Do u know a website or can anybody give an entire code having all the functions of JDBC.

    I'm a Nigerian diplomat. If you send me a check for $1000 USD I'll send you $1M and all those code samples.
    It'd be better for you to go read and try them yourself. They're not that hard.
    It'd also be better for you not to be so demanding. This is a volunteer forum, and nobody owes you anything. Your manners are appalling.
    %

  • Secure JDBC Connection

    Our application uses JDBC to connect to Sybase, Oracle and MSSQL databases. I do not see any way to encrypt the password. But the machine has IPSec installed. My questions are:
    Is the JDBC connection considered secure with IPSec installed
    If so, doe IPSec has to exist on both source and destination machines.

    LarryY wrote:
    Our application uses JDBC to connect to Sybase, Oracle and MSSQL databases. I do not see any way to encrypt the password. But the machine has IPSec installed. My questions are:
    Is the JDBC connection considered secure with IPSec installed The IP traffic would be secure.
    Whether that is good enough depends on your security policy and business needs.
    If so, doe IPSec has to exist on both source and destination machines.Of course.
    IPSec of course will require that you mandate the use of it. You will have no control of it in your code. You won't even be able to detect it.
    Obviously finding secure drivers would allow you to insure it at the code level.

  • Errors using weblogic sql driver: "No JDBC connection can be made because the transaction state is marked rollback"

    One of our customers starts to encounter this error message recently.
    We checked our log files. It seems that the error happens when
    to obtain a jdbc connection. Have anyone seen similar problems
    and knows how to fix it? thanks in advance.
    We are using weblogic server 6.1sp2, and weblogic sql type 4 driver.
    The functions that invoke the jdbc calls are stateless session bean
    methods with their transaction attributes marked as Required.
    There is no nested calls of these methods.
    A partial stack trace we obtained is as following:
    java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Marked Rollback
         at weblogic.jdbc.jts.Connection.getOrCreateConnection(Connection.java:586)
         at weblogic.jdbc.jts.Connection.prepareStatement(Connection.java:115)
         at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:135)
         at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:76)
    lixin

    Joseph Weinstein <[email protected]> wrote:
    >
    >
    YuanHui Liu wrote:
    Joe,
    We got the exact same error message. The error came after we got theJDBC connection,
    and trying to create statement off it.
    It occurs intermitently when we are running another standalone JAVAapp to do
    some end of day work, which results in the DB Server being very busy(90+%CPU
    usage) for about 5 minutes. We see a surge of requests to the WLSJDBC Connection
    pool. This would sometimes result in all our subsequent DB requeststo fail and
    lead to a crash.
    We are using WLS6.0SP1. I do not think there's a 30 seconds wait leadingto a
    connection timeout that caused this(rather it is the end effect).
    Can you give us a more detailed explanation? Is there a miscommunicationbetween
    our DB(Sybase12) and WLS?Hi. It looks to you like it's after you get the connection, but really
    it's when the server is
    gettng the pool connection. For performance/synchronization reasons we
    do a clever
    delay: When your code asks for a pool connection we quickly give you
    the pool wrapper,
    but we delay actually reserving the real underlying DBMS connection until
    your first
    real need for a connection, at your first JDBC call, such as createStatement()
    etc.
    It is while waiting for a pool connection long enough for the transaction
    coordinator
    to have timed you out before you ever get a chance. It's nothing to do
    with the
    DBMS or even JDBC, I believe. I think the weblogic server either has
    too few execute-threads
    and/or too few CPU cycles to do the work load.
    Okay, so there's a lazy initialization of the connection.
    From reading our log I believe our failur is immediate rather
    than waiting for 30+ seconds(the default setting) from the DB,
    the timeout occurred later as a result. At the time either because the DB Server
    is very busy.
    Since we are running WLS6.0 we have only one connection pool,
    we have defined a max of 150 threads in the pool. While this
    is happening the DB Server is being pinned by an overnight job,
    but the WLS Server is not busy at all. The DB and WLS resides
    on different physical boxes.
    We also have a thread dump from the WLS console when we rebooted the server, it
    showed that we are hanging on to the thread & jdbc
    connections after these exceptions has occurred instead of releasing them, note
    "16083"(~4.5 hours) seconds has passed:
    142 116222 Retry rollback request for tx: 'transaction=(IdHash=2963855,Name =
    [EJB UserManagerBeanImpl.signalICUserServletHeartBeat()],Xid=30643:8f3838f3709bf53d,Status=Rolling
    Back. [Reason = Unknown],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since
    begin=16083,seconds left=10,ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=started,assigned=server),SCInfo[server]=(state=active),properties=({weblogic.jdbc=t3://159.55.158.25:8005,
    weblogic.transaction.name=[EJB UserManagerBeanImpl.signalICUserServletHeartBeat()]}))'
    Scheduled Trigger
    So I would argue this problem actually chewed up resources on the WLS server.
    -Yuanhui Liu
    >>
    >>
    Thanks.
    -YuanHui Liu
    Joseph Weinstein <[email protected]> wrote:
    lixin wrote:
    One of our customers starts to encounter this error message recently.
    We checked our log files. It seems that the error happens when
    to obtain a jdbc connection. Have anyone seen similar problems
    and knows how to fix it? thanks in advance.
    We are using weblogic server 6.1sp2, and weblogic sql type 4 driver.
    The functions that invoke the jdbc calls are stateless session bean
    methods with their transaction attributes marked as Required.
    There is no nested calls of these methods.
    A partial stack trace we obtained is as following:
    java.sql.SQLException: No JDBC connection can be made
    because the transaction state is
    Marked Rollback
    at weblogic.jdbc.jts.Connection.getOrCreateConnection(Connection.java:586)Hi. This sounds like a JVM thread starvation issue, and/or a server
    load
    issue. What is
    happening is that the transaction is started, and times out beforethe
    SSB even gets to
    the first JDBC work. I would first verify that the customer is using
    the very latest JVM
    available for the machine.
    Joe Weinstein
    at weblogic.jdbc.jts.Connection.prepareStatement(Connection.java:115)
    at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:135)
    at weblogic.jdbc.rmi.SerialConnection.prepareStatement(SerialConnection.java:76)
    lixin

  • Weblogic 6.1 sp1 jdbc connection to SQL Srv 7; receiving resources not available

    We've been running some load balancing testing on our website and at the high end
    of the number of concurrent users, we begin to receive "QLException: java.sql.SQLException:
    weblogic.common.ResourceException: No resources available" this is usually around
    the 40 concurrent user mark. I've set the max JDBC connections to around 50,
    initial connections to 20, capacity increment to 2 and the shrink period to 1
    minute (though we've had that at 10, 15, and 59 minutes)...looking for suggestions
    on problems. Currently using wblogic.jdbc.mssqlserver4.Driver and weblogicis
    running on Linux

    Will Darton wrote:
    We've been running some load balancing testing on our website and at the high end
    of the number of concurrent users, we begin to receive "QLException: java.sql.SQLException:
    weblogic.common.ResourceException: No resources available" this is usually around
    the 40 concurrent user mark. I've set the max JDBC connections to around 50,
    initial connections to 20, capacity increment to 2 and the shrink period to 1
    minute (though we've had that at 10, 15, and 59 minutes)...looking for suggestions
    on problems. Currently using wblogic.jdbc.mssqlserver4.Driver and weblogicis
    running on LinuxHi. I would like to see the code that uses connections from the pool. If you code correctly,
    to always close a pool connection regardless of any exception, by the end of every user
    request, then you should need only as many connections in the pool as there are execute
    threads in the server. Do you have more than 50 execute threads?
    Joe

  • Open/total jdbc connections

    With Oracle9iR2 AS installed, I notice that there are always open JDBC connections. I explicitly close them from all my JSP files (and the statement and the resultset objects as well). Actually, the total JDBC connections are always 2 times the open JDBC connections.
    The DataSource class I use is com.evermind.sql.DriverManagerDataSource. Is this a problem? Will this be corrected in any future release?
    Thanx

    Interesting thread. Have also had problems with the connection pool (903 standalone).
    One problem in particular is that if min-connections is used, then those pool-connections are really never closed "physically". This means that a lot of open cursors are never released in the db (even though the "connections" used by the code from the pool are closed). Not so good under heavy load.
    Posting a snippet from a connection pool entry we have. Maybe it will help some of you guys.
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="SomeDS"
    location="jdbc/SomeDBCoreDS"
    xa-location="jdbc/xa/SomeDBXADS"
    ejb-location="SomeDB"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="user"
    password="pwd"
    url="jdbc:oracle:thin:@127.0.0.1:1521:SOMESID"
    inactivity-timeout="300" <-- Will close connections after 300 sec of inactivity
    min-connections="0"
    max-connections="20" <-- Larger on prod machine of course
    stmt-cache-size="100"
    />
    I have experimented wildly with these settings and this is the most stable. Sure, it's nice to always have connections ready in the pool. But as I said. Open cursors WILL accumulate in your db if you use the min-connections set to a positive number (check your v$). This is our experience anyway. These settings have stopped us from getting db errors such as maximum open cursors exceeded and too many connections open using 903.
    Regards,
    Jonas

  • BI JDBC connection failure with MS SQL 2005 - but Portal JDBC is working

    I am a portal novice.
    I wanted to get tables in the visual composer. so i created the protal jdbc connection to MS SQL 2005. which is working fine.
    Later i found i need BI jdbc for retreving tables from sql server. when i followed all the steps in the how to document, my connection test is failing. below is the log.
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
      Results
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    can any help me there please.
    - Points will he awarded for inputs.
    thanks
    -ravi

    Swapnil,
    Thanks for the reply, but the thread is completely different from what i am looking for.
    can anybody throw some suggestion at my problem
    -ravi

  • Generic jdbc connection to hive missing tables

    hi i created the generic jdbc connection to hive .. i was able to establish the connection but for some reason i don't see the tables, any ideas why?
    ps.
    attaching screen shot with drivers list

    Intead of
    Class.forName("jdbc.odbc.JdbcOdbcDriver");
    do this
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Manu

  • JDBC connection w/Japanese server

    I have an English client doing the following JDBC connection to a Japanese server:
    m_connection = DriverManager.getConnection(
    m_connectionStr,
    m_user, m_password );
    This always results in a SQL exception with the following three messages:
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]???? 'MSSQL' ???????????????????????????????
    SQL State: HY000
    SQL Code: 4060
    [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]???? 'sa' ??????????????
    SQL State: 28000
    SQL Code: 18456
    [Microsoft][SQLServer 2000 Driver for JDBC]An error occured while attempting to log onto the database.
    SQL State: 08001
    SQL Code: 0
    What do I need to do to get a connection and to send queries that are stored in English?
    Thanks,
    pds2

    The connection string is:
    jdbc:microsoft:sqlserver://10.4.10.34:1433;databaseName=MSSQL;
    I tried the following with the same bad results as before:
    java.util.Properties prop = new java.util.Properties();
    prop.setProperty( "user", m_user );
    prop.setProperty( "password", m_password );
    prop.setProperty( "characterEncoding", "utf8" );
    prop.setProperty( "useUnicode", "true" );
    m_connection = DriverManager.getConnection(
    m_connectionStr, prop );
    Will some variation of this work?

  • BC4J: Getting a JDBC Connection out of an Application Module.

    Hi all! Good Morning!
    I have an application that uses JasperReports to print some reports. The filling mechanism of JasperReports requires a JDBC Connection object to work. At present, i am using the ConnectionMetadata Object from the AM to get the JDBC URL and user name to create a new Connection with DriverManager.getConnection(), but there is no way to get the DB password. Is there any way to get the underlying JDBC Connection inside a method in the ApplicationModule? something like this.getJDBCConnection()? If so, does this method draws the connection from the AM Connection Pool, or is it a "stranded" connection?
    Thanks a lot! Your help is greatly appreciated!
    Thiago Souza

    Also see section 25.6 "Accessing the Current Database Transaction" in the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center.
    http://www.oracle.com/technology/products/adf/learnadf.html

  • TxDataSource vs JDBC Connection

    WLS Version: 7.0.
    We have noticed the DB related activity is VERY SLOW when using the connections
    from the TxDataSource compared to the direct JDBC Connections. And classes12.zip
    is in our server class path. I have noticed some related postings but I did not
    find any solution. Is there anything wrong with our config.
    This is our TxDataSource configuration.
    <JDBCConnectionPool
    CapacityIncrement="2"
    DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="10"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="oraclePool"
    Password="XXXXX"
    Properties="user=XXXXXX"
    RefreshMinutes="10"
    ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true"
    Targets="softfaceserver"
    TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="false"
    TestTableName="dual"
    URL="jdbc:oracle:thin:@XXX.XXX.XXX.XXX:1521:oracle"
    />
    <JDBCTxDataSource
    JNDIName="jdbc/softfaceDB"
    Name="Softface-DataSource"
    PoolName="oraclePool"
    Targets="softfaceserver"
    EnableTwoPhaseCommit="true"
    />

    Keshore wrote:
    WLS Version: 7.0.
    We have noticed the DB related activity is VERY SLOW when using the connections
    from the TxDataSource compared to the direct JDBC Connections. And classes12.zip
    is in our server class path. I have noticed some related postings but I did not
    find any solution. Is there anything wrong with our config.Hi, there's nothing wrong with the config. Where/how are you using JDBC connections?
    Are they in external client programs or are they in serverside code? Are you running
    UserTransactions, such as in transactional EJBs etc?
    Joe
    >
    This is our TxDataSource configuration.
    <JDBCConnectionPool
    CapacityIncrement="2"
    DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="10"
    LoginDelaySeconds="1"
    MaxCapacity="10"
    Name="oraclePool"
    Password="XXXXX"
    Properties="user=XXXXXX"
    RefreshMinutes="10"
    ShrinkPeriodMinutes="15"
    ShrinkingEnabled="true"
    Targets="softfaceserver"
    TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="false"
    TestTableName="dual"
    URL="jdbc:oracle:thin:@XXX.XXX.XXX.XXX:1521:oracle"
    />
    <JDBCTxDataSource
    JNDIName="jdbc/softfaceDB"
    Name="Softface-DataSource"
    PoolName="oraclePool"
    Targets="softfaceserver"
    EnableTwoPhaseCommit="true"
    />

  • Getting JDBC Connection exception... what is the problem

    I have connection problem and I get the following... Do you have any idea what it might be? Many thanks.
    [java] org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    [java] The last packet successfully received from the server was 82 milliseconds ago. The last packet sent successfully to the server was 82 milliseconds ago.
    [java] at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
    [java] at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:577)
    [java] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:641)
    [java] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:666)
    [java] at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:698)
    [java] at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:133)
    [java] at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:137)
    [java] at se.kth.ite.mss.KurserUtil.getSenasteValdaKurser(KurserUtil.java:71)
    [java] at org.apache.jsp.minasidor.kurser.nyaKurser_jsp._jspService(nyaKurser_jsp.java:91)
    [java] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    [java] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
    [java] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    [java] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    [java] at se.kth.ite.portal.ContextLoggingFilter.doFilter(ContextLoggingFilter.java:53)
    [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    [java] at java.lang.Thread.run(Thread.java:680)
    [java] Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
    [java] The last packet successfully received from the server was 82 milliseconds ago. The last packet sent successfully to the server was 82 milliseconds ago.
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
    [java] at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1118)
    [java] at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:107)
    [java] at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4553)
    [java] at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1330)
    [java] at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2312)
    [java] at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
    [java] at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
    [java] at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [java] at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
    [java] at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
    [java] at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
    [java] at java.sql.DriverManager.getConnection(DriverManager.java:582)
    [java] at java.sql.DriverManager.getConnection(DriverManager.java:185)
    [java] at org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection(DriverAdapterCPDS.java:205)
    [java] at org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS.getPooledConnection(DriverAdapterCPDS.java:150)
    [java] at org.apache.commons.dbcp.datasources.InstanceKeyDataSource.testCPDS(InstanceKeyDataSource.java:836)
    [java] at org.apache.commons.dbcp.datasources.SharedPoolDataSource.registerPool(SharedPoolDataSource.java:210)
    [java] at org.apache.commons.dbcp.datasources.SharedPoolDataSource.getPooledConnectionAndInfo(SharedPoolDataSource.java:169)
    [java] at org.apache.commons.dbcp.datasources.InstanceKeyDataSource.getConnection(InstanceKeyDataSource.java:701)
    [java] at org.apache.commons.dbcp.datasources.InstanceKeyDataSource.getConnection(InstanceKeyDataSource.java:676)
    [java] at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
    [java] at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
    [java] ... 29 more
    [java] Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    [java] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1764)
    [java] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:241)
    [java] at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:235)
    [java] at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1206)
    [java] at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
    [java] at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
    [java] at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:958)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1203)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1230)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1214)
    [java] at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:92)
    [java] ... 53 more
    [java] Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    [java] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:323)
    [java] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:217)
    [java] at sun.security.validator.Validator.validate(Validator.java:218)
    [java] at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
    [java] at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
    [java] at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
    [java] at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185)
    [java] ... 61 more
    [java] Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    [java] at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
    [java] at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
    [java] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:318)
    [java] ... 67 more

    >
    I have connection problem and I get the following... Do you have any idea what it might be?
    >
    It might be that you didn't post any code (using \ tags) for anyone to look at.
    People can't debug code that they can't see.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to connect the database (JDBC) using service name rather than SID

    How should we make the connection to the database using service name. Initially, we are using the SID to make the database connection, with following setting in the data-source.xml in OC4J using ABCDB as the SID.
    <data-sources>
         <data-source
              class="com.evermind.sql.DriverManagerDataSource"
              name="jdbc/ABCDB"
              location="jdbc/ABCDB"
              pooled-location="jdbc/OracleDSPooled"
              xa-location="jdbc/xa/OracleDSXA"
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="ABC"
              password="ABC"
              url="jdbc:oracle:thin:@191.1.4.126:1521:ABCDB"
         />
    </data-sources>
    It work, but now we need to make the connection using this service name ABCSERVICE, but it doesn't work in the OC4J (JDBC). May I know how should we handle this connection?
    Thanks and Regards,
    Pang

    Finally, I got the solution to make the database connection using service name, with putting the tnsname setting in URL portion.
    url="jdbc:oracle:thin:@(description=(address=(host=191.1.4.126)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME = ABCSERVICE)))"
    And now, it is working fine.
    Regards,
    Pang

  • JDBC connection in EJB (Sorry i know this is a JSP forum but someone might have the a

    In EJBs, we can always spawn a JDBC connection using the internal server side driver through defaultConnection() or kprb. My question is, can we spawn any other kind of connection from an EJB to another database on some remote machine, this would involve using the thin or oci drivers, i try but get security exceptions and access privilege exception though the account i use is privilegded for database operations. Can someone answer my question please.

    see reply in one of the four other forums you posted the same question to !!

  • How to increase the JDBC connections peroformacnce

    Hi Iam new to Weblogic admin
    We are using weblogic 10. in solaries + oracle database env
    We are facing the slowness issue for internet application users, after submitting the user name and password, user will not get any response from the application except blank page,
    I have observed that there are somany; more than 200 Waiting For Connection Total. This will increase in peak time.
    wii this is the cause for the issue or if any other.
    Please suggest us to resolve the issue.
    Edited by: user11103866 on May 8, 2009 2:12 AM

    more than 200 Waiting For Connection Total.<<This is from a JDBC pool? If so, then you have more users than your pool can handle.
    How many initial / maximum connections does this particular pool allow, and how many servers are within your cluster?
    What is your applicaiton's session timeout value?
    Ask your DBA how many connections the database currently allows.
    You can also configure the shrink period of the pool if your user sessions are short, or if your users are not logging out ( which results in their session holding a connection until the session times out ).
    Are you seeing Leaked Connections ( you can configure the console to report these )?

Maybe you are looking for

  • How to display Table in Interactive PDF with WD-ABAP

    hi All, I have to display a tablewith 4 rows in Interactive PDF form, and i am using WD ABAP. These are the steps i have followed. 1. I have created a table line for the required table 2. Dragged the table line from data view to body page. 3. Wrapped

  • How many number of input/output arguments allowed in Stored procedure

    Please let me know how may input and output arguments are allowed in Oracle stored procedure. I wan't to writer one generic SP and for that I need to know the limitation on the number of arguments. I am using Oracle 8.0.5.

  • Importing my library onto my new laptop.

    Windows 8 is my operating system. I have an iPod Shuffle. I've bought a new laptop and want to move my music from the old iTunes onto the new one. I have backed up my library onto a junk drive and it is also on my iPod. Can someone please give me det

  • A fix for a blurry external monitor for the mac air 11

    http://gizmodo.com/5938452/a-trick-to-make-using-an-external-monitor-with-your-m acbook-way-better After a frustrating evening with a blurry external monitor I found the fix at link above. Very happy!

  • Text in 3d World

    Hello everyone, is there a way to display text into the 3d world and make it fallow a 3d model?