author: zhanglin
time : 2014.11.04
环境:
os : redhat 6.1
oracle:10.2.0.1
启动数据库实例linke的时候报错:
[oracle@zhanglin dbs]$ export ORACLE_SID=linke
[oracle@zhanglin dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Nov 4 03:58:33 2014
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup mount;
ORA-27125: unable to create shared memory segment
Linux-x86_64 Error: 1: Operation not permitted
SQL>
分析:
这和linux的hugepage有关,我的版本是RedHat6.1,可能在创建共享段时需要用到hugepage,有权限限制
解决:
[oracle@testmysql dbs]$ id oracle
uid=500(oracle) gid=501(oinstall) groups=501(oinstall),500(dba)
在root用户下执行:
[root@zhanglin bin]# echo 500 >/proc/sys/vm/hugetlb_shm_group
这个只是在这个会话中解决,若永久生效需要在sysctl.conf 文件中添加:
vm.hugetlb_shm_group = 500
使修改生效
[root@zhanglin bin]# sysctl -p
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30936525/viewspace-2016701/ ,如需转载,请注明出处,否则将追究法律责任。