网站大量收购闲置独家精品文档,联系QQ:2885784924

centOS6.4下安装oracle11g介绍.doc

  1. 1、本文档共22页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
3. 设置Shell Limits 3.1 编辑/etc/security/limits.conf 文件,在该文件添加如下内容: 注意, 在这里设置之后,就不需要在去修改/etc/profile文件了。 for Oracle 11gR2: oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 3.2 修改/etc/pam.d/login 文件 在该文件添加如下内容: session required /lib64/security/pam_limits.so 3.3 修改/etc/profile, 添加如下内容: /etc/profile: 此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置. For the Bourne, Bash, or Korn shell, add the following lines to the /etc/profile file: if [ $USER = oracle ]; then if [ $SHELL = /bin/ksh ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi 4. 配置Kernel Parameters 编辑/etc/sysctl.conf 文件. 添加如下参数: # Controls the maximum shared segment size, in bytes --物理内存的一般 kernel.shmmax = 68719476736 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296 --物理内存除以pagesize -- 以上2个参数,都已经存在, 只需要调整一下参数大小 for 11gR2 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 注意:如果已经存在的值,大于这里的设置,就不要修改。 #sysctl –p //让内核参数生效 5. 添加用户组和用户,并为oracle用户设置密码 #groupadd oinstall #groupadd dba #useradd -g oinstall -G dba oracle #passwd oracle 6. 创建Oracle安装文件夹 mkdir -p /u01/app/oracle/11.2.0/db_1 chown -R oracle:oinstall /u01 chmod -R 777 /u01 7. 设置oracle用户的环境变量 [oracle@localhost ~]$ cat .bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH unset USERNAME BASH_ENV=$HOME/.bashrc export BASH_ENV export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=/u01/app/oracle/11.2.0/db_1 export ORACLE_SID=orcl export NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK export DISPLAY=:0

文档评论(0)

***** + 关注
实名认证
内容提供者

我是自由职业者,从事文档的创作工作。

1亿VIP精品文档

相关文档