1. huge pages 设置大小的计算脚本

附在文档最后。

2.设置oracle用户的memlock

/etc/security/limit.conf

oracle soft memlock unlimited

oracle hard memlock unlimited

3. 设置huge pages

/etc/sysctl.conf

vm.nr_hugepages = xxxxx

#sysctl -p

4.oracle启用ASMM ,停用AMM

memory_max_target / memory_target 设置为0

sga_max_size / sga_target / pga_aggregate_target 手动设置

huge pages 设置大小的计算脚本:

#!/bin/bash

#

# hugepages_settings.sh

#

# Linux bash script to compute values for the

# recommended HugePages/HugeTLB configuration

#

# Note: This script does calculation for all shared memory

# segments available when the script is run, no matter it

# is an Oracle RDBMS shared memory segment or not.

#

# This script is provided by Doc ID 401749.1 from My Oracle Support

# http://support.oracle.com

# Welcome text

echo "

This script is provided by Doc ID 401749.1 from My Oracle Support

(http://support.oracle.com) where it is intended to compute values for

the recommended HugePages/HugeTLB configuration for the current shared

memory segments. Before proceeding with the execution please note following:

* For ASM instance, it needs to configure ASMM instead of AMM.

* The 'pga_aggregate_target' is outside the SGA and

you should accommodate this while calculating SGA size.

* In case you changes the DB SGA size,

as the new SGA will not fit in the previous HugePages configuration,

it had better disable the whole HugePages,

start the DB with new SGA size and run the script again.

And make sure that:

* Oracle Database instance(s) are up and running

* Oracle Database 11g Automatic Memory Management (AMM) is not setup

(See Doc ID 749851.1)

* The shared memory segments can be listed by command:

# ipcs -m

Press Enter to proceed..."

read

# Check for the kernel version

KERN=`uname -r | awk -F. '{ printf("%d.%d\n",$1,$2); }'`

# Find out the HugePage size

HPG_SZ=`grep Hugepagesize /proc/meminfo | awk '{print $2}'`

if [ -z "$HPG_SZ" ];then

echo "The hugepages may not be supported in the system where the script is being executed."

exit 1

fi

# Initialize the counter

NUM_PG=0

# Cumulative number of pages required to handle the running shared memory segments

for SEG_BYTES in `ipcs -m | cut -c44-300 | awk '{print $1}' | grep "[0-9][0-9]*"`

do

MIN_PG=`echo "$SEG_BYTES/($HPG_SZ*1024)" | bc -q`

if [ $MIN_PG -gt 0 ]; then

NUM_PG=`echo "$NUM_PG+$MIN_PG+1" | bc -q`

fi

done

RES_BYTES=`echo "$NUM_PG * $HPG_SZ * 1024" | bc -q`

# An SGA less than 100MB does not make sense

# Bail out if that is the case

if [ $RES_BYTES -lt 100000000 ]; then

echo "***********"

echo "** ERROR **"

echo "***********"

echo "Sorry! There are not enough total of shared memory segments allocated for

HugePages configuration. HugePages can only be used for shared memory segments

that you can list by command:

# ipcs -m

of a size that can match an Oracle Database SGA. Please make sure that:

* Oracle Database instance is up and running

* Oracle Database 11g Automatic Memory Management (AMM) is not configured"

exit 1

fi

# Finish with results

case $KERN in    '2.2') echo "Kernel version $KERN is not supported. Exiting." ;;

'2.4') HUGETLB_POOL=`echo "$NUM_PG*$HPG_SZ/1024" | bc -q`;

echo "Recommended setting: vm.hugetlb_pool = $HUGETLB_POOL" ;;

'2.6') echo "Recommended setting: vm.nr_hugepages = $NUM_PG" ;;

esac

# End

oracle 大页配置,ORACLE 启用大页内存相关推荐

  1. oracle 11g重新安装配置,Oracle 11g数据库安装和卸载教程

    Oracle11g的安装教程 同时解压缩两个zip文件,生成一个database文件夹,进入到database文件夹,点击setup 去掉安全更新的选项,直接下一步 选择创建和配置数据库,点击下一步 ...

  2. websphere配置oracle数据源,Websphere - 配置Oracle数据源

    Websphere 6.0下Oracle数据源配置 一.配置Oracle数据库 打开Oracle Enterprise Manager Console,右键点击数据库FLOW-〉查看/编辑详细资料-〉 ...

  3. oracle 数据库基础配置,Oracle数据库网络服务配置基础、SQL编程详解-Oracle

    Oracle数据库是目前世界上流行的关系数据库管理系统,系统可移植性好.使用方便.功能强,适用于各类大.中.小.微机环境.Oracle数据库的主要内容包括:表空间.用户权限.四种约束等基础概念,DDL ...

  4. oracle rac war配置,Oracle RAC安装配置流程

    系统部分 1.建立用户 2.设定IP 3.每个节点的IP解析 4.SSH的配置 为用户等效性配置SSH(在所有节点上执行) 在安装Oracle RAC 10g期间,OUI需要把文件复制到集群中的其他主 ...

  5. 系统dsn oracle,linux平台配置oracle odbc dsn的方法.docx

    linux平台配置oracle odbc dsn的方法.docx LINUX平台配置ORACLEODBCDSN的方法1DSN配置方法ORACLE11编辑配置文件一.OSRHEL5X86(ORACLED ...

  6. oracle中间键配置,Oracle Exalogic中间件云服务器简介及产品配置特点(2)

    Oracle Exalogic中间件云服务器 -- 软硬件结合的优化平台 目前,企业所面临的应用挑战大多集中在异构环境.复杂的多层应用以及现有环境的低利用率等.于是,企业开始根据实际业务需求和投资情况 ...

  7. oracle运行环境配置,oracle 环境配置开机自启动

    环境:centos 6.5 + oracle 11g 自启动之前问题 虚拟机里的oracle环境,每次重启完系统,用plsql developer连接,先是报错: 无TNS监听程序 解决方法是切换到系 ...

  8. Linux操作Oracle(10)——plsql配置Oracle客户端方法【Oracle客户端安装、资源下载】详细教程

    目录 1.安装Oracle客户端 2.配置Oracle客户端 打开Oracle客户端安装路径 编辑tnsoranames.ora配置文件

  9. oracle典型安装配置,Oracle的安装配置一些有关问题

    Oracle的安装配置一些问题 在win7下安装oracle要以管理员方式运行 1:配置了tnsname后访问不了远程服务器. 1)关闭远程服务器的DHCP. 2)关闭远程服务器的防火墙. 3)tel ...

最新文章

  1. nginx+tomcat配置负载均衡集群
  2. 一篇文章让你了解智能合约以及和区块链的关系
  3. oracle 10g 用户管理笔记
  4. 传输层TCP/UDP协议
  5. 2020-11-22(树,森林和二叉树转换)
  6. “约见”面试官系列之常见面试题之第四十七篇之前端页面的组成(建议收藏)
  7. python复制代码会被发现吗,我发现了一个记忆代码片段,我想知道它在复制。复制...
  8. 07-mysql基本查询,阶段二,条件查询
  9. Jmeter plugins 之 Perfmon Metrics Collector(服务器性能监控)
  10. C++之文件操作探究(三):写文件——二进制文件
  11. api 定位 微信小程序 精度_微信小程序城市定位(百度地图API)
  12. 启动XP出现“Operating System Not Found”
  13. linux多线程求和_(TCP IP网络编程)实验七 多线程编程
  14. oracle plsql update两个字段_Oracle 学习笔记(Windows 环境下安装 + PL/SQL)
  15. Mybatis学习(5)高级映射
  16. python学习-获取时光网电影TOP100电影信息
  17. 求n的阶乘并显示过程
  18. 无迹卡尔曼滤波UKF—目标跟踪中的应用(仿真部分)
  19. “泰迪杯”挑战赛 - 通过数据挖掘技术实现道路缺陷自动识别
  20. Android 音频源码分析——音量调节流程

热门文章

  1. 大话文本分类之Fnet
  2. 牛客华为机试第3题python
  3. pyqt5实战之自定义弹窗口
  4. python 协程并发
  5. JavaWeb系列之:Servlet
  6. 查看mysql是否安装成功和mysql的版本信息
  7. Hbase完全分布式的搭建
  8. openstack 云主机关机,自动running
  9. pku 3411 Paid Roads DFS+灵活技巧卡节点访问次数
  10. Linux下Gedit + Gmate ,实用的编辑器