1. 程式人生 > >linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)

執行安裝前的準備工作:


1.安裝作業系統:http://blog.51cto.com/mflag/2300359
2.安裝依賴包:http://blog.51cto.com/mflag/2300909
3.上傳並解壓安裝包;http://blog.51cto.com/mflag/2300912
4.修改配置檔案:http://blog.51cto.com/mflag/2300914


運維、網管必會技能:linux centos7命令列靜默安裝oracle11GR2視訊課程視訊教程:http://edu.51cto.com/course/15530.html


上一節我們已經安裝好了軟體,這一節我們來建立一個數據庫例項;

退出SQLPLUS :quit

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)

配置響應檔案:vim /home/oracle/response/dbca.rsp

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
修改內容:
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
GDBNAME = "orcl"

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
SID = "orcl"
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
前面的 # 要刪除,對應使用者設定密碼;
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
SYSPASSWORD = "輸入密碼"
SYSTEMPASSWORD = "輸入密碼"
SYSMANPASSWORD = "輸入密碼"
DBSNMPPASSWORD = "輸入密碼"
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
前面的 # 要刪除,對應使用者設定目錄;
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)

DATAFILEDESTINATION =/data/u01/app/oracle/oradata
RECOVERYAREADESTINATION=/data/u01/app/oracle/fast_recovery_area

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
前面的 # 要刪除,設定字符集(中國使用一般都要改);
linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
非常重要,設定字符集:CHARACTERSET = "AL32UTF8"

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
調大記憶體,一般1.5-2倍的實體記憶體大小
TOTALMEMORY = "2048"

:wq

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

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
安裝建立:
dbca -silent -responseFile /home/oracle/response/dbca.rsp

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
完成

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)
可以檢視預設例項
env|grep ORACLE_UNQNAME
進入sqlplus 啟動例項
startup
上圖提示是例項已經起來了,無需再次啟動。
可以shutdown後在startup

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)


運維、網管必會技能:linux centos7命令列靜默安裝oracle11GR2視訊課程視訊教程:http://edu.51cto.com/course/15530.html

linux CentOS7最小化安裝環境靜默安裝Oracle11GR2資料庫(靜默建立例項)