chmod -R 700 /home/oracle/database
chown -R oracle:oinstall /home/oracle/database
6.设置oracle帐号登录时环境(以oracle身份登录):
编辑文件 vi /home/oracle/.bash_profile,添加如下行:
vim .bash_profile
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_home_1
export ORACLE_SID=aneos
export PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
export EDITOR=vim
umask 022
修改完之后 source .bash_profile 生效
7.设置Shell Limits
a.修改系统资源限制(在root帐号下操作):
编辑系统资源限制配置文件 vim /etc/security/limits.conf 在该文件下添加如下行: vim /etc/security/limits.conf
#for oracle
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
b.编辑文件 vi /etc/pam.d/login,添加如下行(11gR1有要求,R2没有要求): session required /lib/security/pam_limits.so
session required pam_limits.so
c. 编辑 vi /etc/profile 文件,添加如下行(11gR1有要求,R2没有要求):
if [ $USER = "oracle" ];then

