1、linux安装和配置ORACLE数据安装环境rootoralce # vncserver New :1 (root) desktop is :1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/:1.logrootoralce # lltotal 84-rw- 1 root root 3388 Oct 1 2012 anaconda-ks.cfgdrwxr-xr-x 2 root root 4096 Oct 1 13:51 Desktop-rw-r-r- 1 root root 51480
2、Oct 1 2012 install.log-rw-r-r- 1 root root 5062 Oct 1 2012 install.log.syslogrootoralce # groupadd oinstallrootoralce # groupadd operrootoralce # groupadd dbarootoralce # useradd -g oinstall -G dba,oper oraclerootoralce # paswwd oracle-bash: paswwd: command not foundrootoralce # passwd oracleChangin
3、g password for user oracle.New UNIX password: BAD PASSWORD: it is based on a dictionary wordRetype new UNIX password: passwd: all authentication tokens updated successfully.rootoralce # mkdir /u01rootoralce # chown -R oracle:oinstall /u01rootoralce # su - oracleoracleoralce $ lltotal 0oracleoralce $
4、oracleoralce $ vi .bash_profile # .bash_profile# Get the aliases and functionsif -f /.bashrc ; then . /.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATHexport ORACLE_SID=ponyexport ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1expo
5、rt PATH=$ORACLE_HOME/bin:$PATH1. Using any text editor, create or edit the /etc/sysctl.conf file, and add or edit lines similar to the following:Note:Include lines only for the kernel parameter values that you want to change. For the semaphore parameters (kernel.sem), you must specify all four value
6、s. However, if any of the current values are larger than the recommended value, then specify the larger value.kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 1048576
7、net.core.rmem_max = 1048576net.core.wmem_default = 262144net.core.wmem_max = 262144To increase the shell limits:Add the following lines to the /etc/security/limits.conf file:oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536Add or edit the following line in
8、the /etc/pam.d/login file, if it does not already exist:session required /lib/security/pam_limits.sosession required pam_limits.so1. Depending on the oracle users default shell, make the following changes to the default shell start-up file:For the Bourne, Bash, or Korn shell, add the following lines
9、 to the /etc/profile file (or the file on SUSE systems)/etc/profile.local:if $USER = oracle ; then if $SHELL = /bin/ksh ; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifiFor the C shell (csh or tcsh), add the following lines to the /etc/csh.login file (or the file on SUSE systems)/etc/csh.login.local:if ( $USER = oracle ) then limit maxproc 16384 limit descriptors 65536endif
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1