No announcement yet.

Error Oracle in Mirth

  • Filter
  • Time
  • Show
Clear All
new posts

  • Error Oracle in Mirth

    Hello, we use Mirth (mirthconnect-
    with Oracle DB Version 11.1.0
    and java jre-7u67-windows-x64. (Java version 1.7.0_67)

    We regularly have an error in Oracle:
    ORA-00604: An error has occurred in SQL réccursif 1
    ORA-01000: maximum number of open cursors exceeded and that the maximum number is increased by our DBA
    we are forced to delete DB and rebuild ?.

    Can you help us understand why,
    or else give us avenues of research for a solution.

    Thank you for your help.

  • #2

    Did you check that connection are much more of your mirth server.

    If this is the case you have channels with javascript connectors using oracle.jdbc.OracleDriver ?

    Close you know your connection each time ==> dbConn.close ()


    • #3
      Can you post the full stack trace from the Mirth Connect server log that includes those errors?

      Does the error continue after deleting the DB and starting with a new one?

      Doing a google search on those oracle error codes yields some possible causes. ORA-00604 seems to be commonly caused by triggers.

      Try running this query on your database to test whether or not it is trigger related:

      alter system set "_system_trig_enabled"=FALSE;
      See this post on the Oracle forums:


      • #4

        Please make sure that you're closing all database connections (dbConn.close())

        If you're using native Java jdbc connections, don't forget to close resultSet and preparedStatements too.

        Monitoring the number of cursors can be done by using this query:

        select * from v$open_cursor;

        Kind Regards

        Nico Vannieuwenhuyze


        • #5
          Please specify if you're creating your using the Database Reader/Writer to read and write to the Oracle database, or if you're using custom JavaScript code, or if you're not doing either and simply have Oracle as your backend database.

          Like others have mentioned, it's possible that you're not closing all your JDBC objects.


          • #6
            Hello All,

            thank you all for your answers, Oracle DB was recreates I know not execute commands on it.

            We ensure good close each connection to databases.

            I said that the error occurred when we were writing of tests on a DB mysql, oracle database is used only by Mirth.

            I joined you log containing ORA-00604 ORA-01000 errors.

            thank you
            Attached Files


            • #7
              What is your "database.max-connections" set as in your file?


              • #8
                Hello Wayneh,

                the value is set to 10 in the properties file, What exactly is this setting?

                The problems encountered comes from the oracle DB used by Mirth,
                Mirth is opening too many cursor to the DB oracle,
                how this is possible, how Mirth manages its access to the DB?
                Is Mirth opens a cursor for each entry on its DB connection to external DB?

                Thank you in advance for your answers


                • #9
                  I'm seeing very similar problems, except I only need to bounce the server to recover.

                  Oracle DB Version 11.2
                  Java version 1.6.0_45
                  database.max-connections = 20

                  I have no custom code doing anything to the database. This has to be internal Mirth code. Stack trace below.

                  ERROR 2015-03-25 17:05:49,444 [qtp372847254-31630] com.mirth.connect.server.servlets.ChannelStatusSer vlet: ption: java.sql.SQLException: ORA-01000: maximum open cursors exceeded
                  at getConnectorMessageCount(
                  at eredDao.getConnectorMessageCount( 447)
                  at com.mirth.connect.donkey.server.queue.ConnectorMes sageQueueDataSource.getSize(ConnectorMessageQueueD
                  at com.mirth.connect.donkey.server.queue.ConnectorMes sageQueue.updateSize( )
                  at com.mirth.connect.donkey.server.queue.ConnectorMes sageQueue.size(
                  at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.getDashboardStatuses(DonkeyEngineControl
                  at com.mirth.connect.server.controllers.DonkeyEngineC ontroller.getChannelStatusList(DonkeyEngineControl
                  at com.mirth.connect.server.servlets.ChannelStatusSer vlet.doPost(
                  at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
                  at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
                  at org.eclipse.jetty.servlet.ServletHolder.handle(Ser
                  at org.eclipse.jetty.servlet.ServletHandler.doHandle(
                  at Handle(
                  at Handle(
                  at org.eclipse.jetty.servlet.ServletHandler.doScope(S
                  at Scope(
                  at Scope(
                  at org.eclipse.jetty.server.handler.ScopedHandler.han dle(
                  at org.eclipse.jetty.server.handler.HandlerList.handl e(
                  at org.eclipse.jetty.server.handler.HandlerWrapper.ha ndle(
                  at org.eclipse.jetty.server.Server.handle( :363)
                  at org.eclipse.jetty.server.AbstractHttpConnection.ha ndleRequest(
                  at ntent(
                  at org.eclipse.jetty.server.AbstractHttpConnection$Re questHandler.content( 92)
                  at org.eclipse.jetty.http.HttpParser.parseNext(HttpPa
                  at org.eclipse.jetty.http.HttpParser.parseAvailable(H
                  at org.eclipse.jetty.server.AsyncHttpConnection.handl e(
                  at dle(
                  at$1.r un(
                  at Job(
                  at org.eclipse.jetty.util.thread.QueuedThreadPool$3.r un(
                  Caused by: java.sql.SQLException: ORA-01000: maximum open cursors exceeded
                  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoe
                  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoe
                  at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall. java:879)
                  at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.jav a:450)
                  at oracle.jdbc.driver.T4CTTIfun.doRPC( 192)
                  at oracle.jdbc.driver.T4C8Oall.doOALL( 31)
                  at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4
                  at oracle.jdbc.driver.T4CPreparedStatement.executeFor Describe(
                  at oracle.jdbc.driver.OracleStatement.executeMaybeDes cribe(
                  at oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout(
                  at oracle.jdbc.driver.OraclePreparedStatement.execute Internal(
                  at oracle.jdbc.driver.OraclePreparedStatement.execute Query(
                  at oracle.jdbc.driver.OraclePreparedStatementWrapper. executeQuery( 493)
                  at getConnectorMessageCount(
                  ... 32 more
                  Last edited by GDombrowski; 03-27-2015, 06:01 AM.