婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > Linux一鍵部署oracle安裝環(huán)境腳本(推薦)

Linux一鍵部署oracle安裝環(huán)境腳本(推薦)

熱門標(biāo)簽:安陽企業(yè)電銷機(jī)器人供應(yīng)商 手機(jī)地圖標(biāo)注門店 汽車4s店百度地圖標(biāo)注店 杭州網(wǎng)絡(luò)外呼系統(tǒng)運(yùn)營商 地圖標(biāo)注效果的制作 網(wǎng)貸外呼系統(tǒng)合法嗎 鶴壁電話機(jī)器人價(jià)格 地圖標(biāo)注坐標(biāo)圖標(biāo) 電銷套路機(jī)器人

具體代碼如下所示:

#!/bin/bash
############################################
###功能:Preparation for Oracle Installation
###參數(shù):SID BASE
###其中,sid指的是ORACLE_SID
###BASE指的是ORACLE_BASE的一級目錄,如ORACLE_BASE=/u01/app/oracle,則BASE為/u01
############################################
#檢查參數(shù)個(gè)數(shù)是否正確
if [ $# -ne 2 ];then
  echo "$0 SID BASE"
  exit
fi
SID="$1"
BASE="$2"
#主機(jī)名綁定
IP=`ifconfig |awk -F'[: ]+' 'NR==2{print $4'}`
HOST=`hostname`
sed -i '$a'$IP' '$HOST'' /etc/hosts
#Checking the Package Requirements
#將需要安裝的表的列表貼在Package_list文件中
awk -F'-[0-9]' '{print $1}' Package_list |awk '{print $1}' |uniq |xargs yum install -y > output.log 2>1
#Creating Required Operating System Groups and Users
groupadd -g 800 oinstall
groupadd -g 801 dba
groupadd -g 802 oper
useradd -g oinstall -G dba,oper oracle
echo oracle | passwd --stdin oracle >> output.log 2>1
#Configure Kernal Parameters
sed -i '$a\fs.aio-max-nr = 1048576' /etc/sysctl.conf
sed -i '$a\fs.file-max = 6815744' /etc/sysctl.conf
sed -i '$a\kernel.shmall = 2097152' /etc/sysctl.conf
sed -i '$a\kernel.shmmax = 536870912' /etc/sysctl.conf
sed -i '$a\kernel.shmmni = 4096' /etc/sysctl.conf
sed -i '$a\kernel.sem = 250 32000 100 128' /etc/sysctl.conf
sed -i '$a\net.ipv4.ip_local_port_range = 9000 65500' /etc/sysctl.conf
sed -i '$a\net.core.rmem_default = 262144' /etc/sysctl.conf
sed -i '$a\net.core.rmem_max = 4194304' /etc/sysctl.conf
sed -i '$a\net.core.wmem_default = 262144' /etc/sysctl.conf
sed -i '$a\net.core.wmem_max = 1048586' /etc/sysctl.conf
sysctl -p >> output.log 2>1
#Configure Resource Limits
sed -i '$a\oracle      soft  nproc  2047' /etc/security/limits.conf
sed -i '$a\oracle      hard  nproc  16384' /etc/security/limits.conf
sed -i '$a\oracle      soft  nofile 1024' /etc/security/limits.conf
sed -i '$a\oracle      hard  nofile 65536' /etc/security/limits.conf
#Add the following line to the /etc/pam.d/login file, if it does not already exist:
sed -i '$a\session  required   pam_limits.so' /etc/pam.d/login
#Add the following line to the /etc/profile
sed -i '$a\if [[ $USER = "oracle" ]]; then' /etc/profile
sed -i '$a\   if [[ $SHELL = "/bin/ksh" ]]; then' /etc/profile
sed -i '$a\       ulimit -p 16384' /etc/profile
sed -i '$a\       ulimit -n 65536' /etc/profile
sed -i '$a\   else' /etc/profile
sed -i '$a\       ulimit -u 16384 -n 65536' /etc/profile
sed -i '$a\   fi' /etc/profile
sed -i '$a\fi' /etc/profile
source /etc/profile
#Configuring the oracle User's Environment
sed -i '$a\export ORACLE_SID='$SID'' /home/oracle/.bash_profile
sed -i '$a\export ORACLE_BASE='$BASE'/app/oracle' /home/oracle/.bash_profile
sed -i '$a\export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1' /home/oracle/.bash_profile
sed -i '$a\export PATH=$ORACLE_HOME/bin:$PATH' /home/oracle/.bash_profile
source /home/oracle/.bash_profile
#Creating Required Directories
mkdir -p $ORACLE_HOME
chown -R oracle.oinstall $BASE/app
chmod -R 775 $BASE/app
echo "Preparation For Oracle Installation Is Over!"

總結(jié)

以上所述是小編給大家介紹的Linux一鍵部署oracle安裝環(huán)境腳本,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!
如果你覺得本文對你有幫助,歡迎轉(zhuǎn)載,煩請注明出處,謝謝!

您可能感興趣的文章:
  • Oracle WebLogic Server 12.2.1.2安裝部署教程
  • CentOS 6.3下安裝部署Oracle服務(wù)器圖文教程
  • 部署Oracle 12c企業(yè)版數(shù)據(jù)庫( 安裝及使用)
  • Oracle手動(dòng)建庫安裝部署超詳細(xì)教程

標(biāo)簽:梧州 南陽 泰安 酒泉 銀川 河源 焦作 柳州

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Linux一鍵部署oracle安裝環(huán)境腳本(推薦)》,本文關(guān)鍵詞  Linux,一鍵,部署,oracle,安裝,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Linux一鍵部署oracle安裝環(huán)境腳本(推薦)》相關(guān)的同類信息!
  • 本頁收集關(guān)于Linux一鍵部署oracle安裝環(huán)境腳本(推薦)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 永和县| 西峡县| 华宁县| 邢台县| 名山县| 武乡县| 山东省| 青海省| 韶山市| 松溪县| 开鲁县| 堆龙德庆县| 缙云县| 文安县| 阳原县| 壶关县| 莱芜市| 前郭尔| 红河县| 舞钢市| 赣州市| 安龙县| 苏尼特左旗| 淮滨县| 新巴尔虎左旗| 应用必备| 蒲城县| 马公市| 景宁| 兰考县| 竹溪县| 永济市| 大渡口区| 南平市| 寻甸| 襄城县| 定西市| 迁西县| 南陵县| 鄄城县| 微山县|