Redhat linux 5 oracle install shell script

Source: Internet
Author: User

Redhat linux 5 oracle install shell script #! /Bin/bashecho "download the ORACLE Installation dependency file" yum install-y compat-db pdksh sysstat screen libXp compat-libstdc ++ * yum install gcc-c ++ glibc libstdc ++ libstdc ++-devel make libaio-devel readline-devel gcc-c ++ glibc-common libstdc ++-devel pdksh xscreensaver setarch echo "add ORACLE user group" groupadd oinstallgroupadd dba echo "add ORACLE Management User" useradd-g oinstall-G dba oracle echo "generate ORACLE system detection file redhat-release" mv/etc/redhat-release/etc/redhat-release.baktouch/etc /redhat-releaseecho "redhat-4">/etc/redhat-releaseecho "display ORACLE system detection file content" cat/etc/redhat-release echo "adjust system resource parameter limit" echo "# ----------- oracle OS system paramter add ------------------ ">/etc/sysctl. confecho "kernel. shmmni = 4096 ">/etc/sysctl. conf echo "kernel. sem = 250 32000 100 128 ">/etc/sysctl. conf echo "fs. file-max = 65536 ">/etc/sysctl. conf echo "net. ipv4.ip _ local_port_range = 1024 65000 ">/etc/sysctl. conf echo "net. core. rmem_default = 262144 ">/etc/sysctl. conf echo "net. core. rmem_max = 262144 ">/etc/sysctl. conf echo "net. core. wmem_default = 262144 ">/etc/sysctl. conf echo "net. core. wmem_max = <262144> </262144> ">/etc/sysctl. conf echo "displays system resource Adjustment Parameters" cat/etc/sysctl. confecho "------------ SYSTEM parameters take effect ------------------" sysctl-p echo "modify ORACLE management user resource limit" echo "# ----------------- oracle system edit ----------------" echo "oracle soft nproc 2047">/etc /security/limits. confecho "oracle hard nproc 16384">/etc/security/limits. confecho "oracle soft nofile 1024">/etc/security/limits. confecho "oracle hard nofile 65536">/etc/security/limits. conf echo "Modify/etc/pam. d/login "echo" # ----------- oracle pam login edit ------------------- "echo" session required pam_limits.so ">>>/etc/pam. d/loginecho "display/etc/pam. d/login modify content "cat/etc/pam. d/loginecho "Modify/etc/profile modify ORACLE manage USER system resource limit" cat <EOF>/etc/profileif [$ USER = "oracle"]; then if [$ SHELL = "/bin/ksh"]; then ulimit-p 16384 ulimit-n 65536 else ulimit-u 16384-n 65536 faster ieof echo "create ORACLE_BASE ORACLE_HOME" mkdir-p/u01/app/oracle/product/10.2.0/db_1/ chown-R oracle: oinstall/u01/app/oracle/echo "Modify Temporary Folder write permission" chmod 777/tmp/cat <EOF>/home/oracle /. bash_profileTMP =/tmpexport tmpdir = $ TMPexport export =/u01/app/oracleexport export = $ ORACLE_BASE/product/10.2.0/db_1export export = jzmtexport export = xtermexico port export = $ ORACLE_HOME/lib: /lib:/usr/libexport restart = $ ORACLE_HOME/JRE: $ ORACLE_HOME/jlib: $ ORACLE_HOME/rdbms/jlibexport CLASSPATHORACLE_HOSTNAME = oradbexport ORACLE_HOSTNAMEPATH =/usr/sbin: $ PATHexport PATHPATH = $ ORACLE_HOME/bin: $ PATHexport PATHEOF su oraclesource/home/oracle /. bash_pfofilecd/tmp/database. /runInstaller-silent-responseFile/tmp/database/response/user_enterprise.rsp

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.