+ -
当前位置:首页 → 问答吧 → ORA-27123 unable to attach to shared memory segment

ORA-27123 unable to attach to shared memory segment

时间:2010-09-02

来源:互联网

本帖最后由 mfkwwgi 于 2010-09-02 15:05 编辑

至强四核处理器.
系统安装redhat enterprise linux server release 5.4(Tikanga)
8G内存,
在安装oracle 10g 创建数据库的时候报:
ORA-27123   unable to attach to shared memory segment


[localhost /]$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 143360
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 143360
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
[localhost /]$

[localhost /]$ cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl( and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 0

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456


# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
[localhost /]$
这是怎么回事呢?

作者: mfkwwgi   发布时间: 2010-09-02

把/etc/sysctl.conf
文件中的kernel.shmmax  修改成6442450944  

然后重启下主机  然后再来安装

作者: duolanshizhe   发布时间: 2010-09-02

是的.OK了.谢谢.duolanshizhe 兄.
我在网上看的.说kernel.shmmax 都只要设置物理内存的一半就行了.为什么8G内存要设置6G呢?

作者: mfkwwgi   发布时间: 2010-09-02