One of the jobs of OJDBC is to map Oracle data types to Java types.
However, we noticed that if we give a CHAR data type, it is not mapped to java.lang.String. The versions showing this behavior are: OJDBC7 v12.1.0.2 and OJDBC6 v12.1.0.1. The older…
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…
For inexplicable reasons however, this morning the performance increased for two of my Queries that used to be slow. I have no idea why.
I have no authority over the server, maybe someone changed something.
The problem is no more.
In a…
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:
100
I am using ojdbc6.jar to connect Oracle 10g database. but i am getting Unparsable date error. So i searched on various oracle and found out that we have to set
Oracle suggestion link and Suggestion link2
mapDateToTimestamp = false
But nowhere…
I am trying to implement a event listener which can identify DATABASE CHANGE NOTIFICATION (Oracle). According to the reference website, it said that event will triggle and print ROW_ID when something change in EXAMPLE table. I want this project…
During a software project we stumbled upon a bug, where we inserted a large number (17 digits) from Java into Oracle DB procedure. The number changed it's value sometimes +1 or -1. Sometimes stayed the same. We checked the oracle DB driver debug log…
I'm Using java7, jboss7, ojdbc7,hibernate 4.
Table has a CLOB column and in domain class the code is something like this:
@Lob
private String MyClob;
I'm getting this strange error while querying and this is not consistent.
Caused by:…
I have the following statement :
PreparedStatement prpStat = conn
.prepareStatement("SELECT * FROM natperson WHERE name LIKE ?");
prpStat.setString(1, "A");
ParameterMetaData pmd =…
I'm running web-apps on a Tomcat7 server and having trouble undeploying them. It seems that windows keeps a lock on a particular JAR file in the application folder. I've found that there is a context attribute called "antiJARLocking" that i can set…
I have a java application which sets up a jdbc connection to an Orcale database. I am attempting to insert data into the database but am confused when it comes to the oracle NUMBER type. I have three columns in my table which are of these types…
oracle.sql.BLOB.DURATION_CALL vs oracle.sql.BLOB.DURATION_SESSION
What is the difference between the two?
It is used to create a temporary LOB by calling the
BLOB.createTemporary(connection, true, flag).
I have the following scenario:
All…
We have a Spring Boot application, using HikariCP as connection pool to an Oracle 12.2 database. If there is an issue and the database becomes unavailable, we get this exception, as expected:
java.sql.SQLTransientConnectionException: HikariPool-1 -…
I'd like to log all the SQL that my application is issuing, so I know EXACTLY what it's doing. I've setup Java Util Logging for Oracle according to this answer, to try to capture things at the lowest level I can.
My application is using Hibernate…
While calling SimpleJdbcCall.withFunctionName I get java.sql.SQLException: Missing IN or OUT parameter at index:: 1
SimpleJdbcCall simpleJdbcCall = new SimpleJdbcCall(myDataSource)
.withCatalogName("package_name")
.withFunctionName("x");
String res…