Database Memory & 4030/4031 (MOSC)

MOSC Banner

ORA-04030 error with large query

edited Jun 1, 2014 10:47PM in Database Memory & 4030/4031 (MOSC) 6 commentsAnswered

This is a 64 bit Windows server, Oracle 11.2.0.3, with 96G of memory.

pga_aggregate_target is set to 4G. Hidden derived parameters from this are: _smm_max_size is set to 1,048,576 (in Kb, so 1G) and _pga_max_size is 2,147,483,648 (2G). These derived values both match up with documented processes, and look reasonable.

We have a large query, which is a CTAS, and has many joins, and also many UNION ALLs, running inside a pl/sql package. The query is built within a string variable, and then run using EXECUTE IMMEDIATE.

The issue we are having is that when this query is run, the amount of pga memory allocated to the session continues to grow until the server uses virtual memory, and then the server becomes unusable and the database crashes. We need to restart the server and the database.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center