Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring-jdbc 5.0.5 NamedParameterJdbcTemplate.batchUpdate ORA-01000 [SPR-16814] #21354

spring-projects-issues opened this issue May 11, 2018 · 1 comment
in: data status: declined


Copy link

@spring-projects-issues spring-projects-issues commented May 11, 2018

Fedor opened SPR-16814 and commented

After migrating from Spring 4.1.7 to Spring 5.0.5 we have ORA-01000: maximum open cursors exceeded when using with Oracle 12c and ojdbc7-driver.

Exception raised after following code

private void updateHiddenOffers(Map<String, Object>[] updateBatchParams) {
 int[] updateResults = namedJdbcTemplate.batchUpdate(UPDATE_HIDDEN_OFFER_SQL, updateBatchParams);

The issue is very similar to #20687

But we dont have ability to update ojdbc driver.

Is it fixed in 5.0.6 version?

Affects: 5.0.5

Issue Links:

  • #20687 Doc: ParameterMetaData.getParameterType performance on Oracle 12c
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented May 11, 2018

Juergen Hoeller commented

There hasn't been any recent work on this. Since this is effectively a bug in the Oracle JDBC driver, I'm afraid we won't be introducing a workaround for an older driver at this point.

You could try setting spring.jdbc.getParameterType.ignore=true as a system property on in a file in the root of your classpath, or use spring-jdbc-4.3.17 for the time being... with all other jars set to 5.0.6 (which isn't officially supported but should work fine in practice). I strongly recommend upgrading the JDBC driver though.

@spring-projects-issues spring-projects-issues added type: bug status: declined in: data labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: bug label Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: data status: declined
None yet

No branches or pull requests

2 participants