Oracle 12c agent install for linux
2017-05-13 13:30
489 查看
安装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
点
创建身份证明
下一步
点击“部署代理”
[oracle@racdb1bin]$ pwd
/u01/app/agent12c/agent_inst/bin
[oracle@racdb1bin]$ ./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
[oracle@newcc~]$ vi /u01/app/oracle/oms12cr3/oms/sysman/prov/agentpush/agentpush.properties
oracle.sysman.prov.agentpush.enablePty=true
[root@racdb1 app]# ll /etc/sudoers
-r--r-----1 root root 3381 2013-01-09 /etc/sudoers
或是
sudoers文件默认是仅仅读的
[root@racdb1app]# chmod 777 /etc/sudoers
[root@racdb1app]# vi /etc/sudoers
Defaults !requiretty
Defaults visiblepw
oracle ALL=(ALL) ALL
[root@racdb1app]# chmod 440 /etc/sudoers
[root@racdb1app]# 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
[root@singleagent]# /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[oracle@singlebin]$ pwd
/u01/app/agent12c/core/12.1.0.4.0/oui/bin
[oracle@singlebin]$ ./runInstaller -deinstall ORACLE_HOME=/u01/app/agent12c/agent_inst/core/12.1.0.4.0/-removeallfiles
先选择删除OraHOME1- OraHOME6
再删除sbin12c1
最后删除agent12c1
最后删除agent文件夹内容
[oracle@singleagent]$ ls
agentimage.properties agent_inst core plugins plugins.txt plugins.txt.status
[oracle@singleagent]$ rm -rf *
相关文章推荐
- Oracle 12c agent install for linux
- Oracle 12c agent install for windows
- Oracle 12c agent install for windows
- Oracle RDBMS Server 11gR2 Preinstall RPM For Oracle Linux 6
- Oracle Enterprise Manager Cloud Control 12c(12.1.0.1.1) Agent install
- Oracle install for redhat Linux
- Oracel 12cR1 install for Oracle Linux 6.6
- Oracle RDBMS Server 11gR2 Preinstall RPM For Oracle Linux 6
- Oracle Install for linux
- ORACLE Install (10g r2) FOR Red Hat Enterprise Linux Server release 5.5 (64 bit) (转)
- 图文并茂——Oracle 10g for Linux install
- Fast Setup for Oracle Install on Linux
- Oracle install for redhat Linux
- How to install oracle 10g for Linux in ubuntu
- Oracle GoldenGate Install For Linux
- 如何安装Backup Exec Remote Agent for Linux Server
- HOWTO install and setup Android NDK for Linux(Android NDK安装遇到的问题和解决方法)
- Steps to enable adding packages from DVD for Oracle Enterprise Linux 5
- oracle 10g rac for linux (ASM) 修改modify public IP and vip
- Rose for Linux Oracle 的安装