http://www.2cto.com/database/201205/133542.html
- ORA-12519,TNS:no appropriate service handler found的问题
-
Java代码ORA-12519, TNS:no appropriate service handler foundThe Connection descriptor used by the client was:110.16.1.17:1521:orcl www.2cto.com解决方案:Java代码数据库上当前的连接数目已经超过了它能够处理的最大值。select count(*) from v$process --当前的连接数select value from v$parameter where name = 'processes' --数据库允许的最大连接数修改最大连接数:alter system set processes = 300 scope = spfile;重启数据库:shutdown immediate;startup; www.2cto.com--查看当前有哪些用户正在使用数据SELECT osuser, a.username,cpu_time/executions/1000000||'s', sql_fulltext,machinefrom v$session a, v$sqlarea bwhere a.sql_address =b.address order by cpu_time/executions desc;注意点:如果提示没有shutdown 权限 可以使用conn /as sysdba dbaJava代码SQL> conn/as sysdba;已连接。SQL> alter system set processes = 300 scope = spfile;系统已更改。SQL> shutdown immediate;数据库已经关闭。已经卸载数据库。ORACLE 例程已经关闭。SQL> startup;ORACLE 例程已经启动。www.2cto.comTotal System Global Area 599785472 bytesFixed Size 1288820 bytesVariable Size 176162188 bytesDatabase Buffers 419430400 bytesRedo Buffers 2904064 bytes
数据库装载完毕。数据库已经打开。作者 smartan