在Solaris 10/OpenSolaris上为Oracle安装设置内核参数
2010-09-03 11:23
573 查看
如果使用Solaris系统缺省的内核参数,会导致创建数据库时出现Out of memory错误。
Solaris 10以前的版本是在/etc/system中设置系统参数,这种方式在Solaris 10/OpenSolaris中已经不用。
取而代之的是基于project的配置方式。以下内容节选自http://ebenze.wordpress.com/2008/07/31/step-install-oracle-10g-r2-on-solaris-10-x86/
#projadd oracle [This command will create a new 'resource project']
edit the /etc/user_attr file:
adm::::profiles=Log Management
lp::::profiles=Printer Management
root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no
oracle::::project=oracle [add this line]
then:
#su – oracle
$ id -p
$ prctl -n project.max-shm-memory -i project oracle
The display look like this:
project: 100: oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 126MB – deny -
system 16.0EB max deny -
leaving the oracle user still connected in the original one Then, as root in the new terminal, you can issue this command:
#prctl -n project.max-shm-memory -v 4gb -r -i project oracle [create max memory to 4GB]
As soon as you’ve issued that command, switch back to the oracle user’s session and re-issue the earlier command:
$ prctl -n project.max-shm-memory -i project oracle
Note:
#prctl -n project.max-shm-memory -v 4gb -r -i project oracle [this setting will lost after reboot]
to set permanently, run this: #projmod -s -K "project.max-shm-memory=(priv,4gb,deny)" oracle
D. Performing the Oracle Installation
4gb对有些系统还是小了些,可根据情况适当增加该值。
Solaris 10以前的版本是在/etc/system中设置系统参数,这种方式在Solaris 10/OpenSolaris中已经不用。
取而代之的是基于project的配置方式。以下内容节选自http://ebenze.wordpress.com/2008/07/31/step-install-oracle-10g-r2-on-solaris-10-x86/
#projadd oracle [This command will create a new 'resource project']
edit the /etc/user_attr file:
adm::::profiles=Log Management
lp::::profiles=Printer Management
root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no
oracle::::project=oracle [add this line]
then:
#su – oracle
$ id -p
$ prctl -n project.max-shm-memory -i project oracle
The display look like this:
project: 100: oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-shm-memory
privileged 126MB – deny -
system 16.0EB max deny -
leaving the oracle user still connected in the original one Then, as root in the new terminal, you can issue this command:
#prctl -n project.max-shm-memory -v 4gb -r -i project oracle [create max memory to 4GB]
As soon as you’ve issued that command, switch back to the oracle user’s session and re-issue the earlier command:
$ prctl -n project.max-shm-memory -i project oracle
Note:
#prctl -n project.max-shm-memory -v 4gb -r -i project oracle [this setting will lost after reboot]
to set permanently, run this: #projmod -s -K "project.max-shm-memory=(priv,4gb,deny)" oracle
D. Performing the Oracle Installation
4gb对有些系统还是小了些,可根据情况适当增加该值。
相关文章推荐
- 在Solaris 10/OpenSolaris上为Oracle安装设置内核参数
- Solaris 10上为Oracle 11G安装设置内核参数
- solaris 10 安装 oracle 11g R2内核参数设置
- Solaris 10 安装oracle 11g 参数设置
- 安装ORACLE时在Linux上设置内核参数的含义
- 安装ORACLE时在Linux上设置内核参数的含义
- Oracle安装-Linux内核参数-共享内存信号量设置
- Linux 内核参数设置于详解 --Oracle 安装
- 安装ORACLE时在Linux上设置内核参数的含义
- 在linux上安装oracle设置内核参数的说明
- 安装ORACLE时在Linux上设置内核参数的含义
- oracle安装内核参数设置
- 浅谈安装ORACLE时在Linux上设置内核参数的含义
- 【安装oracle——准备工作】配置内核参数+添加用户组及用户+为oracle用户配置shell限制+创建目录结构+设置oracle环境
- 安装Oracle时在Linux上设置内核参数
- 安装ORACLE时在Linux上设置内核参数的含义
- Oracle安装-Linux内核参数-共享内存信号量设置
- 安装ORACLE时在Linux上设置内核参数的含义
- linux 下安装Oracle 自动设置sysctl.conf 相关内核参数的脚本
- 安装ORACLE时在Linux上设置内核参数的含义