我是在自己的實(shí)驗(yàn)環(huán)境里面安裝的,服務(wù)器已經(jīng)安裝了oracle19c數(shù)據(jù)庫(kù),所以一些基礎(chǔ)的軟件包都已經(jīng)安裝了,以及一些系統(tǒng)參數(shù)都是按照數(shù)據(jù)庫(kù)的按照要求進(jìn)行調(diào)整的。所以我就直接從數(shù)據(jù)庫(kù)創(chuàng)建及數(shù)據(jù)庫(kù)參數(shù)調(diào)整這里開(kāi)始(系統(tǒng)依賴包、內(nèi)核參數(shù)、系統(tǒng)配置等不做描述,參考數(shù)據(jù)庫(kù)或官方文檔自行配置)。
環(huán)境介紹
操作系統(tǒng):redhat7.6×64 ,數(shù)據(jù)庫(kù)版本:19.10(CDB模式),文件系統(tǒng)劃分70G用于emcc的安裝,系統(tǒng)資源4C16G。EMCC版本:13.3
創(chuàng)建emcc的數(shù)據(jù)庫(kù)
create pluggable database pdbemcc admin user pdbadmin identified by oracle file_name_convert=(‘pdbseed’,’pdbemcc’) nologging;?
創(chuàng)建emcc安裝目錄
mkdir /u03/{middleware,agent} -pchown oracle.oinstall /u03 -Rchmod -R 775 /u03
EMCC軟件
-rwxrwxr-x1775 oinstall 1742204641 Oct 31 14:53 em13300_linux64-2.zip-rwxrwxr-x1775 oinstall 2090882426 Oct 31 14:53 em13300_linux64-3.zip-rwxrwxr-x1775 oinstall 2117436260 Oct 31 14:51 em13300_linux64-4.zip-rwxrwxr-x1775 oinstall694002559 Oct 31 14:48 em13300_linux64-5.zip-rwxrwxr-x1775 oinstall 1801995711 Oct 31 14:49 em13300_linux64-6.zip-rwxrwxr-x1775 oinstall 1278491093 Oct 31 14:47 em13300_linux64.bin賦予.bin文件執(zhí)行權(quán)限chmod +x em1330_linux64.bin
https://www.oracle.com/enterprise-manager/downloads/cloud-control-downloads.html 下載連接,現(xiàn)在最新版本是13.5。
執(zhí)行安裝
[oracle@gpfs-s02 u03]$ ./em13300_linux64.bin 0%…………………………………………………………………100%Launcher log file is /tmp/OraInstall2022-10-31_03-41-06PM/launcher2022-10-31_03-41-06PM.log.Starting Oracle Universal InstallerChecking if CPU speed is above 300 MHz. Actual 2593.906 MHzPassedChecking monitor: must be configured to display at least 256 colors. Actual 16777216PassedChecking swap space: must be greater than 512 MB. Actual 16379 MBPassedChecking if this platform requires a 64-bit JVM. Actual 64Passed (64-bit not required)Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2022-10-31_03-41-06PM====Prereq Config Location main=== /tmp/OraInstall2022-10-31_03-41-06PM/stage/prereqEMGCInstaller args -scratchPathEMGCInstaller args /tmp/OraInstall2022-10-31_03-41-06PMEMGCInstaller args -sourceTypeEMGCInstaller args networkEMGCInstaller args -timestampEMGCInstaller args 2022-10-31_03-41-06PMEMGCInstaller args -paramFileEMGCInstaller args /tmp/sfx_fu4yo7/Disk1/install/linux64/oraparam.iniEMGCInstaller args -nocleanUpOnExitDiskLoc inside SourceLoc/u03EMFileLoc:/tmp/OraInstall2022-10-31_03-41-06PM/oui/em/ScratchPathValue :/tmp/OraInstall2022-10-31_03-41-06PM
安裝截圖
跳過(guò)軟件更新
安裝程序進(jìn)行環(huán)境檢查,如果有錯(cuò)誤或warning的查看一下是否影響后續(xù)安裝
選擇advance模式安裝
輸入emcc安裝的目錄及agent目錄
默認(rèn)下一步
輸入weblogic的管理員密碼等信息,注意密碼復(fù)雜度要滿足要求。
輸入第一步創(chuàng)建的pdb的一些信息。包括ip地址、監(jiān)聽(tīng)端口、服務(wù)名稱等。及規(guī)格大小。不同的規(guī)格對(duì)系統(tǒng)資源和管理的目標(biāo)數(shù)量限制不一樣。
點(diǎn)擊下一步的時(shí)候,安裝程序會(huì)訪問(wèn)數(shù)據(jù)庫(kù)并檢查部分參數(shù)設(shè)置是否滿足要求(會(huì)給出哪些參數(shù)需要調(diào)整),如下參數(shù)按照別人的部署文檔我進(jìn)行了調(diào)整。
alter system set “_optimizer_nlj_hj_adaptive_join”= FALSE scope=both sid=’*’;alter system set “_optimizer_strans_adaptive_pruning” = FALSE scope=both sid=’*’;alter system set “_px_adaptive_dist_method” = OFF scope=both sid=’*’;alter system set “_sql_plan_directive_mgmt_control” = 0 scope=both sid=’*’;alter system set “_optimizer_dsdir_usage_control” = 0 scope=both sid=’*’;alter system set “_optimizer_use_feedback” = FALSE scope=both sid=’*’;alter system set “_optimizer_gather_feedback” = FALSE scope=both sid=’*’;alter system set “_optimizer_performance_feedback” = OFF scope=both sid=’*’;alter system set “_allow_insert_with_update_check”=true;alter system set parallel_max_servers=8 SCOPE=SPFILE;alter system set session_cached_cursors=200 SCOPE=SPFILE;alter system set sga_target=3000000000 SCOPE=SPFILE;alter system set pga_aggregate_target=2g SCOPE=SPFILE;alter system set shared_pool_size=’600000000′;
輸入sysman的密碼
安裝會(huì)在50%的時(shí)候等好久具體記不得多長(zhǎng)時(shí)間了。
最后執(zhí)行一個(gè)腳本root用戶執(zhí)行。
# sh allroot.sh Starting to execute allroot.sh ……… Starting to execute /u03/middleware/root.sh ……/etc existCreating /etc/oragchomelist file…/u03/middlewareFinished product-specific root actions./etc existFinished execution of/u03/middleware/root.sh ……Starting to execute /u03/agent/agent_13.3.0.0.0/root.sh ……Finished product-specific root actions./etc existFinished execution of/u03/agent/agent_13.3.0.0.0/root.sh ……[root@gpfs-s02 middleware]#
完成emcc軟件的安裝。
登陸及訪問(wèn)方式
1. Enterprise Manager Cloud Control URL: https://gpfs-s02:7803/em
2. Admin Server URL: https://gpfs-s02:7102/console
3. BI Publisher URL: https://gpfs-s02:9803/xmlpserver/servlet/home
The following details need to be provided while installing an additional OMS:
1. Admin Server Host Name: gpfs-s02
2. Admin Server Port: 7102
通過(guò)https://ip:7083/em進(jìn)行登陸
如圖就說(shuō)emcc的管理主頁(yè)了。
常用管理命令
- oms管理
cd /u03/middleware/bin
[oracle@gpfs-s02 bin]$ ./emctl status oms #查看oms的狀態(tài)
[oracle@gpfs-s02 bin]$ ./emctl status oms -details #查看oms的詳細(xì)信息
[oracle@gpfs-s02 bin]$./emctl stop oms #停止oms服務(wù)
[oracle@gpfs-s02 bin]$./emctl start oms #啟動(dòng)oms服務(wù)
- agent管理
cd /u03/agent/agent_13.3.0.0.0/bin
[oracle@gpfs-s02 bin]$ ./emctl status agent #查看agent狀態(tài)
[oracle@gpfs-s02 bin]$ ./emctl stop agent #停止agent
[oracle@gpfs-s02 bin]$ ./emctl start agent #啟動(dòng)agent
至此emcc軟件已經(jīng)部署完畢,下篇介紹如何納管資源。