ojdbc

How to set custom connection properties on DataSource in Spring Boot 1.3.x with default Tomcat connection pool

折月煮酒 提交于 2019-11-29 13:37:45
问题 I need to set some specific Oracle JDBC connection properties in order to speed up batch INSERT s ( defaultBatchValue ) and mass SELECT s ( defaultRowPrefetch ). I got suggestions how to achieve this with DBCP (Thanks to M. Deinum) but I would like to: keep the default Tomcat jdbc connection pool keep application.yml for configuration I was thinking about a feature request to support spring.datasource.custom_connection_properties or similar in the future and because of this tried to pretent

WSJDBCConnection does not wrap objects of type Oracle jdbc Connection

吃可爱长大的小学妹 提交于 2019-11-29 12:11:24
I am using Websphere liberty server to run my application and I need to use ArrayDescriptor for passing arrays to the oracle stored procedure. I get an exception while unwrapping the connection. I have checked the connection meta data driver information as well and it is showing me oracle.jdbc driver. The code fails at connection unwrapping line. Connection conn = this.getDataSource().getConnection(); OracleConnection oracleConn = conn.unwrap(oracle.jdbc.OracleConnection.class); Exception message: java.sql.SQLException: DSRA9122E: com.ibm.ws.rsadapter.jdbc.v41.WSJdbc41Connection@120edaf does

How to use Oracle JDBC driver in Gradle project

雨燕双飞 提交于 2019-11-29 03:27:51
I'm new with Gradle projects and I have one question. I've searched in Internet but I couldn't find what I need or maybe I couldn't know how to search it. First I'm going to tell you my case. I have a Gradle project and I would like to execute several automated tests, in the future with jenkins, but now I want to try on Eclipse. I have the oracle jdbc driver in /lib directory, and this is my build.gradle apply plugin: 'java' // In this section you declare where to find the dependencies of your project repositories { jcenter() //mavenCentral() } // In this section you declare the dependencies

SQLSyntaxErrorException when using LIKE with ojdbc7.jar

吃可爱长大的小学妹 提交于 2019-11-28 12:31:38
I have the following statement : PreparedStatement prpStat = conn .prepareStatement("SELECT * FROM natperson WHERE name LIKE ?"); prpStat.setString(1, "A"); ParameterMetaData pmd = prpStat.getParameterMetaData(); ResultSet rs = prpStat.executeQuery(); and i get the following excepting when i execute the the prpStat.getParameterMetaData(); method with ojdbc7.jar. The exception is not thrown when using ojdbc6. java.sql.SQLSyntaxErrorException: ORA-00904: "NAMEIKE": ungültiger Bezeichner at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) at oracle.jdbc.driver.T4CTTIoer.processError

Hibernate saves stale data with hibernate.jdbc.batch_versioned_data

依然范特西╮ 提交于 2019-11-27 15:22:27
问题 Environment Hibernate 4.2 ojdbc6 - Oracle 11.2.0.3.0 JDBC 4.0 Oracle Database 11g The issue We followed many recommendations to configure our Hibernate batching the following way: <property name="hibernate.jdbc.batch_size">100</property> <property name="hibernate.order_inserts">true</property> <property name="hibernate.order_updates">true</property> <property name="hibernate.jdbc.batch_versioned_data">true</property> We checked our logs, and we saw that generated SQL statements are batched.

WSJDBCConnection does not wrap objects of type Oracle jdbc Connection

喜欢而已 提交于 2019-11-27 07:25:22
问题 I am using Websphere liberty server to run my application and I need to use ArrayDescriptor for passing arrays to the oracle stored procedure. I get an exception while unwrapping the connection. I have checked the connection meta data driver information as well and it is showing me oracle.jdbc driver. The code fails at connection unwrapping line. Connection conn = this.getDataSource().getConnection(); OracleConnection oracleConn = conn.unwrap(oracle.jdbc.OracleConnection.class); Exception

ORA-28040: No matching authentication protocol : Oracle 12c Upgrade

好久不见. 提交于 2019-11-27 07:07:10
问题 We have migrated our Oracle database to 12c from 11g. We have a legacy application running in Java 1.5 and using ojdbc14.jar. Our application is not able to create connection to database error saying : java.sql.SQLException: ORA-28040: No matching authentication protocol I reffered to answer ORA-28040: No matching authentication protocol exception, and tried to upgrade my ojdbc14.jar to ojdbc6.jar. I now have a different error message saying : error: OracleCallableStatement is not public in

SQLException: No suitable Driver Found for jdbc:oracle:thin:@//localhost:1521/orcl

◇◆丶佛笑我妖孽 提交于 2019-11-26 21:09:15
问题 I am trying to develop a Java EE application that connect to an Oracle database from eb service class but I encounter a SQLException: No suitable driver found for jdbc:oracle:thin:@//localhost:1521/orcl I have the ojdbc6.jar in the class path and I have also verified that this in the JBoss deployment folder. My application EAR is composed of a WAR . What is wrong (root cause) with this? Please help. Connection URL in persistence.xml: > "jdbc:oracle:thin:@//localhost:1521/orcl" Stack Trace: 16

Maven ojbc 6 jar not found in central repository

谁说我不能喝 提交于 2019-11-26 18:35:39
问题 Hi I have placed ojdbc jar in my local repository still I am getting the below error. Could not resolve dependencies for project Failure to find com.oracle:ojdbc6:jar:11.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced Settings.xml <settings> <localRepository>C:\Rahul\Repository</localRepository> <proxies> <proxy> <active>true</active> <protocol>http<