Delete query generating UncategorizedSQLException and ORACLE memory issue in SPRING framework

我只是一个虾纸丫 提交于 2019-12-13 15:27:16

问题


I am trying to process a delete query in eclipse using the SPRING jdbcTemplate and ORACLE as DBMS. The code is the following :

jdbcTemplate.update("DELETE FROM PRMSVC_EF WHERE EF_SSC_ID in (SELECT es.EF_SSC_ID FROM EF_SSC es WHERE es.NUMCPTPFS = '1086878547'")

as error I get

org.springframework.jdbc.UncategorizedSQLException : StatementCallback; uncategorized SQLException for [DELETE FROM PRMSVC_EF WHERE EF_SSC_ID in (SELECT es.EF_SSC_ID FROM EF_SSC es WHERE es.NUMCPTPFS = '1086878547']

and also the following oracle error :

ORA-12853 : ORA-12853: insufficient memory for PX buffers

When I process the query in oracle DBMS it takes 2 secs to execute. I am trying to find a sollution for the java code itself rather than trying to extend the SGA pools memory or something ... Any Ideas ?


回答1:


Here's what I did:

alter system set parallel_max_servers=50 scope=both sid='*';

see here : http://zaakeroracledba.blogspot.ca/2015/03/ora-12853-insufficient-memory-for-px.html

https://community.oracle.com/thread/2400781?tstart=0



来源:https://stackoverflow.com/questions/36478807/delete-query-generating-uncategorizedsqlexception-and-oracle-memory-issue-in-spr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!