Показаны сообщения с ярлыком pga. Показать все сообщения
Показаны сообщения с ярлыком pga. Показать все сообщения

29 марта 2011 г.

oracle:memory structures

System Global Area (SGA): This is a large, shared memory segment that virtually all
Oracle processes will access at one point or another.

Process Global Area (PGA): This is memory that is private to a single process or
thread; it is not accessible from other processes/threads.

User Global Area (UGA): This is memory associated with your session. It is located
either in the SGA or the PGA, depending whether you are connected to the
database using a shared server (it will be in the SGA), or a dedicated server (it will
be in the PGA).

22 февраля 2011 г.

oracle: сортировка

Совсем немного о сортировке
Сортировка, параметры SORT_AREA_SIZE, SORT_AREA_RETAINED_SIZE, PGA_AGGREGATE_TARGET, WORKAREA_SIZE_POLICY

Сортировку в основном порождают: операторы Create Index, Select .... Order By, Distinct, Group By, Union, а также неиндексированные соединения.
Оракл пытается выполнить сортировку в памяти. Если памяти недостаточно, то выполняется дисковая сортировка.

Какая сортировка чаще происходит можно посмотреть так:
select * from v$sysstat where name like 'workarea executions%'