Re: Does Oracle PGA take out memory out of SGA?
Date: Wed, 31 Mar 2021 16:31:39 -0300
Message-ID: <CAPWdmV9hc7W_Vk5J9=amScaz=ONhtmwHNw-v0O7+dvPKV2_3SQ_at_mail.gmail.com>
In a nutshell: No.
PGA is a different pool from SGA. And, more important, SGA has a static
preallocated size. While PGA "size" is always a limit, and is allocated on
demand.
Parameter pga_aggregate_target defines a somewhat *soft* limit for PGA.
From 12c upwards the parameter pga_aggregate_limit (defaults
to pga_aggregate_target*2) defines the hard limit.
In some setups using MTS some memory structures normally allocated from PGA
are allocated from SGA. This is comprehensible as, in MTS, there isn't the
1:1 relation between session and process.
*--*
*Luis Santos*
Em qua., 31 de mar. de 2021 às 16:04, Amit Saroha <eramitsaroha_at_gmail.com>
escreveu:
> Dear All,
*Att*
>
> Please help me understanding PGA and SGA.
>
> I was under the impression that PGA and Memory and SGA Memory are
> differently allocated. But, in a recent situation, we observed *ORA-7445
> [kghalf] *and my DBA is saying - out of a total of 256 GB system memory
> one session's PGA consumed everything and only 8 MB was left for other
> sessions. But, apart from one process, no other processes were impacted so
> I have doubt that - Oracle consumes SGA memory and Allocates it to PGA of a
> single process.
>
> Please help me understand.
>
>
> Best Regards,
> Amit
>
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Mar 31 2021 - 21:31:39 CEST