zoukankan      html  css  js  c++  java
  • 报错: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: An attempt by a client to checkout a Connection has timed out. 数据库连接超时

    解决方法一:

    [oracle@data ~]$ sqlplus / as sysdba——连接到数据库

    SQL*Plus: Release 11.2.0.4.0 Production on Mon May 8 16:37:56 2017

    Copyright (c) 1982, 2013, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

    With the Partitioning, OLAP, Data Mining and Real Application Testing options

    SQL> select count(*) from v$process;——当前连接数

      COUNT(*)

    ----------

           128

    SQL> select value from v$parameter where name = 'processes';——最大连接数

    VALUE

    --------------------------------------------------------------------------------

    1000

    如果最大连接数小鱼当前连接数的话,那么修改最大连接数。

    alter system set processes = 300 scope = spfile;

    修改后重启数据库

    shutdown immediate;

    startup;

    exit退出

    方法二:

    修改配置文件中checkoutTime

  • 相关阅读:
    JavaScript面试题
    HTML&&css面试题
    nodejs面试题
    linux上安装apache
    linux上安装mysql
    linux基础命令学习(三)Vim使用
    linux基础命令学习(一)
    spring学习(六)注解方式实现AOP
    spring学习(五)详细介绍AOP
    spring学习(一)spring简介
  • 原文地址:https://www.cnblogs.com/llxx07/p/6826040.html
Copyright © 2011-2022 走看看