好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

oracle11gr1下的安装脚本.docx

6页
  • 卖家[上传人]:xiao****1972
  • 文档编号:84084921
  • 上传时间:2019-03-02
  • 文档格式:DOCX
  • 文档大小:15.47KB
  • / 6 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • /bin/sh######################################################################### note#the script is set parameters for set up oracle on redhat system.Iso image source, #yum install rpm packages and you can vnc to install the Oracle database.#version 1.0#environment: #1) sys - Red Hat Enterprise Linux Server release 6.3 (Santiago) x86_64 GNU/Linux#2) oracle - linux.x64_11gR2_database#3) run script: 1 chmod 777 setup_oracle11g_rh6.3_x64.sh 2 ./setup_oracle11g_rh6.3_x64.sh############################################################################ set parameters config start!#oracle setup dirorasetdir=/u01/app;dbsid=orcl;packagefiles1='pdksh-5.2.14-37.el5_8.1.x86_64.rpm';packserver=ServerSetOra;sysbitstr="x86_64";sysnamestr='Red Hat Enterprise Linux Server release 6';#### set parameters config end!## set mypath=$PWD;vardate=`date +%Y%m%d%H%M%S`;i=0;let i=$i+1;printf "....................................................................$i \n";printf "place wait installing package ..... \n";#### Check the environment start ! ##check if [ ! $USER = root ];then printf "Please rerun this script as root ."; exit; filet i=$i+1;printf "....................................................................$i \n";##chck systemsysbit=/proc/version;sysname=/etc/redhat-release; if (grep "$sysnamestr" $sysname) && (grep $sysbitstr $sysbit) ; then printf "chck system ok ! \n "; cat $sysname; cat $sysbit; else printf "chck system error ! \n "; cat $sysname; cat $sysbit; exit; fi##Check yum(undo)let i=$i+1;printf "....................................................................$i \n";##check package filesif [ -f $mypath"/"$packserver"/"$packagefiles1 ]; then printf "check package files ok ! \n "; else printf "check package files error ! \n "; exit;fi#### Check the environment end !let i=$i+1;printf "....................................................................$i \n";printf "place wait installing package .................... \n";if true ; then #rpm rpm -ivh $mypath"/"$packserver"/"$packagefiles1 #yum install pakage yum install binutils -y yum install compat-libstdc++-33 -y yum install compat-libstdc++-33.i686 -y yum install elfutils-libelf -y yum install elfutils-libelf-devel -y yum install gcc -y yum install gcc-c++ -y yum install glibc -y yum install glibc.i686 -y yum install glibc-common -y yum install glibc-devel -y yum install glibc-devel.i686 -y yum install glibc-headers -y yum install libaio -y yum install libaio.i686 -y yum install libaio-devel -y yum install libaio-devel.i686 -y yum install libgcc -y yum install libgcc.i686 -y yum install libstdc++ -y yum install libstdc++.i686 -y yum install libstdc++-devel -y yum install make -y yum install numactl-devel -y yum install sysstat -y yum install unixODBC -y yum install unixODBC.i686 -y yum install unixODBC-devel -y yum install unixODBC-devel.i686 -y yum install tigervnc-server -y yum groupinstall 'X Window System' -y yum groupinstall Desktop -yfi### add oracle grouplet i=$i+1;printf "....................................................................$i \n";printf "create oracle user and oracle group .....\n "; /usr/sbin/groupadd oinstall /usr/sbin/groupadd -g 502 dba /usr/sbin/useradd -u 502 -g oinstall -G dba oracleprintf "plase change user oracle pass word.....\n"; passwd oracle### create oracle dirlet i=$i+1;printf "....................................................................$i \n";printf "create setup oracele directry $orasetdir \n"; mkdir -p $orasetdir chown -R oracle:oinstall $orasetdir chmod -R 775 $orasetdir### edit fileslet i=$i+1;printf "....................................................................$i \n";seclimit='/etc/security/limits.conf';cp $seclimit $seclimit.$vardate; if grep "oracle" $seclimit; then printf "the file aready set $seclimit set next file ....\n "; else printf "edit file $seclimit \n"; echo "#the next rows install oracle add satrt !" >> $seclimit; echo "oracle soft nofile 131072" >> $seclimit; echo "oracle hard nofile 131072" >> $seclimit; echo "oracle soft nproc 131072" >> $seclimit; echo "oracle hard nproc 131072" >> $seclimit; echo "oracle soft core unlimited" >> $seclimit; echo "oracle hard core unlimited" >> $seclimit; echo "oracle soft memlock 50000000" >> $seclimit; echo "oracle hard memlock 50000000" >> $seclimit; echo "#the next rows install oracle add end! " >> $seclimit; filet i=$i+1;printf "....................................................................$i \n";sysconf='/etc/sysctl.conf';cp $sysconf $sysconf.$vardate; if grep "kernel.sem" $sysconf; then prin。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.