error: unknown error 22 setting key 'kernel.shmmax'

tolywang發表於2008-01-31

/etc/sysctl.conf 設定注釋,發現報錯 。

error: unknown error 22 setting key 'kernel.shmmax'

[@more@]

# Added by DBA for Oracle DB
kernel.shmall = 2097152
kernel.shmmax = 2147483648 # Half the size of physical memory (in bytes)
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144


[root@gnd-rac02 etc]#
[root@gnd-rac02 etc]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
kernel.shmall = 2097152
error: unknown error 22 setting key 'kernel.shmmax'
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
[root@gnd-rac02 etc]#

刪除掉 # Half the size of physical memory (in bytes)

之後 # sysctl -p 噝姓?A

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-998989/,如需轉載,請註明出處,否則將追究法律責任。

相關文章