脚本:
oracle@edwdb:~> id
uid=(oracle) gid=(oinstall) groups=(oinstall),(dba)
oracle@edwdb:~> su - root
Password:
由此可知 dba组的ID是1200,然后把1200加入到配置文件中:
/proc/sys/vm/hugetlb_shm_group
用root用户执行:
echo > /proc/sys/vm/hugetlb_shm_group
成功:
oracle@edwdb:~> sqlplus / as sysdba SQL*Plus: Release 10.2.0.1. - Production on Tue Mar :: Copyright (c) , , Oracle. All rights reserved. Connected to an idle instance. SQL> startup
ORACLE instance started. Total System Global Area bytes
Fixed Size bytes
Variable Size bytes
Database Buffers bytes
Redo Buffers bytes
Database mounted.
Database opened.
SQL>
SQL> exit
参考文章:http://www.eygle.com/archives/2011/12/hugepageshugetl.html
网上还有永久解决方案:
http://java-007.iteye.com/blog/1812280
仅此记录,以免忘记。