Oracle参数优化(系统参数和性能/功能参数)

发布时间 2023-07-18 10:40:41作者: 江曹

1. 操作系统层面的参数

1.1 关闭透明页

1.2 limits.conf文件的参数设置

# vi /etc/security/limits.conf
#<domain>      <type>     <item>         <value>

*               -         core           <value>

<domain> can be:

  • 可以是一个用户名
  • 可以是一个组名,用 @group 语法
  • 可以用 * 通配符,默认的

<type> can have two values:

  • soft 强制软限制
  • hard 强制硬限制
  • - 强制软限制和硬限制

<item> can be one of the following:

  • core - limits the core file size (KB)
  • data - max data size (KB)
  • fsize - maximum filesize (KB)
  • memlock - max locked-in-memory address space (KB)
  • nofile - max number of open files
  • rss - max resident set size (KB)
  • stack - max stack size (KB)
  • cpu - max CPU time (MIN)
  • nproc - max number of processes (see note below)
  • as - address space limit (KB)
  • maxlogins - max number of logins for this user
  • maxsyslogins - max number of logins on the system
  • priority - the priority to run user process with
  • locks - max number of file locks the user can hold
  • sigpending - max number of pending signals
  • msgqueue - max memory used by POSIX message queues (bytes)
  • nice - max nice priority allowed to raise to values: [-20, 19]
  • rtprio - max realtime priority