Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> ORA-04030 out of proces memory
Hi,
i read several discusion interested in this problem but did not find
solv my problem.
I have Oracle 10g R2 on windows 2003 with 4G MB RAM.
My SGA target is set to 700MB
My PGA target is set to 1GB
workarea_size_policy is AUTO
I have 2 instance of Oracle. Instance NMCRL and MCAT. In instance MCAT is created synonym and db link to instance NMCRL. Our aplication is connected in MCAT and aplication inserting very mauch items to table in NMCRL. It is about 40 000 000 items. When the import is in about 50%, the anothe queries fall down with error ORA-04030 out of proces memory. For example:
z.aura.core.message.DefaultExceptionHandler handleException
SEVERE: Zachycena chyba v exception handleru
org.springframework.jdbc.UncategorizedSQLException:
PreparedStatementCallback; uncategorized SQLException for SQL [select
kcch6.Id_kcch6, kcch6.cnaz, kcch6.Id_kcch6 idKcch6,
kvysvc_supopis.vysvetc vysvetcSupopis, kcch6.inc inc, kcch6.dzcnaz
dzcnaz, kcch6s_su.cc ccSu, kcch6.kstnaz kstnaz, kcch6s_su.kprelh6
kprelh6Su, kciig_suig.kIIG kiigSuig, kcch6.tnaz tnaz,
kcstnaz_mast.kstnaz kstnazMast, kcch6.cn cn, kcch6.cnaz cnaz,
kcsppol_supsp.ksppol ksppolSupsp, kcch6s_su.app appSu, kcch6s_su.nazpol
nazpolSu, kvysvc_suap.vysvetc vysvetcSuap from kcch6 kcch6 LEFT OUTER
JOIN (kcch6s kcch6s_su LEFT OUTER JOIN kciig kciig_suig ON
kcch6s_su.kiig=kciig_suig.kIIG LEFT OUTER JOIN kcsppol kcsppol_supsp
ON kcch6s_su.ksppol=kcsppol_supsp.ksppol LEFT OUTER JOIN kvysvc
kvysvc_suap ON kcch6s_su.i_id_kvysvc=kvysvc_suap.Id_kvysvc LEFT OUTER
JOIN kvysvc kvysvc_supopis ON
kcch6s_su.id_kvysvc=kvysvc_supopis.Id_kvysvc) ON
kcch6.Id_kcch6=kcch6s_su.id_kcch6 LEFT OUTER JOIN kcstnaz kc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L state [61000]; error code [4030]; ORA-04030: out of
process memory when trying to allocate 6857212 bytes
(kxs-heap-c,temporary memory)
; nested exception is java.sql.SQLException: ORA-04030: out of process
memory when trying to allocate 6857212 bytes (kxs-heap-c,temporary
memory)
This sql command is so big but in normal conditions is allwais ok. My status of PGA in the moment of error is
NAME VALUEMB
1024
aggregate PGA auto target
864,65918
global memory bound
100
total PGA inuse
63,7832031
total PGA allocated
92,5644531
maximum PGA allocated
506,792969
total freeable PGA memory
0
process count
,000107765
max processes count
,00011158
PGA memory freed back to OS
0
total PGA used for auto workareas
0
NAME
VALUE/1024/1024
0
maximum PGA used for manual workareas
,505859375
over allocation count
0
bytes processed
11014,7783
extra bytes read/written
742,87207
cache hit percentage
,00008934
recompute count (total)
,027444839
Where is the problem? Can you help my please?
Best regards
Roman Hodain
And sorry my English is not very goot. Received on Tue Oct 03 2006 - 07:18:31 CDT