The System Global Area (SGA) is shared memory holding database cache buffers, redo log buffers, and the shared pool (library and dictionary cache).
The Program Global Area (PGA) is allocated exclusively to each Oracle server process, handling work areas for sorting, hash joins, and session state. Undersized PGA spills work units to TEMP tablespaces, degrading query latency.