RHEL6下安装Oracle_11g_R2笔记

Oracle 11g R2 installation notes
1.Create users and group
 
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba -m oracle
# passwd oracle
 
2.Modify system files
 
# vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 1717986918    #(ram)*1024*1024*1024*80%
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
fs.aio-max-nr = 1048576
net.ipv4.ip_local_prot_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
#sysctl -p
 
#vi /etc/security/limit.conf
       vi  /etc/security/limit.conf
       oracle           soft        nproc    2047
       oracle           hard      nproc    16384
       oracle           soft        nofile    1024
       oracle           hard      nofile    65536
 
#su - oracle
#vi ~.bash_profile
       export  ORACLE_BASE=/u01/app/oracle
       export  ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
       export  PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
 
#vi /etc/pam.d/login
       session required /lib/security/pam_limits.so
       session required pam_limits.so
 
3.Create directory & unzip
 
#mkdir -p /u01/app/oracle
#mkdir /u01/tmp
#chown -R oracle:oinstall /u01/
#chmod -R 755 /u01/
#unzip linux_11gR2_database_1of2.zip -d /u01/tmp/
#unzip linux_11gR2_database_2of2.zip -d /u01/tmp/
 
4.installation
 
#xhost +
#su - oracle
#cd /u01/tmp/database
#./runinstaller
…………
………………
………………
………………
#Install the missing package
………………
………………
Error:[INS-20802]Oracle Net Configuration Assistant failed.
Download patch:p8670579_112010_LINUX
#unzip p8670579_112010_LINUX -d /u01/
#cd 8670579
#@ORACLE_HOME/OPatch/opatch apply -invPtrLoc $ORACLE_HOME/oraInst.loc
……………………
………………
retry
………………
………………
# su - root
#./orainstRoot.sh
#./root.sh
………………
Done

你可能感兴趣的:(oracle)