Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if there is an error when using jdbc to connect to oracle in spring

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains the "spring with jdbc to connect oracle errors how to do", the article explained the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "spring to use jdbc to connect oracle errors how to do" it!

An error occurred when using jdbc to connect to oracle in spring:

ORA-12518, TNS:listener could not hand off client connection

Org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connectionCaused by:org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException (SQLStateConverter.java:103) is generally due to: after the customer connects to the listener, the listener redirects the customer to the scheduler port, and these connections will be rejected due to operating system problems.

To solve this problem, simply add the line DIRECT_HANDOFF_TTC_LISTENER = OFF to the header of the LISTENER.ORA.

Add the sentence DIRECT_HANDOFF_TTC_LISTENER = OFF to the listener.ora file

Then restart the listening service

Lsnrctl stop

Lsnrctl start

Thank you for your reading, the above is the content of "what to do when there is an error when connecting oracle with jdbc in spring". After the study of this article, I believe you have a deeper understanding of what to do when you use jdbc to connect oracle in spring, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report