rhel-6.5_x86-64 Installing Oracle-11.0.2.4 system settings

Source: Internet
Author: User

1. System Kernel parameter setting

Cat >>/etc/sysctl.conf << "EOF" ##### for ORACLE_11GR2 # # # # #fs. Aio-max-nr = 1048576 fs.file-max = 6815744 # ke rnel.shmall=2097152   # Kernel.shmmax=4195057664kernel.shmmni = 4096 Kernel.sem = 32000 Port_range = 9000 65500net.core.rmem_default = 262144 Net.core.rmem_max = 4194304 Net.core.wmem_default = 262144 Net.core. Wmem_max = 1048586EOF

RHEL 6 Shmall and Shmmax are configured to use the default settings, Shmmax is generally set to half of the system memory, 4195057664=4GB

After modification, the Execute command takes effect:

/sbin/sysctl-p


2. Modify User Restrictions

Cat >>/etc/security/limits.conf << "EOF" ##### for ORACLE_11GR2 # # # #oracle soft Nproc 2047oracle hard Nproc 1 6384oracle soft nofile 1024oracle Hard Nofile 65536EOFecho "session    required     pam_limits.so" >>/ETC/PAM.D /login


3. Modify the System configuration file

Cat >>/etc/profile << "EOF" ##### for ORACLE_11GR2 # # # # #if [$USER = "Oracle"]; Then     if [$SHELL = "/bin/ksh"], then ulimit-p 16384 ulimit-n 65536     else         ulimit-u 16384-n 65536     fi fi Eofcat >>/etc/csh.login << "EOF" ##### for ORACLE_11GR2 # # # # #if ($USER = = "Oracle") then     limit Maxproc 16 384     limit descriptors 65536     umask 022 endif EOF


4. Create Oracle user, prepare Oracle installation directory

/usr/sbin/groupadd Oinstall/usr/sbin/groupadd dba/usr/sbin/useradd-m-G oinstall-g dba Oracle echo "Oracle" |PASSWD--s Tdin oraclemkdir-p/opt/oracle/chown-r oracle:oinstall/opt/oracle/chmod-r 775/opt/oracle/  mkdir-p/opt/oraInven Tory chown-r Oracle:oinstall/opt/orainventorychmod-r 775/opt/orainventory


5. Modify the Oracle User profile

Cat >>/home/oracle/.bash_profile << "EOF" ##### for ORACLE_11GR2 # # # # #if [$USER = "Oracle"]; Then    if [$SHELL = "/bin/ksh"], then      ulimit-p 16384      ulimit-n 65536    else      ulimit-u 16384-n 65536
   fi fi umask 022export tmp=/tmp export tmpdir=/tmpexport oracle_base=/opt/oracleexport oracle_home= $ORACLE _base/ Product/11.2.0/dbhome_1export oracle_sid=orclexport oracle_unqname= $ORACLE _sid export Oracle_term=xtermexport LANG= en_US. Utf8export Nls_lang=american_america. Al32utf8#export nls_date_format= "Yyyy-mm-dd HH24:MI:SS" Export tns_admin= $ORACLE _home/network/adminexport LD_ Library_path= $ORACLE _home/lib:/usr/lib:/usr/x11r6/lib: $ORACLE _home/rdbms/libexport class_path= $ORACLE _home/jre: $ORACLE _home/jlib: $ORACLE _home/rdbms/jlib: $ORACLE _home/network/jlibexport path= $ORACLE _home/bin: $PATHEOF


6. Configuring the Hosts File

echo "192.168.0.10 oracle11g oracle11g.local" >>/etc/hosts


7, modify the Rhel version number, complete the Oracle installation and then change back

Sed-i '/red Hat Enterprise Linux Server release 6.5 (Santiago)/s/^/#/'/etc/redhat-releasesed-i ' a Red Hat enterprise Li Nux Server Release 5.0 (tikanga) '/etc/redhat-release


8. Turn off SELinux, firewall

Sed-i '/selinux=enforcing/s/^/#/'/etc/selinux/configsed-i '/#SELINUX =enforcing/a selinux=disabled '/etc/selinux/ Config

Firewall disabled via Rhel graphical management tool, reboot system after completion

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.