ORA-12519, TNS:no appropriate service handler found The Connection descriptor used by the client was: localhost:1521:XE

数据库报错:

    Caused by: java.sql.SQLException: Listener refused the connection with the following error:
    ORA-12519, TNS:no appropriate service handler found
    The Connection descriptor used by the client was:
    localhost:1521:XE

    操作数据库的时候报这个错误

    在StackOverflow看了国外的一些人的分析,最后解决了:

    我的解决过程:

    1.我在用mybatis操作数据库的时候session使用不当,一些session没有close

    如果你有类似问题最好检查一下你应用中是不是操作session不当,比如在某个循环里开启了session,没关闭

    2.以防万一,我还是 将oracle切换到了system用户执行  alter system set processes = 300 scope = spfile;

     然后重启数据库,这个问题就解决了

    

  

原文地址:https://www.cnblogs.com/shieryuedeqiji/p/8290415.html