Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, santhoshreddy.

Asked: October 04, 2016 - 7:56 am UTC

Last updated: November 17, 2016 - 2:19 am UTC

Version: 11g

Viewed 1000+ times

You Asked

Hi Tom,
Could you tell me,Is PGA Resides inside instance or outside intance?


Thanks in advance.

and Connor said...

Depends what you mean by "instance".

It's not part of shared memory, ie, the large memory structure that all database processes share. It is private to each process that corresponds to the dedicate or shared connection to the database.

But in terms of "does it consume memory on the server my instance is running on", then yes.

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

santhoshreddy podduturi, November 10, 2016 - 6:32 am UTC

The SGA,PGA and UGA Takes space on primary area or secondary area?
Connor McDonald
November 11, 2016 - 8:22 am UTC

primary ? secondary ?

santhoshreddy podduturi, November 16, 2016 - 7:27 am UTC

Primay =RAM
Secondary=Where Data Stored Permanently(Hard Disk)
Connor McDonald
November 17, 2016 - 2:19 am UTC

All the areas (PGA, SGA etc) are memory based. If you *exceed* an allowable threshold, then they will spill to disk.

Who *does* that depends on the area, eg

PGA - *we* (the database) decides when you spill to temp tablespace
SGA - the OS will decide if it needs to swap it out to disk.

But the SGA is predominantly fixed in size, and you should set it so that it *never* gets swapped out.