官术网_书友最值得收藏!

Changing SGA and PGA sizes

Oracle instance is made up of background processes and the shared memory (SGA). The background processes perform the maintenance tasks that are required to keep the database running. These background processes operate on the allocated shared memory. For example, one of the background process (PMON) is responsible for cleaning up (releasing locks and resources) after abnormally terminated database connections.

There are two types of memory that Oracle instance allocates:

  • System Global Area (SGA): This is a shared memory area that contains database buffers, shared SQL and PL/SQL, and other control information for the instance.
  • Process Global Area (PGA): This memory is private to a single process. PGA keeps process-specific information such as Oracle shared resources being used by a process, operating system resources used by the process, and other database session related information.

Oracle Database XE uses Automatic Memory Management (AMM) . This means Oracle Database XE dynamically manages SGA and PGA memories. AMM uses the MAX_TARGET initialization parameters to manage the instance memory. Oracle instance dynamically redistributes the memory between SGA and PGA based on the memory requirements when operating in the AMM mode.

Individual sizes of SGA and PGA can be set using the SGA_TARGET and PGA_AGGREGATE_TARGET parameters respectively. The maximum amount of memory that Oracle Database 11g XE allows for MEMORY_TARGET (SGA and PGA together) is 1 GB.

To change AMM memory, and SGA and PGA parameters, set MEMORY_TARGET to 1 GB as shown in the following command:

SQL> ALTER SYSTEM SET memory_target = 1G SCOPE=spfile; System altered. SQL> 
  1. Set the SGA_TARGET value using the ALTER SYSTEM command as shown in the following screenshot.
  2. Set the PGA_AGGREGATE_TARGET value as shown in the following screenshot.
  3. Restart the database so that the new values of AMM, SGA, and PGA take effect.
Changing SGA and PGA sizes
主站蜘蛛池模板: 兴义市| 城步| 仁怀市| 武强县| 兴仁县| 定陶县| 乌审旗| 桂林市| 报价| 竹北市| 平定县| 巨鹿县| 璧山县| 丰都县| 东乌珠穆沁旗| 淮南市| 三门峡市| 将乐县| 股票| 增城市| 双辽市| 乐都县| 铁力市| 嘉黎县| 都昌县| 工布江达县| 娄烦县| 郓城县| 新乐市| 鄂州市| 扶绥县| 邳州市| 色达县| 宜黄县| 岱山县| 周至县| 蒲城县| 合川市| 婺源县| 阳曲县| 五河县|