Install Agent Agent
When em11g, agent installation is through the host side of the producer Download agent and install, on the EM12C version number, can be on the EM12C server. The agent proxy is installed remotely to the monitored host side by means of "push", and the agent agent can be installed for multiple hosts at the same time.
Official documents:
Http://www.gokhanatil.com/2011/10/how-to-deploy-oracle-management-agent.html
Installation method:
First login em12c
Select: Set, join target, manually join target
Click: Join the Manual target –> join the host
Join host target name and platform
#mkdir/u01/app/agent12c
#chown oracle:oinstall/u01/app/agent12c
#chmod g+w agent12c
Point to create proof of identity
Next
Click "Deploy Agent"
[Email protected]]$ pwd
/u01/app/agent12c/agent_inst/bin
[[Email protected]]$./EMCTL Status Agent
Oracleenterprise Manager Cloud Control 12c Release 3
Copyright (c) 1996, 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
Or
Sudoers file is read-only by default
[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
Or:
Assume that the above two settings are used regardless of the use. or ignore running the root script with sudo
After the deployment is complete. Log in with the root user on the target side, run
-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.
Uninstalling Agent 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
Select Delete Orahome1-orahome6 First
Then delete the sbin12c1
Finally delete agent12c1
Finally Delete Agent folder contents
[Email protected]]$ ls
Agentimage.properties agent_inst Core Plugins plugins.txt Plugins.txt.status
[Email protected]]$ RM-RF *
Oracle 12c Agent Install for Linux