Environment:
Operating System: RedHat 5.3 64bit
Oracle version: Release 10.2.0.1.0
The following error occurs when you start a test Oracle Database today:
SQL> startup
ORA-27125: unable to create shared memory segment
Linux-x86_64 Error: 1: Operation not permitted
The error message shows that Oracle cannot be started because shared memory cannot be created. We found that this problem is related to hugetbl in Linux through google query. We can solve this problem using the following two methods:
① Manually modify/proc/sys/vm/hugetlb_shm_group
# More/proc/sys/vm/hugetlb_shm_group
0
# Id oracle
Uid = 504 (oracle) gid = 505 (oinstall) groups = 505 (oinstall), 504 (dba)
# Echo 504>/proc/sys/vm/hugetlb_shm_group
② Modify the kernel
# More/proc/sys/vm/hugetlb_shm_group
0
# Id oracle
Uid = 504 (oracle) gid = 505 (oinstall) groups = 505 (oinstall), 504 (dba)
# Vim/etc/sysctl. conf
···
Vm. hugetlb_shm_group = 504
# Sysctl-p
Note that you can only use root modification to add the dba group id to internal medicine. After modification, restart Oracle.
SPFILE error causing database startup failure (ORA-01565)
ORA-01172, ORA-01151 error handling
ORA-00600 [2662] troubleshooting