Parameter Values required by Oracle according to the documentation

The following tables list the required MINIMUM values according to the oracle documentation.

Parameter name in /etc/sysctl.confDescriptionMINIMUM value
kernel.sem“semmsl semmns semopm semmni”
kernel.sem:semmsltotal semaphores for each set250
kernel.sem:semmnstotal number of semaphores systemwide32000
kernel.sem:semopmMaximum number of operations for semop call100
kernel.sem:semmnitotal semaphore sets128
kernel.shmalltotal number of shared memory pages that can be used system wide2097152
kernel.shmmaxthe maximum size of a single shared memory segment in bytes that a linux process can allocateEither 4 GB – 1 byte, or half the size of physical memory (in bytes), whichever is lower.
Default: 536870912
kernel.shmmnisystem wide number of shared memory segments4096
fs.file-maxmaximum number of open files system-wide6815744
fs.aio-max-nrconcurrent outstanding i/o requests1048576
net.ip_local_port_rangeminimum and maximum ports for useMinimum: 9000

Maximum: 65500
net.rmem_defaultthe default size in bytes of the receive buffer262144
net.rmem_maxthe maximum size in bytes of the receive buffer4194304
net.wmem_defaultthe default size in bytes of the send buffer262144
net.wmem_maxthe maximum size in bytes of the send buffer1048576
Shell Limits for Oracle User
in /etc/security/limit.conf
DescriptionHard Limit
nofilenumber of open files65536
nprocnumber of processes16384
stackstack size in kb10240

/dev/shm file systemlargest value of MEMORY_MAX_TARGET or MEMORY_TARGET of all instances

Calculate the required values

The following table shows calculation formulas for setting the required kernel parameters for running oracle 11g release 2 on Linux.

Parameter name in /etc/sysctl.confDescriptionMINIMUM valueCalculation
kernel.sem“semmsl semmns semopm semmni”
kernel.sem:semmsltotal semaphores for each set256set fixed to 256
kernel.sem:semmnstotal number of semaphores systemwide320002 * sum (process parameters of all database instances on the system)
+ overhead for background processes
+ system and other application requirements
kernel.sem:semopmMaximum number of operations for semop call100set fixed to 100
kernel.sem:semmnitotal semaphore sets128semmns divided by semmsl, rounded UP to nearest multiple to 1024
kernel.shmalltotal number of shared memory pages that can be used system wide2097152ceil(shmmax/PAGE_SIZE).
(PAGE_SIZE is usually 4096 bytes unless Big/Huge Pages used)
get PAGESIZE by doing:
“getconf PAGESIZE”
kernel.shmmaxthe maximum size of a single shared memory segment in bytes that a linux process can allocateEither 4 GB – 1 byte, or half the size of physical memory (in bytes), whichever is lower.
Default: 536870912
largest value of SGA_MAX_SIZE, SGA_TARGET,MEMORY_MAX_SIZE or MEMORY_TARGET of all instances
kernel.shmmnisystem wide number of shared memory segments4096set fixed to 4096…did not find any formula
fs.file-maxmaximum number of open files system-wide6815744>= 6815744 (dont know why this large….but should be enough for most databases)
fs.aio-max-nrconcurrent outstanding i/o requests1048576no adjustment; set fix to 1048576
net.ip_local_port_rangeminimum and maximum ports for useMinimum: 9000
Maximum: 65500
no adjustment, fixed
net.rmem_defaultthe default size in bytes of the receive buffer262144>= 262144
net.rmem_maxthe maximum size in bytes of the receive buffer4194304>= 4194304
net.wmem_defaultthe default size in bytes of the send buffer262144>= 262144
net.wmem_maxthe maximum size in bytes of the send buffer1048576>= 1048576

**************************************************************************

Our Website : https://www.ksplsoft.com/

About Us:

KSPL is a leading group of highly skilled professional group, who are having more than 10 years of experience in various technologies. We are providing support and maintenance for existing product like RDBMS, Reporting, Cloud Solutions, Mobile development and Web development etc. Also we develop new product using various technologies like cloud, Unix, Database, Reports, Mobile applications and web designing and creation. With a team of dedicated and creative engineers, we focus on mentioned work/projects you to meet the challenges with tight deadline and trust to market.

Leave a comment

Design a site like this with WordPress.com
Get started