1.
oracle soft nproc 2047
2. oracle hard nproc 16384
3. oracle soft nofile 1024
4. oracle hard nofile 65536
c
修改
/etc/pam.d/login
添加如下内容
:
1. session required pam_limits.so
d
修改
/etc/prole
1. if [ $USER = "oracle" ] ; then
2. if [ $SHELL = "/bin/ksh" ]; then
3. ulimit -p 16384
4. ulimit -n 65536
5. else
6. ulimit -u 16384 -n 65536
7. fi
8. umask 022
9. fi
3
创建
oracle
属组并添加
oracle
用户
1. groupadd -g 501 oinstall
2. groupadd -g 502 dba
3. groupadd -g 601 asmadmin
4. groupadd -g 602 asmdba
5. groupadd -g 603 asmoper
6. useradd -u 1101 -g oinstall -G dba oracle
创建
oracle
软件安装目录
1. mkdir -p /opt/app/oracle
2. chown -R oracle:oinstall /opt/app/oracle
3. chmod -R 775 /opt
4 Oracle
环境变量
---oracle .bash_pro!le
1. # .bash_profile
2. # Get the aliases and functions
3. if [ -f ~/.bashrc ]; then
4. . ~/.bashrc
5. fi
6. # User specific environment and startup programs
7. PATH=$PATH:$HOME/bin:/opt/rac/oracle/opatch/OPatch
8. export PATH
9. umask 022
10. export ORACLE_BASE=/opt/app/oracle
11. export ORACLE_HOME=$ORACLE_BASE/11.2.0/product/db
12. export ORACLE_SID=orcl
13. export TNS_ADMIN=$ORACLE_HOME/network/admin
14. export ORA_NLS10=$ORACLE_HOME/nls/data
15. export PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH
评论