我是靠谱客的博主 温婉大山,最近开发中收集的这篇文章主要介绍listener could not find available handler for requested type of server,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

http://www.ispirer.com/wiki/sqlways/troubleshooting-guide/oracle/import/tns_listener

orcal默认参数“PROCESSES ”  指定orcale xe Server 为40个

解决方法,增加"PROCESSES "为100,200 或更多,步骤如下

在系统中

   1.set ORACLE_SID=XE 

在SQLPlus中:

  1. SQL> alter system set processes=400 scope=spfile;
  2. SQL> shutdown immediate;
  3. SQL> startup;

Cause

As the default the parameter called PROCESSES is specified as 40 or something like that in the Oracle XE Server. This parameter controls the number of processes running simultaneously in one instance on Oracle. Usually it is not enough for large databases with large amount of objects and data.

Solution

Please increase PROCESSES to 100, 200 or even higher.

To increase it, please perform the following steps:

In the System:

  1. set ORACLE_SID=XE

In the SQLPlus:

  1. SQL> alter system set processes=400 scope=spfile;
  2. SQL> shutdown immediate;
  3. SQL> startup;


] 2012-03-03 08:11:20:ERROR pool-1-thread-7 com.xiu.search.good.utils.CommonUtils - 商品折扣计算结果异常,商品id为84020,市场价为:0.02,销售价格为10000
     [java]     at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1230)
     [java]     at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:134)
     [java]     at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:205)
     [java]     at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:127)
     [java]     at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48)
     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
     [java]     at java.lang.Thread.run(Thread.java:736)
     [java] Caused by: java.sql.SQLException: Listener refused the connection with the following error:
     [java] ORA-12520, TNS:listener could not find available handler for requested type of server
     [java] The Connection descriptor used by the client was:
     [java] (DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = ract-scan.xiu.com)(PORT = 1521)))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = swcsdb1.xiu.com)))
     [java]
     [java]     at java.lang.Throwable.<init>(Throwable.java:67)
     [java]     at java.sql.SQLException.<init>(SQLException.java:101)
     [java]     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
     [java]     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
     [java]     at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
     [java]     at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
     [java]     at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
     [java]     at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
     [java]     at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
     [java]     at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:297)
     [java]     at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:221)
     [java]     at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:165)
     [java]     at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
     [java]     at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
     [java]     ... 16 more





最后

以上就是温婉大山为你收集整理的listener could not find available handler for requested type of server的全部内容,希望文章能够帮你解决listener could not find available handler for requested type of server所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部