Oracle 12c OEM Cloud Control AGENT 安裝
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
這裡我們以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為例:
點選確定
點選下一步進入複查介面:
點選部署代理:
部署成功:
點選”目標->主機”,就可以看到新加入的主機了:
點選”目標->資料庫”新增資料庫配置資訊,輸入主機名,然後下一步,下一步就OK了:
最終可以看到新增的兩套資料庫例項:
2.正式安裝
以sysman身份登陸OEM,點選右上角的設定->新增目標->手動新增目標
進入手動新增目標介面,選擇“新增主機目標”,並點選“新增主機”按鈕:
點選“新增”輸入目標端的主機名和對應的平臺,點選下一步:
在“代理安裝詳細資訊”輸入安裝基目錄即可,例項目錄會自動輸入,然後點選”命名的身份證明”右邊的藍色的+號:
輸入使用者名稱和密碼,這裡以oracle為例:
點選確定
點選下一步進入複查介面:
點選部署代理:
完成後會進入“代理部署概要”頁面 ,這裡存在三個階段:
初始化詳細資訊 — 拷貝agent介質到目標伺服器
遠端先決條件檢查詳細資訊 — 檢測目標伺服器的安裝先決條件
代理部署詳細資訊 –具體的Installation Agent 、Secure Agent 和 執行root.sh部署成功:
點選”目標->主機”,就可以看到新加入的主機了:
點選”目標->資料庫”新增資料庫配置資訊,輸入主機名,然後下一步,下一步就OK了:
最終可以看到新增的兩套資料庫例項:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10271187/viewspace-1421579/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 12c OEM Cloud Control OMS安裝OracleCloud
- rpm包 手工安裝OEM 12c agent
- 安裝Cloud Control 12cCloud
- EM 12c Cloud Control - Agent Unreachable : Received Key Mismatch from OMS - 3Cloud
- EM 12c Cloud Control - Agent Unreachable : Received Key Mismatch from OMS - 2Cloud
- EM 12c Cloud Control - Agent Unreachable : Received Key Mismatch from OMS - 1Cloud
- 12 cloud control OEM InstallerCloud
- Enterprise Manager Cloud Control 12c 官方安裝指南Cloud
- ORACLE 12C Cloud Control(二)介紹OracleCloud
- OCM實驗-grid control agent安裝
- Getting oracle agent installation from oemOracle
- Cloud Control 13c 安裝Cloud
- 在EM Cloud Control 12c中使用emcli命令列刪除obsolete agent targetCloud命令列
- OMC cloud agent 安裝之後經常停止Cloud
- Oracle cloud control 12c 的啟動與關閉OracleCloud
- 【OEM】OEM安裝維護
- Oracle 12C安裝Oracle
- oracle10g GC agent安裝與解除安裝OracleGC
- OEM的安裝
- 【GC】OEM Grid Control 11gR1部署之Agent部分GC
- zabbix安裝agent
- Zabbix Agent安裝
- Deinstall the Enterprise Manager 13c Cloud Control AgentCloud
- 安裝OEM的log
- Oracle10g oem grid control (轉)Oracle
- oracle 12c release 2 安裝Oracle
- oracle 12c 靜默安裝Oracle
- Centos 7.4 安裝Oracle 12cCentOSOracle
- Ubuntu下安裝oracle 12cUbuntuOracle
- WIN下安裝agent
- Oracle 12c資料庫安裝Oracle資料庫
- Oracle Linux 7上安裝Oracle 12cOracleLinux
- 在oracle 11g下安裝配置scheduler agentOracle
- OEM Grid Control裡通過安裝Yast來監控和管理主機AST
- Zabbix Agent 安裝與使用
- 在Oracle Linux 6.6上安裝Oracle 12cOracleLinux
- 安裝oracle 10g EM database controlOracle 10gDatabase
- 如何解除安裝Oracle Grid ControlOracle