读书人

ORA-12519,TNS:no appropriate servic

发布时间: 2012-12-24 10:43:14 作者: rapoo

ORA-12519,TNS:no appropriate service handler found的问题
?Java代码 ?ORA-12519, TNS:no appropriate service handler found ?The 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,machine ?from v$session a, v$sqlarea b ?where a.sql_address =b.address order by cpu_time/executions desc; ??注意点:如果提示没有shutdown 权限 可以使用?conn /as sysdba dba??Java代码 ?SQL> conn/as sysdba; ?已连接。 ?SQL> alter system set processes = 300 scope = spfile; ???系统已更改。 ???SQL> shutdown immediate; ?数据库已经关闭。 ?已经卸载数据库。 ?ORACLE 例程已经关闭。 ???SQL> startup; ?ORACLE 例程已经启动。 ?? ? www.2cto.com ?Total System Global Area ?599785472 bytes ?Fixed Size ? ? ? ? ? ? ? ? ?1288820 bytes ?Variable Size ? ? ? ? ? ? 176162188 bytes ?Database Buffers ? ? ? ? ?419430400 bytes ?Redo Buffers ? ? ? ? ? ? ? ?2904064 bytes ?
?数据库装载完毕。 ?数据库已经打开。 ???

?

读书人网 >编程

热点推荐