SQL0973N "APP_CTL_HEAP_SZ" 堆中没有足够的存储器可用来处理语句。 SQLSTATE=57011

数据库:DB2  V9.1

部署项目后测试功能,出现下面的异常:

com.linkage.bace.core.reflect.exception.ReflectionError:  invoke method 'getTop1
0' with arguments []
        at com.linkage.bace.core.reflect.method.Invoker.invoke(Invoker.java:59)
        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.jav
a:140)
        at com.linkage.bace.core.act.MCActioner.execute(MCActioner.java:64)
        at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:484)
        at com.linkage.bace.core.act.MCRequestProcessor.process(MCRequestProcess
or.java:93)
        at com.linkage.bace.core.act.MCActionServlet.process(MCActionServlet.jav
a: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:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:292)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:42)
        at com.linkage.bi.util.SystemInfoFilter.doFilter(SystemInfoFilter.java:3
93)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
va:42)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3496)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(Unknown Source)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2180)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:2086)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1406)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.linkage.bace.core.reflect.method.Invoker.invoke(Invoker.java:57)
        ... 25 more
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the DiyQuery.getTop10SearchName-InlineParameterMap.
--- Check the results (failed to retrieve results).
--- Cause: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/AIX64] SQL0973N
 "APP_CTL_HEAP_SZ" 堆中没有足够的存储器可用来处理语句。  SQLSTATE=57011
Caused by: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/AIX64] SQL0973N
 "APP_CTL_HEAP_SZ" 堆中没有足够的存储器可用来处理语句。  SQLSTATE=57011

 

查找其原因后得知是数据的APP_CTL_HEAP_SZ参数值设置的较小,连接数据库使用如下命令:

>db2 connect to    数据库名 user    用户名    using    密码

登陆成功后,使用如下命令查看数据库参数值:

>db2    get   db    cfg 

修改参数的值,使用命令如下:

>db2    update    db   for   数据库名    using    参数名 参数值

 

        

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