oem 常见问题解决
scan listener status is down
OEM 在封锁窗口内,scan listener发生漂移,随后状态不正常,可使用如下解决方法
在oem服务段操作 /emcli relocate_targets -src_agent=xd02db01.fbs.bj.bob:3872 -dest_agent=xd02db02.fbs.bj.bob:3872 -target_name=LISTENER_SCAN1_Cluster-xd02 -target_type=oracle_listener -copy_from_src 在客户端操作 ./emctl control agent runCollection <SACN listener target name>:oracle_listener Response ./emctl upload
复制
手工删除对象
[oracle@OEM01 bin]$ ./emcli login -username=sysman Enter password Login successful [oracle@OEM01 bin]$ ./emcli sync Synchronized successfully [oracle@OEM01 bin]$ ./emcli delete_target -name="OEM01.corp.com:3872" -type="oracle_emd" -delete_monitored_targets Target "OEM01.corp.com:3872:oracle_emd" deleted successfully
复制
修改sysman密码
知道sysman密码: OMS_Home/bin/emctl stop oms emctl config oms -change_repos_pwd [-old_pwd <old_pwd>] [-new_pwd <new_pwd>] [-use_sys_pwd [-sys_pwd <sys_pwd>]] emctl config oms -change_repos_pwd' 不知道sysman密码,使用sys密码修改: emctl stop oms cd <OMS_HOME>/bin emctl config oms -change_repos_pwd -use_sys_pwd -sys_pwd <sys user password> -new_pwd <new sysman password>
复制
卸载agent
卸载agent
$<AGENT_HOME>/bin/emctl stop agent
$<AGENT_HOME>/perl/bin/perl $<AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <AGENT_HOME>
oms删除对象
参考上面章节《手工删除对象》
例:
$/u01/app/oracle/agent12c/core/12.1.0.4.0/perl/bin/perl /u01/app/oracle/agent12c/core/12.1.0.4.0/sysman/install/AgentDeinstall.pl -agentHome /u01/app/oracle/agent12c/core/12.1.0.4.0
[oracle@dbaas01 ~]$ cd /u01/app/oracle/agent12c
[oracle@dbaas01 agent12c]$ rm -rf *
复制
agent 使用RPM包 静默方式安装
1.生成rpm包
登陆oms 服务器:
#####前置条件
mkdir -p /usr/lib/oracle
chmod 777 /usr/lib/oracle
保证可以执行rpmbuild命令
否则安装包:
[root@omsserver ~]# yum install -y rpm-build
#####开始:
$ cd /u01/app/Middleware/oms/bin/
登陆会话:
$ ./emcli login -username=sysman
查看支持的agent:
$ ./emcli get_supported_platforms
生成rpm包
$ ./emcli get_agentimage_rpm -destination=/tmp -platform="Linux x86-64" -version=13.5.0.0.0
2.scp传输rpm包到client ,并且安装
rpm -ivh --relocate /usr/lib/oracle/agent=/scratch/aime/agent /tmp/oracle-agt-13.5.0.0.0-1.0.i386.rpm
3.编辑文件
/usr/lib/oracle/agent/agent.properties
4.上载配置文件完成安装
/etc/init.d/oracle-agt RESPONSE_FILE=<location_to_agent.properties>
附件编辑文件示例:
[root@nkgfdb01 agent]# vi agent.properties
#-------------------------------------------------------------------------------
#OMS_HOST:<String> OMS host info required to connect to OMS
#OMS_PORT:<String> OMS port info required to connect to OMS
#AGENT_REGISTRATION_PASSWORD:<String> Agent Registration Password needed to
# establish a secure connection to the OMS.
#-------------------------------------------------------------------------------
OMS_HOST=OEM
OMS_PORT=4903
AGENT_REGISTRATION_PASSWORD=oracle10
#-------------------------------------------------------------------------------
#AGENT_USERNAME:<String> User name with which the agent should be installed.
#AGENT_GROUP:<String> Group to which the agent user belogs.
#AGENT_PORT:<String> Port in which the agent process will come up.
#-------------------------------------------------------------------------------
AGENT_USERNAME=oracle
AGENT_GROUP=dba
AGENT_PORT=3872
#-------------------------------------------------------------------------------
#ORACLE_HOSTNAME:<String> Virtual hostname where the agent is deployed.
#Example: ORACLE_HOSTNAME=hostname.domain
#-------------------------------------------------------------------------------
#ORACLE_HOSTNAME=#ORACLE_HOSTNAME#
复制
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
【纯干货】Oracle 19C RU 19.27 发布,如何快速升级和安装?
Lucifer三思而后行
711次阅读
2025-04-18 14:18:38
Oracle RAC 一键安装翻车?手把手教你如何排错!
Lucifer三思而后行
640次阅读
2025-04-15 17:24:06
Oracle数据库一键巡检并生成HTML结果,免费脚本速来下载!
陈举超
557次阅读
2025-04-20 10:07:02
【ORACLE】你以为的真的是你以为的么?--ORA-38104: Columns referenced in the ON Clause cannot be updated
DarkAthena
502次阅读
2025-04-22 00:13:51
【活动】分享你的压箱底干货文档,三篇解锁进阶奖励!
墨天轮编辑部
497次阅读
2025-04-17 17:02:24
【ORACLE】记录一些ORACLE的merge into语句的BUG
DarkAthena
492次阅读
2025-04-22 00:20:37
一页概览:Oracle GoldenGate
甲骨文云技术
473次阅读
2025-04-30 12:17:56
火焰图--分析复杂SQL执行计划的利器
听见风的声音
424次阅读
2025-04-17 09:30:30
3月“墨力原创作者计划”获奖名单公布
墨天轮编辑部
374次阅读
2025-04-15 14:48:05
OR+DBLINK的关联SQL优化思路
布衣
364次阅读
2025-05-05 19:28:36