Home >Database >Mysql Tutorial >设置Oralce自动内存管理

设置Oralce自动内存管理

WBOY
WBOYOriginal
2016-06-07 17:28:23987browse

设置Oralce自动内存管理 启用Oracle自动内存管理需要shutdown ,restart 1.确定sga pga内存大小: SHOW PARAMETER TARGET 2.确定

设置Oralce自动内存管理
 
启用Oracle自动内存管理需要shutdown ,,restart
 
1.确定sga pga内存大小:
 SHOW PARAMETER TARGET
 
2.确定自数据库启动以来pga最大的使用大小:
 select value from v$pgastat where;
 
3.计算memory_target大小:
 memory_target = sga_target + max(pga_aggregate_target, maximum PGA
allocated)
 
4.设置memory_target
 ALTER SYSTEM SET MEMORY_MAX_TARGET =  nM SCOPE = SPFILE;
 
MEMORY_MAX_TARGET is not a dynamic initialization parameter.
 
如果使用的是 text initialization parameter file 需要编辑以下两个参数:
 
memory_max_target =  nM
 memory_target = mM
 
5. Shut down and restart the database.

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn