成人午夜视频全免费观看高清-秋霞福利视频一区二区三区-国产精品久久久久电影小说-亚洲不卡区三一区三区一区

linuxCentOS7下快速靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)并創(chuàng)建實(shí)例

linux CentOS7下快速靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)并創(chuàng)建實(shí)例
本文章適合已經(jīng)熟悉安裝過程,需要快速操作安裝部署使用。
多行在一起的命令可以復(fù)制一起執(zhí)行;
初學(xué)者建議分步學(xué)習(xí):https://edu.51cto.com/course/15530.html

創(chuàng)新互聯(lián)公司2013年至今,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元渠縣做網(wǎng)站,已為上家服務(wù),為渠縣各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18982081108

linux.x64_11gR2_database_1of2.zip (oracle官網(wǎng)下載)
linux.x64_11gR2_database_2of2.zip (oracle官網(wǎng)下載)
rlwrap-0.42.tar.gz (51CTO下載里搜)
三個(gè)安裝包;
操作系統(tǒng)環(huán)境:最小化安裝 centos7

一、創(chuàng)建目錄、更新補(bǔ)丁、安裝依賴包與創(chuàng)建用戶

mkdir -p /data/u01/software
yum -y install lrzsz vim unzip
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
echo "Oracle20190728"| passwd --stdin oracle
mkdir -p /data/u01/app/oracle/product/11.2.0/dbhome_1
mkdir /data/u01/app/oracle/{oradata,inventory,fast_recovery_area}
chown -R oracle:oinstall /data/u01/app/oracle
chmod -R 775 /data/u01/app/oracle
yum -y install gcc gcc-c++ make binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static glibc glibc-common glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel numactl-devel sysstat unixODBC unixODBC-devel kernelheaders pdksh pcre-devel readline*
yum -y update
cd /data/u01/software
ls

二、新會(huì)話:上傳安裝包

cd /data/u01/software
ls
上傳三個(gè)包

三、新會(huì)話修改配置文件、安裝sqlplus

echo "#"$(date) "quick install oracle11GR2 add vim /etc/sysctl.conf">> /etc/sysctl.conf
echo "fs.aio-max-nr = 1048576" >> /etc/sysctl.conf
echo "fs.file-max = 6815744" >> /etc/sysctl.conf
echo "kernel.shmall = 2097152" >> /etc/sysctl.conf
echo "kernel.shmmax = 1073741824" >> /etc/sysctl.conf
echo "kernel.shmmni = 4096" >> /etc/sysctl.conf
echo "kernel.sem = 250 32000 100 128" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range = 9000 65500" >> /etc/sysctl.conf
echo "net.core.rmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.rmem_max = 4194304" >> /etc/sysctl.conf
echo "net.core.wmem_default = 262144" >> /etc/sysctl.conf
echo "net.core.wmem_max = 1048576" >> /etc/sysctl.conf
sysctl -p
echo "#"$(date) "quick install oracle11GR2 add vim /etc/security/limits.conf">>/etc/security/limits.conf
echo "oracle soft nproc 2047" >>/etc/security/limits.conf
echo "oracle hard nproc 16384" >>/etc/security/limits.conf
echo "oracle soft nofile 1024" >>/etc/security/limits.conf
echo "oracle hard nofile 65536" >>/etc/security/limits.conf
echo "oracle soft stack 10240" >>/etc/security/limits.conf
echo "#"$(date) "quick install oracle11GR2 add vim /etc/pam.d/login">>/etc/pam.d/login
echo "session required /lib64/security/pam_limits.so">>/etc/pam.d/login
echo "session required pam_limits.so">>/etc/pam.d/login

echo "#"$(date) "quick install oracle11GR2 add vim /etc/profile">>/etc/profile
echo 'if [ $USER = "oracle" ]; then'>>/etc/profile
echo 'if [ $SHELL = "/bin/ksh" ]; then'>>/etc/profile
echo "ulimit -p 16384">>/etc/profile
echo "ulimit -n 65536">>/etc/profile
echo "else">>/etc/profile
echo "ulimit -u 16384 -n 65536">>/etc/profile
echo "fi">>/etc/profile
echo "fi">>/etc/profile

cd /data/u01/software
tar -xvf rlwrap-0.42.tar.gz
cd rlwrap-0.42
./configure
make
make install

需要等上傳完成;

unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip

su - oracle
echo "#"$(date) "quick install oracle11GR2 add vim .bash_profile">>.bash_profile
echo "export ORACLE_BASE=/data/u01/app/oracle">>.bash_profile
echo "export ORACLE_HOME=/data/u01/app/oracle/product/11.2.0/dbhome_1">>.bash_profile
echo "export ORACLE_SID=orcl">>.bash_profile
echo 'export ORACLE_UNQNAME=$ORACLE_SID'>>.bash_profile
echo 'export PATH=$ORACLE_HOME/bin:$PATH'>>.bash_profile
echo "export NLS_LANG=american_america.AL32UTF8">>.bash_profile
echo "alias sqlplus='rlwrap sqlplus'">>.bash_profile
echo "alias rman='rlwrap rman'">>.bash_profile
source .bash_profile
ls

四、修改靜默響應(yīng)文件并執(zhí)行安裝

拷貝備份一份響應(yīng)文件:
cp -R /data/u01/software/database/response/ .
cd response/
vim db_install.rsp

修改內(nèi)容:
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=localhost.localdomain
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/data/u01/app/oracle/inventory
SELECTED_LANGUAGES=en,zh_CN
ORACLE_HOME=/data/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/data/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true

切換到解壓的安裝包目錄執(zhí)行安裝:
cd /data/u01/software/database/
./runInstaller -silent -responseFile /home/oracle/response/db_install.rsp -ignorePrereq
sqlplus / as sysdba

linux CentOS7下快速靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)并創(chuàng)建實(shí)例

五、切換一個(gè)會(huì)話開始配置實(shí)例響應(yīng)文件

配置響應(yīng)文件:
vim /home/oracle/response/dbca.rsp
修改內(nèi)容(注意修改選項(xiàng)前面的#要?jiǎng)h除):
GDBNAME = "orcl"
SID = "orcl"
SYSPASSWORD = "輸入密碼"
SYSTEMPASSWORD = "輸入密碼"
SYSMANPASSWORD = "輸入密碼"
DBSNMPPASSWORD = "輸入密碼"
DATAFILEDESTINATION =/data/u01/app/oracle/oradata
RECOVERYAREADESTINATION=/data/u01/app/oracle/fast_recovery_area
CHARACTERSET = "AL32UTF8"
TOTALMEMORY = "2048"

egrep -v "(^#|^$)" /home/oracle/response/dbca.rsp

安裝創(chuàng)建(等第六步成功后執(zhí)行):
cd ~
dbca -silent -responseFile /home/oracle/response/dbca.rsp
linux CentOS7下快速靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)并創(chuàng)建實(shí)例

lsnrctl start
啟動(dòng)監(jiān)聽器

lsnrctl stop
停止監(jiān)聽器命令.

lsnrctl status
查看監(jiān)聽狀態(tài).

linux CentOS7下快速靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)并創(chuàng)建實(shí)例

實(shí)測(cè)30分鐘內(nèi)可完成以上操作;
最快17分鐘完成以上操作;

運(yùn)維、網(wǎng)管必會(huì)技能:linux centos7命令行靜默安裝oracle11GR2視頻課程視頻教程:http://edu.51cto.com/course/15530.html

linux CentOS7最小化安裝環(huán)境靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)(靜默創(chuàng)建實(shí)例)
linux CentOS7下快速靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)并創(chuàng)建實(shí)例

分享標(biāo)題:linuxCentOS7下快速靜默安裝Oracle11GR2數(shù)據(jù)庫(kù)并創(chuàng)建實(shí)例
網(wǎng)站鏈接:http://jinyejixie.com/article2/pdsooc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站營(yíng)銷、域名注冊(cè)、響應(yīng)式網(wǎng)站用戶體驗(yàn)、全網(wǎng)營(yíng)銷推廣、商城網(wǎng)站

廣告

聲明:本網(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)

手機(jī)網(wǎng)站建設(shè)
济阳县| 茂名市| 天门市| 丹棱县| 铁岭县| 赣州市| 大足县| 旅游| 胶州市| 邹平县| 高州市| 邹平县| 通山县| 重庆市| 班戈县| 西贡区| 临潭县| 惠水县| 上饶县| 沁源县| 道孚县| 滕州市| 斗六市| 连州市| 白城市| 毕节市| 新巴尔虎左旗| 宁津县| 沙雅县| 浙江省| 宝兴县| 鸡东县| 福安市| 喀什市| 体育| 嵊州市| 七台河市| 青川县| 丰顺县| 平武县| 信阳市|