Oracle 12c OEM Cloud Control AGENT 安裝

parknkjun發表於2015-01-31
NOTE: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.”
1.準備工作:
12c部署agent要求建立必要的credentail profile,credential profile將包含能夠從OMS server ssh到目標端target node的使用者身份認證,且要求該使用者能夠在target node上以sudo執行使用者的許可權。
這裡我們以oracle使用者為例,我們將以目標節點上的oracle使用者身份建立credential profile,首先我們要確保oracle使用者能夠以sudo執行root使用者的許可權,這需要用到/etc/sudoers配置檔案:
確保/usr/local/bin/sudo這個符號連結存在
[root@orc2 ~]# ln -s /usr/bin/sudo /usr/local/bin/sudo
[root@orc2 ~]# ls -l /etc/sudoers
-r--r----- 1 root root 3381 Nov 12  2010 /etc/sudoers
[root@orc2 ~]# 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 檔案
測試oracle 能否正常sudo
[root@orc2 ~]# su – oracle
[oracle@orc2 ~]$ sudo ls -l /root/
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
 #1) Respect the privacy of others.
#2) Think before you type.
 #3) With great power comes great responsibility.
[sudo] password for oracle:
total 60
-rw------- 1 root root  1296 May 16  2014 anaconda-ks.cfg
drwxr-xr-x 2 root root  4096 May 16  2014 Desktop
-rw-r--r-- 1 root root 38879 May 16  2014 install.log
-rw-r--r-- 1 root root     0 May 16  2014 install.log.syslog
確保oms server和target  server之間的通訊。
2.正式安裝
以sysman身份登陸OEM,點選右上角的設定->新增目標->手動新增目標


進入手動新增目標介面,選擇“新增主機目標”,並點選“新增主機”按鈕:

點選“新增”輸入目標端的主機名和對應的平臺,點選下一步:

在“代理安裝詳細資訊”輸入安裝基目錄即可,例項目錄會自動輸入,然後點選”命名的身份證明”右邊的藍色的+號:

輸入使用者名稱和密碼,這裡以oracle為例:

點選確定

點選下一步進入複查介面:

點選部署代理:

完成後會進入“代理部署概要”頁面 ,這裡存在三個階段:

初始化詳細資訊    — 拷貝agent介質到目標伺服器

遠端先決條件檢查詳細資訊   — 檢測目標伺服器的安裝先決條件

代理部署詳細資訊           –具體的Installation Agent 、Secure Agent 和 執行root.sh


部署成功:


點選”目標->主機”,就可以看到新加入的主機了:


點選”目標->資料庫”新增資料庫配置資訊,輸入主機名,然後下一步,下一步就OK了:

最終可以看到新增的兩套資料庫例項:

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10271187/viewspace-1421579/,如需轉載,請註明出處,否則將追究法律責任。

相關文章