zoukankan      html  css  js  c++  java
  • ORA-12520: TNS:listener could not find available handler for requested type of server

    当你碰到ORA-12520错误时,如下所示:

    英文错误提示:

    ORA-12520: TNS:listener could not find available handler for requested type of server

    中文错误提示:

    ORA-12520: TNS: 监听程序无法为请求的服务器类型找到可用的处理程序

    一般你应该从下面两个方面去检查出错原因并解决问题:

    1:数据库是专用服务器,但是在tnsname.ora配置文件中设置的连接方式是shared,这种情况需要修改tnsname.ora配置文件,这种错误情况一般发生在第一次连接数据库服务器。

    2:运行正常的数据库服务器,突然报ORA-12520错误,一般是因为process不够引起的。需要增大processes参数的值。

    修改ORACLE最大进程数
    使用sys,以sysdba权限登录:

    SQL> show parameter processes;

    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes                      integer     1
    db_writer_processes                  integer     1
    job_queue_processes                  integer     10
    log_archive_max_processes            integer     1
    processes                            integer     150

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

    系统已更改。

    SQL> show parameter processes;

    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes                      integer     1
    db_writer_processes                  integer     1
    job_queue_processes                  integer     10
    log_archive_max_processes            integer     1
    processes                            integer     150

    SQL> create pfile from spfile;

    文件已创建。
     

    重启数据库,

    sqlplus /nolog
    SQL>conn as sysdba;
    SQL>shutdown immediate;
    SQL>startup;

    SQL> show parameter processes;

    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    aq_tm_processes                      integer     1
    db_writer_processes                  integer     1
    job_queue_processes                  integer     10
    log_archive_max_processes            integer     1
    processes                            integer     300

  • 相关阅读:
    Ubuntu 12.04 国内更新源列表 LINUX软件 偶偶贝塔のBlog
    乱码
    charset
    乱码
    使用 Python 进行线程编程
    Pyphantomjs makes python crash
    乱码
    PyQt v4 Python Bindings for Qt v4 | Документация
    Automated Discovery of Blog Feeds and Twitter, Facebook, LinkedIn Accounts Connected to Business Website « Data Big Bang Blog
    jeanphix/Ghost.py · GitHub
  • 原文地址:https://www.cnblogs.com/Denny_Yang/p/5047161.html
Copyright © 2011-2022 走看看