快速部署Enterprise Manager Cloud Control 12c(12.1) Agent
生活随笔
收集整理的這篇文章主要介紹了
快速部署Enterprise Manager Cloud Control 12c(12.1) Agent
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在<OEL 5上快速部署Enterprise Manager Cloud Control 12c(12.1)>中我介紹了如何安裝配置Oracle Enterprise Manager Cloud Control 12c(12.1) Server ,我們知道光有EM Server而不部署Agent是無法發(fā)揮其管理特性的。 接下來我們會(huì)再次通過實(shí)踐了解Em 12c(12.1)中部署Agent代理程序的過程,整個(gè)過程和10g/11g Grid Control中的Deploy Agent有較大的區(qū)別。 ? 這里我們要注意一點(diǎn),OMS 12c(12.1) 只能和12.1 的Agent 代理程序配合工作,而不能使用之前任何版本的Agent。"Enterprise Manager Cloud Control can communicate only with Oracle Management Agent 12c and not with any other earlier release of the Management Agent. You can not configure your exising Agents to communicate with Enterprise Manager 12c OMS." ? 系統(tǒng)和軟件包要求 ? 推薦在Oracle Enterprise Linux 5.7或6.1上安裝EM 12c的agent , 可以從edelivery.oracle.com 下載到這2款操作系統(tǒng)的安裝介質(zhì)。 以下演示中的主機(jī)均采用Oracle Enterprise Linux 5.7 操作系統(tǒng)。 以下表格列出了在Oracle Linux 6或5.x上 安裝EM 12c agent ,所要求預(yù)裝的操作系統(tǒng)軟件包,這些軟件包可以直接從OS安裝DVD介質(zhì)中找到: ?
? 更多關(guān)于OS軟件要求的信息,可以直接訪問EM 安裝手冊(cè) <Meeting Package, Kernel Parameter, and Library Requirements>章節(jié)。 ? 準(zhǔn)備工作 ? 1. 12c 部署agent 要求在創(chuàng)建必要的credential profile,該credential profile將包含能夠從OMS server ssh到目標(biāo)節(jié)點(diǎn)target node的用戶身份認(rèn)證,且要求該用戶能夠在target node上以sudo執(zhí)行root用戶的權(quán)限。 這里我們以oracle用戶為例,我們將以目標(biāo)節(jié)點(diǎn)上的oracle用戶身份創(chuàng)建credential profile,首先我們要確保oracle用戶能夠以sudo 執(zhí)行root用戶的權(quán)限,這需要用到/etc/sudoers配置文件: ? !確保/usr/local/bin/sudo 這個(gè)符號(hào)鏈接存在[root@vrh2 ~]# ln -s /usr/bin/sudo /usr/local/bin/sudo[root@vrh2 m01]# ls -l /etc/sudoers
-r--r----- 1 root root 3407 Oct 18 19:30 /etc/sudoers[root@vrh2 m01]# cp /etc/sudoers /etc/sudoers.bak 打開/etc/sudoers 將以下三處修改修改前:
Defaults requiretty修改后:
Defaults:oracle !requiretty修改前:
Defaults !visiblepw修改后:
Defaults visiblepw修改前:
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL修改后##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
oracle ALL=(ALL) ALL --這里加一行以上三處修改完成后,save 文件 測(cè)試oracle 能否正常sudo [root@vrh2 m01]# su - oracle[oracle@vrh2 ~]$ ls -l /root
ls: /root: Permission denied[oracle@vrh2 ~]$ sudo ls -l /root[sudo] password for oracle:
total 88
-rw------- 1 root root 1832 Aug 11 05:26 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 Aug 10 21:31 Desktop
-rw-r--r-- 1 root root 56307 Aug 11 05:26 install.log
-rw-r--r-- 1 root root 4136 Aug 11 05:26 install.log.syslog ? 2. 在目標(biāo)節(jié)點(diǎn)上創(chuàng)建必要的目錄 : ? [root@vrh2 m01]# mkdir /m01[root@vrh2 m01]# chown oracle:oinstall /m01 ? 3.? 確保OMS server 和target server 間的通信暢通,如沒有使用dns 服務(wù) ,那么不要忘記將host/ip 信息寫入到/etc/hosts文件中,如果漏掉這部將報(bào)target node can not be? reached 錯(cuò)誤 ? 正式安裝 ? 首先再次以sysman身份登錄EM https console,如https://192.168.1.169:7799/em。 點(diǎn)擊右上角的setup-> Add Target -> Add Targets Manually ? ? 進(jìn)入Add Targets Manually頁面,選擇" Add Host Target" ,并點(diǎn)擊Add Host ...按鈕: ? ? 在"add Target - Host and Platform "頁面使用默認(rèn)的"session name"即可,點(diǎn)選"+Add"按鈕填入主機(jī)名和平臺(tái)信息: 注意這里推薦填入規(guī)范的hostname,如"vrh2.oracle.com", 注意主機(jī)名不能帶下劃線 "_", 若Platform下拉列表中沒有你要的平臺(tái)那么說明在該平臺(tái)上還沒有12.1 的agent可用。 ? ? 輸入完成后點(diǎn)擊Next進(jìn)入"Add Target -? Installation Details " 頁面,點(diǎn)中deployment details 出現(xiàn)下來菜單選擇Fresh Agent install ,并填入installation base directory 等目錄信息。 ? 接著在Named confidential 點(diǎn)擊藍(lán)色的"+" 圖形按鈕,會(huì)跳出 create new Named confidential 的窗口,填入之前配好的oracle用戶的信息: ? ? 完成后點(diǎn)擊Ok,回到原"Add Target -? Installation Details "界面,確認(rèn)并點(diǎn)擊Next: ? ? 進(jìn)入Review頁面,確認(rèn)信息正確并點(diǎn)擊Deploy Agent: ? ? 完成后會(huì)進(jìn)入Agent Deployment summary 頁面 ,這里存在三個(gè)階段: Initialization??? -- 拷貝agent介質(zhì)到目標(biāo)服務(wù)器 Remote Prerequisite Check?? -- 檢測(cè)目標(biāo)服務(wù)器的安裝先決條件 Agent Deployment???????????? --具體的Installation Agent 、Secure Agent 和 執(zhí)行root.sh ? 若一開始沒有正確配置用戶的sudo ,則可能在Remote Prerequisite Check階段出現(xiàn)檢測(cè)警告,例如下圖: ? ? 如果一切順利,以上三個(gè)階段完成后Agent即在運(yùn)作了: ? ? Agent Deployment 的日志存放在 $OMS_HOME/sysman/prov/agentpush/$date目錄下,也可以從EM的網(wǎng)頁界面上找到這些日志的具體位置。 ? 之后點(diǎn)擊Target -> host可以看到新加入的主機(jī): ? ? 之后點(diǎn)擊Target -> Database? -> add 添加數(shù)據(jù)庫配置信息: ? 在host欄填入新增加的目標(biāo)服務(wù)器,并點(diǎn)擊continue: ? ? EM 會(huì)自動(dòng)找出目標(biāo)服務(wù)器上已有的數(shù)據(jù)庫, 點(diǎn)擊Configure 填入dbsnmp用戶的密碼后保存并Continue: ? ? 之后點(diǎn)擊Target -> database 就可以看到新增的數(shù)據(jù)庫了: ? ? 點(diǎn)擊數(shù)據(jù)庫名 -> 點(diǎn)擊Performance -> Performance Home后可以看到新的12c?? 的性能總覽圖: ?
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)
| Oracle Linux 6 |
|
|
| Oracle Linux 5.xRed Hat Enterprise Linux 5.x |
| Oracle Linux 5.6Red Hat Enterprise Linux 5.6
|
總結(jié)
以上是生活随笔為你收集整理的快速部署Enterprise Manager Cloud Control 12c(12.1) Agent的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: windows中raid0和raid1的
- 下一篇: Word单元格如何自动适配