ORA-12518 TNS:监听程序无法分发客户机连接 解决办法

版权声明:本文为原创文章,转载请注明作者薄海,网址链接,联系方式邮箱bohai7000@126.com。QQ-1511777。 https://blog.csdn.net/stillit/article/details/26500847


环境 windows  server 2003 EP

       oracle 10g


专有服务器模式下processes值设的过小。可通过以下方法解决:

    1.cmd

    2.sqlplus

    3.connect sys/test as sysdba

    4.查看会话数、processes、sessions

    SQL> select count(*) from v$session;

         COUNT(*)

        ----------

           45

    SQL> show parameter processes

    NAME                                 TYPE        VALUE

    db_writer_processes                  integer     1

    gcs_server_processes                 integer     0

    job_queue_processes                  integer     10

    log_archive_max_processes            integer     2

    processes                            integer     50


    SQL> show parameter sessions

    NAME                                 TYPE        VALUE

    java_soft_sessionspace_limit         integer     0l

    icense_max_sessions                 integer     0

    license_sessions_warning             integer     0

    logmnr_max_persistent_sessions       integer     1

    sessions                             integer     60

    shared_server_sessions               integer

    5.修改processes和sessions值:sessions=(1.1*process+5)

    SQL> alter system set processes=300 scope=spfile;

   系统已更改。
  SQL
> alter system set sessions=335 scope=spfile;

    系统已更改。

    6.重启数据库,使更改生效


其他解决方案:

一、listener文件中的GLOBAL_DBNAME ,SID_NAME可能与实例名称不符,修改后,重启listener.

二 共享模式下,缺少的dispatchers

参考文档:http://my.oschina.net/huhs/blog/14637

            1.http://www.cnoracle.com/archives/474

            2.http://www.cnblogs.com/freedom831215/archive/2010/05/12/1733859.html

            3.http://blog.csdn.net/wudi_1982/archive/2007/06/08/1643610.aspx



ORA-12518:TNS:监听程序无法分发客户机连接

11-06

报错如图:rn[img=http://hi.csdn.net/attachment/201111/6/5380912_1320565891tkRU.jpg][/img]rnrn监听配置:rn# listener.ora Network Configuration File: e:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.orarn# Generated by Oracle configuration tools.rnrnSID_LIST_LISTENER =rn (SID_LIST =rn (SID_DESC =rn (SID_NAME = CLRExtProc)rn (ORACLE_HOME = e:\app\Administrator\product\11.2.0\dbhome_1)rn (PROGRAM = extproc)rn (ENVS = "EXTPROC_DLLS=ONLY:e:\app\Administrator\product\11.2.0\dbhome_1\bin\oraclr11.dll")rn )rn (SID_DESC =rn (GLOBAL_DBNAME = DBDMS)rn (ORACLE_HOME = e:\app\Administrator\product\11.2.0\dbhome_1)rn (SID_NAME = DBDMS)rn )rn (SID_DESC =rn (GLOBAL_DBNAME = ORCL11G)rn (ORACLE_HOME = e:\app\Administrator\product\11.2.0\dbhome_1)rn (SID_NAME = ORCL11G)rn )rn )rnrnLISTENER =rn (DESCRIPTION =rn (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))rn )rnrnADR_BASE_LISTENER = e:\app\Administratorrnrntns配置:rnLOCALDMS =rn (DESCRIPTION =rn (ADDRESS_LIST =rn (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1522))rn )rn (CONNECT_DATA =rn (SERVER = DEDICATED)rn (SERVICE_NAME = DBDMS)rn )rn )rnrn说明:rn1、用sqlplus、PL/SQL Developer工具连接DBDMS库时无ORA-12518报错信息,一切正常rn2、用C#编写的工具连接DBDMS时报上图错(在其它服务器上正常,应该是我本机Oracle配置问题)rnrnrn网上搜了许多,一直找不到原因,求解答,谢谢!

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试