Oracle SGA自动管理特性(sga_target参数)
Oracle SGA自动管理特性(sga_target参数)1、相关参数描述a、参数SHARED_POOL_SIZESHARED_POOL_SIZE = integer [K | M | G]Default valueIf SGA_TARGET is set: If the parameter is not specified, then the default is 0 (internally determined by the Oracle Database).If the parameter is specified, then the user-specified value indicates a minimum value for the memory pool.If SGA_TARGET is not set (32-bit platforms): 32 M, rounded up to the nearest granule size.If SGA_TARGET is not set (64-bit platforms): 84 M, rounded up to the nearest granule size.Range of values Minimum:the granule sizeMaximum:operating system-dependentb、参数SGA_TARGETSGA_TARGET = integer [K | M | G]Default value 0 (SGA autotuning is disabled)SGA_TARGET specifies the total size of all SGA components.If SGA_TARGET is specified, then the following memory pools are automatically sized:Buffer cache (DB_CACHE_SIZE)Shared pool (SHARED_POOL_SIZE)Large pool (LARGE_POOL_SIZE)Java pool (JAVA_POOL_SIZE)Streams pool (STREAMS_POOL_SIZE)If these automatically tuned memory pools are set to non-zero values, then those values are used as minimum levels by AutomaticShared Memory Management. You would set minimum values if an application component needs a minimum amount of memory to function properly.The following pools are manually sized components and are not affected by Automatic Shared Memory Management:Log bufferOther buffer caches, such as KEEP, RECYCLE, and other block sizesFixed SGA and other internal allocationsThe memory allocated to these pools is deducted from the total available for SGA_TARGET when Automatic Shared Memory Managementcomputes the values of the automatically tuned memory pools.2、参数sga_target为零值的情形[sql]--#编辑一个临时的参数文件,并设置sga_target=0,以及设定几个pool池的size,db_cache_size,如下robin@SZDB:/u02/database/SYBO2SZ> grep size SYBO2SZ.ora.tmp*.db_block_size=8192*.db_cache_size=285212672*.db_recovery_file_dest_size=1G*.java_pool_size=4194304*.large_pool_size=4194304*.shared_pool_size=293601280*.streams_pool_size=4194304robin@SZDB:/u02/database/SYBO2SZ> grep target SYBO2SZ.ora.tmp*.pga_aggregate_target=199229440*.sga_target=0--#使用临时的参数文件启动数据库robin@SZDB:/u02/database/SYBO2SZ> sqlplus / as sysdbaidle> startup pfile=/u02/database/SYBO2SZ/SYBO2SZ.ora.tmpORACLE instance started.---可以看到此时sga_target为0idle> show parameter sga_tarNAME TYPE VALUE------------------------------------ ----------- ------------------------------sga_target big integer 0-->查看此时内存分配的情况idle> SELECT name, VALUE2 FROM v$parameter3 WHERE name IN4 ('shared_pool_size',5 'java_pool_size',6 'streams_pool_size',7 'log_buffer',8 'db_cache_size',9 'db_2k_cache_size',10 'db_4k_cache_size',11 'db_8k_cache_size',12 'db_16k_cache_size',13 'db_32k_cache_size',14 'db_keep_cache_size',15 'db_recycle_cache_size',16 'large_pool_size');NAME VALUE------------------------------ --------------------shared_pool_size 293601280large_pool_size 4194304java_pool_size 4194304streams_pool_size 4194304db_cache_size 285212672db_2k_cache_size 0db_4k_cache_size 0db_8k_cache_size 0db_16k_cache_size 0db_32k_cache_size 0db_keep_cache_size 0db_recycle_cache_size 0log_buffer 612044813 rows selected.--使用临时的pfile来创建spfileidle> create spfile from pfile='/u02/database/SYBO2SZ/SYBO2SZ.ora.tmp';File created.3、参数sga_target非零值的情形[sql]--重启dbidle> startup force;ORACLE instance started.idle> select distinct isspecified from v$spparameter;ISSPEC------TRUE -->为true表名此时使用了spfile启动数据库FALSE--此时sga_max的值为572midle> show parameter sga_maxNAME TYPE VALUE------------------------------------ ----------- ------------------------------sga_max_size big intege上一个:"No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed."解决方法
下一个:Greenplum管理序列
- 更多Oracle疑问解答:
- 运行exp备份oracle数据库提示oracle-12154错误
- 有没有,生产Oracle Rman 备份脚本的工具啊!
- 初学orcle,希望有大大帮忙解说一下详细步骤,从登录oracle到创建表的过程
- oracle语句问题:一张user表,三个字段,id,name,time,插入记录比如:张三2007,李四2008,张三2011
- 如何写一个ORACLE触发器同步两个表中的数据?
- oracle 如何查看一个服务器上有多少个数据库.
- oracle 创建包的时候错误 求解
- oracle 重复列的问题
- oracle 中如何查处2星期前的数据
- 请教oracle数据库安装中的问题
- 请问谁能提供给我标准的oracle ERP的数据库表结构并详细说明各表主要的作用?
- 安装oracle遇到的问题 invalid entry CRC (expected 0x3e12e795 but got 0x9db0e9fd)
- 我的是ORACLE 10G,在RMAN中如何按指定的时间恢复数据文件啊?
- oracle为什么没有自动增长列
- oracle快捷键都有哪些啊?