Oracle 12c agent install for linux

來源:互聯網
上載者:User

標籤:blog   http   io   ar   os   使用   for   sp   檔案   

 

安裝Agent代理

在EM11g時,agent安裝是通過在被監製主機端下載agent代理並安裝,在EM12c版本上,可以在EM12c服務端,通過“推送”的方式把agent代理在遠程安裝到被監控的主機端,並且可以同時為多個主機安裝agent代理。

官方文檔:

http://www.gokhanatil.com/2011/10/how-to-deploy-oracle-management-agent.html

 

安裝方法:

首先登入EM12c

選擇: 設定 -> 添加目標 -> 手動添加目標

 

點擊:添加手動目標 –> 添加主機

 

 

添加主機目標名稱和平台

 

#mkdir /u01/app/agent12c

#chown oracle:oinstall /u01/app/agent12c

#chmod g+w agent12c


點建立身份證明

 

 


下一步

 

點擊“部署代理程式”

 



 

[[email protected]]$ pwd

/u01/app/agent12c/agent_inst/bin

[[email protected]]$ ./emctl status agent

OracleEnterprise Manager Cloud Control 12c Release 3 

Copyright(c) 1996, 2013 Oracle Corporation.  Allrights reserved.

---------------------------------------------------------------

AgentVersion     : 12.1.0.3.0

OMSVersion       : 12.1.0.3.0

ProtocolVersion  : 12.1.0.1.0

AgentHome        :/u01/app/agent12c/agent_inst

AgentBinaries    :/u01/app/agent12c/core/12.1.0.3.0

AgentProcess ID  : 9697

ParentProcess ID : 9612

AgentURL         :https://racdb1.localdomain:3872/emd/main/

RepositoryURL    :https://newcc.localdomain:4901/empbs/upload

Startedat        : 2014-04-04 21:30:36

Startedby user   : oracle

LastReload       : (none)

Lastsuccessful upload                       :2014-04-04 21:31:51

Lastattempted upload                        :2014-04-04 21:31:51

TotalMegabytes of XML files uploaded so far : 0.24

Numberof XML files pending upload           : 0

Sizeof XML files pending upload(MB)         :0

Availabledisk space on upload filesystem    :97.91%

CollectionStatus                            :Collections enabled

HeartbeatStatus                             : Ok

Lastattempted heartbeat to OMS              :2014-04-04 21:33:40

Lastsuccessful heartbeat to OMS             :2014-04-04 21:33:40

Nextscheduled heartbeat to OMS              :2014-04-04 21:34:40

 

---------------------------------------------------------------

Agentis Running and Ready

 

 

 





 

http://blog.csdn.net/sunjiapeng/article/details/11036751

http://docs.oracle.com/cd/E24628_01/install.121/e24089/install_agent_usng_shrd_hm.htm

 

[[email protected]~]$ vi /u01/app/oracle/oms12cr3/oms/sysman/prov/agentpush/agentpush.properties

oracle.sysman.prov.agentpush.enablePty=true

 

 [[email protected] app]# ll /etc/sudoers

-r--r-----1 root root 3381 2013-01-09 /etc/sudoers

 

或是

sudoers檔案預設是唯讀

[[email protected]]# chmod 777 /etc/sudoers

[[email protected]]# vi /etc/sudoers

Defaults    !requiretty

Defaults   visiblepw

oracle  ALL=(ALL)       ALL

[[email protected]]# chmod 440 /etc/sudoers

 

[[email protected]]# ll /etc/sudoers

-r--r-----1 root root 3382 04-04 17:40 /etc/sudoers

 

 

或是:

如果通過上面的兩個設定不管用,或是忽略使用sudo執行root指令碼


 

部署完成後,在目標端用root使用者登入,執行

-r--r-----1 root root 3381 04-16 06:25 /etc/sudoers

[[email protected]]# /u01/app/agent/core/12.1.0.3.0/root.sh

Finishedproduct-specific root actions.

/etcexist

 

Creating/etc/oragchomelist file...

Finishedproduct-specific root actions.

 

卸載Agent代理

 

http://docs.oracle.com/cd/E24628_01/install.121/e24089/deinstall_agent.htm#CBBCADCD

 

[[email protected]]$ pwd

/u01/app/agent12c/core/12.1.0.4.0/oui/bin

[[email protected]]$ ./runInstaller -deinstall ORACLE_HOME=/u01/app/agent12c/agent_inst/core/12.1.0.4.0/-removeallfiles

 

 

先選擇刪除OraHOME1- OraHOME6

再刪除sbin12c1

最後刪除agent12c1

 

最後刪除agent目錄內容

[[email protected]]$ ls

agentimage.properties  agent_inst core  plugins  plugins.txt plugins.txt.status

[[email protected]]$ rm -rf *


Oracle 12c agent install for linux

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.