An unexpected token\"BEGIN-OF-STATEMENT".\Expected tokens may include: ""

com.ibm.db2.jcc.b.SQLException: An unexpected token "explain plan set queryno = 1350568015 for I" was found following "BEGIN-OF-STATEMENT".  Expected tokens may include:  "<space>".
 at com.ibm.db2.jcc.b.ce.e(ce.java:1093)
 at com.ibm.db2.jcc.b.ce.b(ce.java:843)
 at com.ibm.db2.jcc.a.bd.h(bd.java:207)
 at com.ibm.db2.jcc.a.bd.b(bd.java:47)
 at com.ibm.db2.jcc.a.r.b(r.java:42)
 at com.ibm.db2.jcc.a.bp.f(bp.java:135)
 at com.ibm.db2.jcc.b.ce.g(ce.java:840)
 at com.ibm.db2.jcc.b.ce.a(ce.java:1323)
 at com.ibm.db2.jcc.b.ce.executeUpdate(ce.java:286)
 at com.linkage.bi.powershow.util.QueryTableUtil.getTableName(QueryTableUtil.java:307)
 at com.linkage.bi.powershow.query.DiyQueryModule.getTableProcRelate(DiyQueryModule.java:5204)
 at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:618)
 at com.linkage.bace.core.reflect.method.Invoker.invoke(Invoker.java:57)
 at com.linkage.bace.core.db.MCTransaction.execute(MCTransaction.java:104)
 at com.linkage.bace.core.m.DBModuler.execute(DBModuler.java:55)
 at com.linkage.bace.core.act.MCActioner.executeCallMethod(MCActioner.java:140)
 at com.linkage.bace.core.act.MCActioner.execute(MCActioner.java:64)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
 at com.linkage.bace.core.act.MCRequestProcessor.process(MCRequestProcessor.java:93)
 at com.linkage.bace.core.act.MCActionServlet.process(MCActionServlet.java:56)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
 at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
 at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
 at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
 at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
 at com.linkage.bi.util.SystemInfoFilter.doFilter(SystemInfoFilter.java:395)
 at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
 at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
 at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
 at weblogic.security.service.SecurityManager.runAs(Unknown Source)
 at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
 at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
 at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1398)
 at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
 at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

一般为sql语法有问题,只能打印出执行的SQL,检查SQL语句是否正确。

你可能感兴趣的:(db2,SQLException)