ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle11g_config

oracle11g_config

原创 Linux操作系统 作者:golden_zhou 时间:2011-03-10 10:59:14 0 删除 编辑

wmrac01<*ccptdb1*/home/oracle>$cat /etc/sysconfig/
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 34359738368
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 = 1048576

 

wmrac01<*ccptdb1*/home/oracle>$cat /etc/security/limits.conf
grid soft nproc 2047
grid hard nproc 32768
grid soft nofile 1024
grid hard nofile 250000

oracle soft nproc 2047
oracle hard nproc 32768
oracle soft nofile 1024
oracle hard nofile 250000

 

wmrac01<*ccptdb1*/home/oracle>$cat /etc/pam.d/login
session    required     pam_limits.so


wmrac01<*ccptdb1*/home/oracle>$cat /etc/profile
if [ \$USER = "oracle" ] || [ \$USER = "grid" ]; then
   if [ \$SHELL = "/bin/ksh" ]; then
        ulimit -p 16384
        ulimit -n 65536
   else
        ulimit -u 16384 -n 65536
   fi
   umask 022
fi


wmrac01<*ccptdb1*/home/oracle>$cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6

110.118.253.41    wmrac01
172.168.1.11     wmpri01
110.118.253.51    wmvip01


110.118.253.42    wmrac02
172.168.1.12     wmpri02
110.118.253.52    wmvip02

#single client access name(scan)
110.118.253.59    wmscan


wmrac01<*ccptdb1*/home/oracle>$cat /home/oracle/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

BASH_ENV=$HOME/.BASHRC
export BASH_ENV

export TEMP=/tmp
export TMPDIR=/tmp

PATH=$PATH:$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin
PATH=${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/product/common/oracle/bin
export PATH

export ORACLE_SID=ccptdb1
ORACLE_BASE=/u01/product/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/11.2.0/db_1; export ORACLE_HOME
ORACLE_TERM=vt100;export ORACLE_TERM
export PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH

#GRID_BASE=/u01/product/grid/crs; export ORACLE_BASE
#GRID_HOME=/u01/product/grid/11.2.0; export ORACLE_HOME
#export PATH=$GRID_HOME/bin:$PATH

JAVA_HOME=/usr/local/java;export JAVA_HOME
CLASSPATH=$ORACLE_HOME/JRE
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH

set -u
#PS1=`hostname`'<$PWD>$';export PS1
PS1=`hostname`'<*$ORACLE_SID*$PWD>$';export PS1
EDITOR=/bin/vi; export EDITOR

alias ll='ls -l';
alias ls='ls --color';
alias his='history';


wmrac01<*ccptdb1*/home/oracle>$cat /home/grid/.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:/bin:/sbin:/usr/bin:/usr/sbin
BASH_ENV=$HOME/.BASHRC

export BASH_ENV PATH
unset USERNAME

export TEMP=/tmp
export TMPDIR=/tmp

JAVA_HOME=/usr/local/java;export JAVA_HOME
CLASSPATH=$ORACLE_HOME/JRE
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export CLASSPATH

PATH=${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
PATH=${PATH}:/u01/product/common/oracle/bin
export PATH


export ORACLE_SID=+ASM1
ORACLE_BASE=/u01/product/grid/crs; export ORACLE_BASE
ORACLE_HOME=/u01/product/grid/11.2.0; export ORACLE_HOME
ORACLE_TERM=vt100;export ORACLE_TERM
LD_LIBRARY_PATH=$ORACLE_HOME/lib;export LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$PATH

set -u
#PS1=`hostname`'<$PWD>$';export PS1
PS1=`hostname`'<*$ORACLE_SID*$PWD>$';export PS1
EDITOR=/bin/vi; export EDITOR

alias ll='ls -l';
alias ls='ls --color';
alias his='history';

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25198367/viewspace-688921/,如需转载,请注明出处,否则将追究法律责任。

上一篇: oracle10g_config
请登录后发表评论 登录
全部评论

注册时间:2011-03-09

  • 博文量
    238
  • 访问量
    300847