今天在Redhat 6.4上面装了一个Oracle 10.2.0.1,但是通过DBCA建库的时候报错了
经过查找资料,得出问题:
Oracle文档上关于ORA-27125错误的描述为:
ORA-27125: unable to create shared memory segment
Cause: shmget() call failed
Action: contact Oracle support
查询了一下,发现问题和linux上的hugetbl有关。
解决方法也很简单,首先检查oracle用户的组信息:
[root@rhel Packages]# id oracle
uid=500(oracle) gid=502(oinstall) groups=502(oinstall),500(dba),501(oper)
[root@rhel Packages]# more /proc/sys/vm/hugetlb_shm_group
0
下面用root执行下面的命令,将dba组添加到系统内核中:
[root@rhel Packages]# echo 500 >/proc/sys/vm/hugetlb_shm_group
然后启动数据库,问题消失。