oracle内存管理
/*
内存自动管理
当前数据库内存是自动管理的,业务需求调整SGA的尺寸大小;
*/
调整之前
SQL> show parameter target NAME TYPE VALUE ------------------------------------ --------------------------------- ------------------------------ archive_lag_target integer 0 db_flashback_retention_target integer 1440 fast_start_io_target integer 0 fast_start_mttr_target integer 0 memory_max_target big integer 804M memory_target big integer 804M parallel_servers_target integer 16 pga_aggregate_target big integer 0 sga_target big integer 0
开始调整
SQL> alter system set memory_max_target=1024M scope=spfile; System altered. SQL> alter system set memory_target=1024M scope=spfile; System altered.
关闭数据库
SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down.
重新启库
SQL> startup ORACLE instance started. Total System Global Area 1068937216 bytes Fixed Size 2260088 bytes Variable Size 687866760 bytes Database Buffers 373293056 bytes Redo Buffers 5517312 bytes Database mounted. Database opened.
调整之后
SQL> show parameter target NAME TYPE VALUE ------------------------------------ --------------------------------- ------------------------------ archive_lag_target integer 0 db_flashback_retention_target integer 1440 fast_start_io_target integer 0 fast_start_mttr_target integer 0 memory_max_target big integer 1G memory_target big integer 1G parallel_servers_target integer 16 pga_aggregate_target big integer 0 sga_target big integer 0 SQL>