Olá pessoal estou enfrentando um grande problema aqui, por favor se alguem poder me ajudar.
Tenho uma aplicação que que inserir milhoes de registros, são muitos inserts ao mesmo tempo, ou seja digamos que um for de 10000 vezes fazendo inserts, parece que o meu drive não esta suportando isso e esta gerando um erro, gostaria de saber se alguem sabe como me ajudar, o banco de DB2 e o servidor de aplciações é Apache Tom Cat 5, por favor amigos isso esta em produção e tudo esta parado devido esses inserts, Obrigado novamente.
Erro:
BD: java.sql.SQLException: Limit on number of statements exceeded.
BD: java.sql.SQLException: Limit on number of statements exceeded.
BD: java.sql.SQLException: Limit on number of statements exceeded.
java.lang.Exception: java.lang.Exception: java.sql.SQLException: Limit on number of statements exceeded.
at sng.action.adm.CronogramaAction.OrganizerCronogramaAreas(CronogramaAction.java:1350)
at sng.action.adm.CronogramaAction.XML_createCronogramaTreinamentoFerias(CronogramaAction.java:1200)
at sng.action.adm.CronogramaAction.execute(CronogramaAction.java:259)
at sng.Wrapper.execute(Wrapper.java:34)
at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.Exception: java.sql.SQLException: Limit on number of statements exceeded.
at sng.tools.ConnDB.prepare(ConnDB.java:50)
at sng.action.adm.CronogramaAction.OrganizerCronogramaAreas(CronogramaAction.java:1333)
... 28 more
Caused by: java.sql.SQLException: Limit on number of statements exceeded.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:389)
at com.ibm.as400.access.AS400JDBCConnection.getUnusedId(AS400JDBCConnection.java:1300)
at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java:2024)
at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java:1824)
at sng.tools.ConnDB.prepare(ConnDB.java:45)
... 29 more