Oracle Database - Shared Pool

About

Portion of the SGA that contains shared memory constructs such as shared SQL areas.

Articles Related

shared_pool_size in parallel execution

Parallel servers communicate among themselves and with the Query Coordinator by passing messages. The messages are passed via memory buffers that are allocated from the shared pool. When a parallel server is started it will allocate buffers in the shared pool so it can communicate, if there is not enough free space in the shared pool to allocate the buffers the parallel server will fail to start.

In order to size your shared pool appropriate you should use the following formulas to calculate the additional overhead parallel servers will put on the shared pool. If you are doing inter-node parallel operations

(((2 + (cpu_count X parallels_threads_per_cpu)) X 2) X (cpu_count X parallels_threads_per_cpu)) X
parallels_execution_message_size X # concurrent queries

or when you use cross instance parallel operation in a RAC environment.

(((2+ (cpu_count X 2)) X 4) X cpu_count X 2)) X parallel_execution_message_size X # concurrent queries

Note the results are returned in bytes.

Only the memory needed for the parallel_min_servers will be preallocated from the shard_pool at database startup. As additional parallel servers are needed, their memory buffers will be allocated “on the fly” from the shared pool. These rules apply irrespective of whether you use shared_pool_size directly, or sga_target (10g and higher) or memory_target (starting with 11g)

Documentation / Reference

  • Bookmark "Oracle Database - Shared Pool" at del.icio.us
  • Bookmark "Oracle Database - Shared Pool" at Digg
  • Bookmark "Oracle Database - Shared Pool" at Ask
  • Bookmark "Oracle Database - Shared Pool" at Google
  • Bookmark "Oracle Database - Shared Pool" at StumbleUpon
  • Bookmark "Oracle Database - Shared Pool" at Technorati
  • Bookmark "Oracle Database - Shared Pool" at Live Bookmarks
  • Bookmark "Oracle Database - Shared Pool" at Yahoo! Myweb
  • Bookmark "Oracle Database - Shared Pool" at Facebook
  • Bookmark "Oracle Database - Shared Pool" at Yahoo! Bookmarks
  • Bookmark "Oracle Database - Shared Pool" at Twitter
  • Bookmark "Oracle Database - Shared Pool" at myAOL
 
database/oracle/shared_pool.txt · Last modified: 2011/03/07 09:20 by gerardnico