zoukankan      html  css  js  c++  java
  • ORA00020: maximum number of processes (150) exceeded

    Oracle游标数错误解决ORA-00020: maximum number of processes (%s)  

    今天在使用过程中,oracle突然挂掉,再次尝试启动提示:ORA-00020: maximum number of processes (%s) exceeded?网上查找了下,默认的游标数偏小,需要加大oracle最大游标数

    修改设定Oracle最大游标数

     SQL> show parameter open_cursor
      NAME                                TYPE        VALUE
      ------------------------------------ ----------- ------------------------------
      open_cursors                        integer    300
    
      SQL> alter system set open_cursors=800 scope=both;
      系统已更改。
    
      SQL> show parameter open_cursor
      NAME                                TYPE        VALUE
      ------------------------------------ ----------- ------------------------------
      open_cursors                        integer    800
      SQL>

    如果提示下面这个错误,照下面步骤操作 就行了
     ORA-32001: 已请求写入 SPFILE, 但是在启动时未指定SPFILE

    问题:SQL>alter system set open_cursors=800 scope=both;
    alter system set open_cursors=800 scope=both;
    *
    ERROR 位于第 1 行:
    ORA-32001: 已请求写入 SPFILE, 但是在启动时未指定 SPFILE

    我怎样做,这个错误才不会出现啊?
    各位大虾,谁能说详细点,我搞不太清楚!

    思路:
    这是因为你启动时没有使用spfile,而你在修改参数时指定了spfile,所以报错。产生一个spfile,然后使用这个spfile重启数据库即可。具体步骤如下:
    1、确定$ORACLE_HOME/dbs/下没有spfile文件,有的话改个名备份吧。
    2、以sysdba用户启动数据库到任何状态(nomoutn、mount或open),执行create spfile from pfile。
    2、shutdown immediate;
    3、startup
    再执行你的语句alter system set open_cursors=800 scope=both;

  • 相关阅读:
    【spring-boot】mybatis-generator 使用入门
    【spring-boot】mybatis 使用入门
    【spring-boot】logback+slf4j 日志组合
    【spring-boot】写一个简单的单元测试
    github执行clone操作时报错
    enable device: BAR 0 [mem 0x00000000-0x003fffff] not claimed
    Meson version is 0.44.1 but project requires >=0.45.
    tig
    Unknown command 'run'
    systemctl enable rc-local.service error
  • 原文地址:https://www.cnblogs.com/xuewater/p/2637516.html
Copyright © 2011-2022 走看看