Oracle 参数 MEMORY_TARGET 官方解释,作用,如何配置最优化建议
MEMORY_TARGET参数,可以控制Oracle数据库使用的内存大小,一般情况下,Oracle会根据系统的物理内存进行自动调节,但是如果要针对特定的进程进行特别的控制,则需要设置MEMORY_TARGET参数,这个参数控制着Oracle进程可以使用的最大内存大小。
正确设置MEMORY_TARGET参数的步骤如下:
1.确定Oracle进程需要使用多少内存,即需要设置多大的MEMORY_TARGET参数;
2.使用SQL *Plus连接数据库,以sys用户登录,并启用管理视图:
SQL execute sys.DBMS_SYSCTL.SET_INT_PARAM_IN_MEMORY( MEMORY_TARGET ,要设的值);
3.执行 Alter system switch logfile; 命令以使内存参数立即生效。
4.重新连接数据库,查看内存分配情况,使用“show sga” 命令确定所设的MEMORY_TARGET值的正确性。
官方英文解释 MEMORY_TARGET specifies the Oracle systemwide usable memory. The database tunes memory to the MEMORY_TARGET value, reducing or enlarging the SGA and PGA as needed.0 (SGA autotuning is disabled for DEFERRED mode autotuning requests, but allowed for IMMEDIATE mode autotuning requests)
MEMORY_TARGET should be set higher than or equal to the sum of the current sizes of the SGA and PGA.
In a text-based initialization parameter file, if you omit MEMORY_MAX_TARGET and include a value for MEMORY_TARGET, then the database automatically sets MEMORY_MAX_TARGET to the value of MEMORY_TARGET. If you omit the line for MEMORY_TARGET and include a value for MEMORY_MAX_TARGET, the MEMORY_TARGET parameter defaults to zero. After startup, you can then dynamically change MEMORY_TARGET to a nonzero value, provided that it does not exceed the value of MEMORY_MAX_TARGET.
Total memory usage can grow beyond the value of MEMORY_TARGET. For example, memory is allocated to PL/SQL tables and varrays regardless of the value of MEMORY_TARGET as long as memory is available at the operating system level.
In the Default value field, IMMEDIATE mode autotuning requests are necessary to avoid ORA-04031 errors. The DEFERRED and IMMEDIATE modes are reflected in the OPER_MODE column of the V$MEMORY_RESIZE_OPS view.
Note:
The default value of SGA_MAX_SIZE depends on the values of MEMORY_TARGET and MEMORY_MAX_TARGET.
See Also:
Oracle Database
Administrator’s Guide for more information about managing memory
Oracle Multitenant
Administrator s Guide for information about the initialization parameters that control the memory usage of PDBs
我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题
本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 Oracle 参数 MEMORY_TARGET 官方解释,作用,如何配置最优化建议
相关文章
- Oracle 视图 USER_COL_PRIVS 官方解释,作用,如何使用详细说明
- Oracle 视图 USER_MVIEW_LOGS 官方解释,作用,如何使用详细说明
- Oracle 参数 CLIENT_RESULT_CACHE_LAG 官方解释,作用,如何配置最优化建议
- Oracle 参数 CREATE_BITMAP_AREA_SIZE 官方解释,作用,如何配置最优化建议
- Oracle 参数 DB_KEEP_CACHE_SIZE 官方解释,作用,如何配置最优化建议
- Oracle 参数 ENABLE_DDL_LOGGING 官方解释,作用,如何配置最优化建议
- Oracle 参数 INMEMORY_TRICKLE_REPOPULATE_SERVERS_PERCENT 官方解释,作用,如何配置最优化建议
- Oracle 参数 LOG_ARCHIVE_MIN_SUCCEED_DEST 官方解释,作用,如何配置最优化建议
- Oracle 参数 MIN_AUTH_SERVERS 官方解释,作用,如何配置最优化建议
- Oracle 参数 PLSCOPE_SETTINGS 官方解释,作用,如何配置最优化建议
- Oracle 参数 PLSQL_OPTIMIZE_LEVEL 官方解释,作用,如何配置最优化建议
- Oracle服务名配置流程:快速获取结果(oracle服务名配置)
- 配置Oracle服务器必备参数(oracle配置参数)
- Oracle安装遇到瓶颈:该怎么办?(oracle安装卡住了)
- Oracle连接端口:查询并解决配置问题(查oracle端口)
- 优化 Oracle 数据库性能的秘诀(oracle配置优化)
- Oracle官方在线文档:构建技术知识库(oracle官方在线文档)
- 的时候出现问题处理Oracle取序列遇到的困难(oracle取序列)
- 初探Oracle触发器:探索不同类型的可能性(oracle触发器类型)
- Oracle如何实现动态执行SQL语句?(oracle动态执行)
- Oracle基础知识入门:学习更好用的数据库(oracle基础书籍)
- 如何为Oracle存储过程添加注释?(oracle存储过程注释)
- Oracle全套序列号汇总大全(oracle所有序列号)
- 拥抱新机遇,挑战Oracle OCA认证考试!(oracle认证oca)
- 成功构建Oracle数据库连接:配置指南(oracle数据库连接配置)
- Oracle 国内加速:构建最佳镜像体验(oracle国内镜像)
- 如何使用CMD快速配置Oracle环境(cmd oracle步骤)
- 研究Oracle中的标志符号(oracle什么符号)
- Oracle乱码照样能安装(oracle乱码能安装吗)
- Oracle中文题库通往知识智慧之途(oracle中文题库)
- 语句Oracle数据库中的Equal语句的使用(oracle中equal)
- Oracle 下载完毕新的起点开启(oracle下载完之后)
- Oracle TAF技术保障客户体验的稳定性(oracle taf技术)
- Oracle PK锁机制及其应用(oracle pk锁)