redhat6.4簡(jiǎn)易安裝oracle12C-創(chuàng)新互聯(lián)

這里只是把安裝用到的三個(gè)腳本貼出來(lái),詳細(xì)安裝文檔請(qǐng)下載附件

創(chuàng)新互聯(lián)建站服務(wù)項(xiàng)目包括英山網(wǎng)站建設(shè)、英山網(wǎng)站制作、英山網(wǎng)頁(yè)制作以及英山網(wǎng)絡(luò)營(yíng)銷策劃等。多年來(lái),我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢(shì)、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,英山網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到英山省份的部分城市,未來(lái)相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!

service_close.sh

 說(shuō)明:安裝好系統(tǒng)后關(guān)閉不必須的服務(wù)

#!/bin/bash
#description :the script is used to close some unnecessary services
#by lineqi
#2014-06-28
chkconfig --level 2345 NetworkManager off
service NetworkManager stop

chkconfig --level 2345 cups off
service cups stop

chkconfig --level 2345 ip6tables off
service ip6tables stop

chkconfig --level 345 netfs off
service netfs stop

chkconfig --level 345 nfslock off
service nfslock stop

chkconfig --level 2345 postfix off
service postfix stop

chkconfig --level 2345 iptables off
service iptables stop

set_userinfo.sh

說(shuō)明:設(shè)置oracle用戶信息及安裝目錄

#!/bin/bash
#description:this script used to create a oracle groups user user environment settings the installation directory
#by lineqi
#2014-07-26

#Add oracle groups
groupadd -g 501 oinstall
groupadd -g 502 dba
groupadd -g 503 oper

#Add oracle user and Seting a oracle user password
useradd -u 502 -g oinstall -G dba,oper oracle;echo "oracle"|passwd --stdin oracle

#Seting a oracle user password
#passwd oracle<<EOF
#oracle
#oracle
#EOF

#mkdir the oracle installation directory
mkdir -p /u01/app/oracle
mkdir -p /u01/app/oraInventory
chmod -R 777 /u01/app
chown -R oracle:oinstall /u01/app/

#Add the following content to /home/oracle/.bash_profile
cat>>/home/oracle/.bash_profile<<EOF
export ORACLE_SID=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
export PATH=\$ORACLE_HOME/bin:.:\$PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export ORACLE_UNQNAME=orcl
EOF
su - oracle -c ". .bash_profile"

set_para.sh

說(shuō)明:設(shè)置安裝oracle時(shí)所需要的參數(shù)

#!/bin/bash
#description:this script is used to set the oracle installation environment parameters
#by lineqi
#2014-07-26

#Add the following contents to /etc/security/limits.conf

cat>>/etc/security/limits.conf<<EOF
#for oracle
oracle          soft   nproc          2047
oracle          hard   nproc          16384
oracle          soft   nofile         1024
oracle          hard   nofile         65536
oracle          soft   stack          10240
oracle          hard   stack          10240
EOF
sleep 2

#Add the following contents to /etc/pam.d/login

cat>>/etc/pam.d/login<<EOF
# for oracle
session   required    pam_limits.so
EOF

sleep 1

#Add the following contents to /etc/sysctl.conf

cat>>/etc/sysctl.conf<<EOF
# for oracle
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
fs.file-max = 6815744
EOF
sysctl -p >>/dev/null 2>&1

#Add the following contents to /etc/profile

cat>>/etc/profile<<EOF
# for oracle
if [ \$USER = "oracle" ]; then
if [ \$SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
EOF

#Replace the following contents to /etc/selinux/config
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" `grep SELINUX=enforcing -rl /etc/selinux/config`

附件:http://down.51cto.com/data/2364856

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。

本文標(biāo)題:redhat6.4簡(jiǎn)易安裝oracle12C-創(chuàng)新互聯(lián)
地址分享:http://www.bm7419.com/article0/ceedio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站、企業(yè)建站、手機(jī)網(wǎng)站建設(shè)、網(wǎng)站策劃、建站公司、營(yíng)銷型網(wǎng)站建設(shè)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都app開(kāi)發(fā)公司