Environment configuration scripts prior to Oracle installation

Source: Internet
Author: User
Tags dba i18n zip

The simplest type of writing is a fool

Oracle_database_linux32.zip is the name of the installation package

Configuration is simpler and more simple, so no variables are used

#!/bin/bash ################### Yum and rpm ################### touch/etc/yum.repos.d/1.repo echo "[1]" >/etc/yum.re Pos.d/1.repo echo "name=1 baseurl=file:///mnt/server gpgcheck=0" >>/etc/yum.repos.d/1.repo yum install-y gcc* Yum -y install binutils compat-db control-center glibc libxp libstdc++ libstdc++-devel make openmotif sysstat ################ # # # # language ######################### Echo ' lang= ' ZH_CN. UTF-8 "' >/etc/sysconfig/i18n echo ' lang=" en_US. UTF-8 "' >>/etc/sysconfig/i18n Echo ' sysfont=" Latarcyrheb-sun16 ">>/etc/sysconfig/i18n ############### Can shu ################################ sed-i '/kernel.shmall =/d '/etc/sysctl.conf sed-i '/kernel.shmmax =/d '/etc/sys ctl.conf sed-i '/kernel.sem =/d '/etc/sysctl.conf sed-i '/fs.file-max =/d '/etc/sysctl.conf sed-i '/net.ipv4.ip_local_p Ort_range =/d '/etc/sysctl.conf sed-i '/net.core.rmem_default =/d '/etc/sysctl.conf sed-i '/net.core.rmem_max =/d '/etc/ sysctl.conf sed-i '/net.core.wmem_default=/d '/etc/sysctl.conf sed-i '/net.core.wmem_max =/d '/etc/sysctl.conf echo ' kernel.shmall = 2097152 Kernel.shmmax = 21474  83648 Kernel.sem = 32000 128 Fs.file-max = 65536 Net.ipv4.ip_local_port_range = 1024 65000 Net.core.rmem_default = 262144 Net.core.rmem_max = 262144 Net.core.wmem_default = 262144 Net.core.wmem_max = 262144 "Sed-i ' s/5.6/3/g '/etc/redh" At-release ####### here uses the substitution, but fails, so can only delete and add ######/sbin/sysctl-p #################### ren zheng mo kuai ##################    # echo ' Oracle soft nproc 2047 Oracle hard nproc 16384 Oracle Soft Nofile 1024 Oracle Hard nofile 65536 ' >>/etc/security/limits.conf Echo ' session R Equired/lib/security/pam_limits.so ' >>/etc/pam.d/login ################## Yong Hu Huan Jing ################## ####### groupadd oinstall groupadd dba useradd-g oinstall-g dba Oracle passwd Oracle <<eof 123 123 EOF Hostname sq    1 echo "192.168.10.10Sq1 ">>/etc/hosts mkdir-p/oracle/app chmod 777/oracle chown-r oracle.oinstall/oracle su-oracle <<! echo "Oracle_base=/oracle/app oracle_home= $ORACLE _base/oracle/product/10.2.0/db_1 oracle_sid=test PATH= $PATH: $HOME /bin: $ORACLE _home/bin ld_library_path= $ORACLE _home/lib:/usr/lib lang=en_us. UTF-8 export oracle_base oracle_home oracle_sid PATH ld_library_path LANG ">> bash_profile source. Bash_profile CD /tmp unzip Oracle_database_linux32.zip exit!

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

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.