执行程序时抱错
java.sql.SQLException: ORA-00018: 超过阶段作业数目上限
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
        at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
        at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:407)
        at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:259)
        at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
        at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
        at java.sql.DriverManager.getConnection(DriverManager.java:517)是不是需要修改init.ora里面的processes参数? 还有一个sessions参数是做甚么用的, 是否也需要修改?  他们俩个修改为多少合适, 现在是processes=150, sessions=170

解决方案 »

  1.   

    ORA-00018 maximum number of sessions exceededCause: All session state objects are in use.Action: Increase the value of the SESSIONS initialization parameter.
      

  2.   

    SESSIONS specifies the maximum number of sessions that can be created in the system. Because every login requires a session, this parameter effectively determines the maximum number of concurrent users in the system. You should always set this parameter explicitly to a value equivalent to your estimate of the maximum number of concurrent users, plus the number of background processes, plus approximately 10% for recursive sessions. Oracle uses the default value of this parameter as its minimum. Values between 1 and the default do not trigger errors, but Oracle ignores them and uses the default instead. The default values of the ENQUEUE_RESOURCES and TRANSACTIONS parameters are derived from SESSIONS. Therefore, if you increase the value of SESSIONS, you should consider whether to adjust the values of ENQUEUE_RESOURCES and TRANSACTIONS as well. In a shared server environment, the value of PROCESSES can be quite small. Therefore, Oracle Corporation recommends that you adjust the value of SESSIONS to approximately 1.1 * total number of connections. 
      

  3.   

    那SESSIONS 的值和 ENQUEUE_RESOURCES and TRANSACTIONS 的值有甚么 关系吗, 是在他们中间取得吗, 现在SESSIONS=170, ENQUEUE_RESOURCES=968, TRANSACTIONS =187,
    我现在想调整SESSIONS为500, 其它两个值最好跳到甚么程度?
    而且SESSIONS 的值只有 update  v$parameter 来实现吗?