About 3,440,000 results
Open links in new tab
  1. Java JDBC - How to connect to Oracle using tnsnames.ora

    Jan 7, 2013 · You can take the entry directly from the tnsnames.ora file and attach it to the jdbc driver string as following: Example from using odbc7.jar (Oracle 12c JDBC driver for JDK 7) to …

  2. java.lang.ClassNotFoundException: com.mysql.jdbc.Driver …

    When building the project, java throws you an exception because a file (the com.mysql.jdbc.Driver class) from the mysql connectivity library is not found. The solution is adding the library to the …

  3. java - How to connect to Oracle using Service Name instead of SID ...

    300 I have a Java application that uses JDBC (via JPA) that was connecting to a development database using hostname, port and Oracle SID, like this: …

  4. java - Efficient way to do batch INSERTS with JDBC - Stack Overflow

    Sep 24, 2010 · In my app I need to do a lot of INSERTS. Its a Java app and I am using plain JDBC to execute the queries. The DB being Oracle. I have enabled batching though, so it …

  5. java - ClassNotFoundException com.mysql.jdbc.Driver - Stack …

    ClassNotFoundException com.mysql.jdbc.Driver [duplicate] Asked 16 years, 1 month ago Modified 7 years, 6 months ago Viewed 351k times

  6. java - Named parameters in JDBC - Stack Overflow

    Feb 22, 2010 · Vanilla JDBC only supports named parameters in a CallableStatement (e.g. setString("name", name)), and even then, I suspect the underlying stored procedure …

  7. Connect Java to a MySQL database - Stack Overflow

    The better practice is to install the physical JDBC driver JAR file in the server itself and configure the server to create a JDBC connection pool. Here's an example for Tomcat: How should I …

  8. java - how to install JDBC and how to use it to connect to mysql ...

    Jul 7, 2010 · You need to add the JAR file containing the JDBC driver to the runtime classpath. The linked answer explains that in detail. If you're using an IDE, just add JAR file as Library to …

  9. java - PreparedStatement setNull (..) - Stack Overflow

    Java PreparedStatement provides a possibility to explicitely set a Null value. This possibility is: prepStmt.setNull(parameterIndex, Types.VARCHAR); Are the semantics of this call the same …

  10. java - Is it possible to specify the schema when connecting to …

    Oct 11, 2015 · 5 According to the official Postgresql JDBC doc, there are at least two connection options available for use on the JDBC URL to configure the schema to use. The most straight …