AGENT时区问题

2024-09-07 12:38
文章标签 问题 agent 时区

本文主要是介绍AGENT时区问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1、因agent的时区与machine时区不匹配导致启动agent失败,解决在安装检查时区的检查的警告问题
解决问题:在利用12c MOS推送方式安装12c agent时,会出现时区检查的warning,上面提示利用emctl resetTZ agent在安装后处理。在做的过程中,可能遇到某些状况的解决方法
环境:HP_UNIX B.11.31
--查看agent状态
$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.3.0
OMS Version       : 12.1.0.3.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u01/app/agent_12c/agent_inst
Agent Binaries    : /u01/app/agent_12c/core/12.1.0.3.0
Agent Process ID  : 16518
Parent Process ID : 16451
Agent URL         : https://tdbsvr2:3872/emd/main/
Repository URL    : https://oragc12c.yto56.com.cn:4900/empbs/upload
Started at        : 2014-03-25 02:45:25
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2014-03-26 03:00:33
Last attempted upload                        : 2014-03-26 03:00:33
Total Megabytes of XML files uploaded so far : 2.67
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 15.49%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2014-03-26 03:00:18
Last successful heartbeat to OMS             : 2014-03-26 03:00:18
Next scheduled heartbeat to OMS              : 2014-03-26 03:01:18
---------------------------------------------------------------
Agent is Running and Ready

--关闭agent,查看agent所配置的时区,配置文件位于emd.properties文件里agentTZRegion字段
$ ./emctl stop agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Stopping agent ..... stopped.
$ ./emctl config agent getTZ
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
GMT+08:00
--查看agent所在主机的时区
$ date
Wed Mar 26 11:01:28 EAT 2014
$ more /etc/TIMEZONE
TZ=EAT-8
export TZ

--如果不设置时区,则此时利用文档所给的命令做配置,则会报下面错误
$ ./emctl resetTZ agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Updating /u01/app/agent_12c/agent_inst/sysman/config/emd.properties...
----- Wed Mar 26 11:02:06 2014::Blackout update timestamp Error : null
resetTZ failed.
The agentTZRegion in:
/u01/app/agent_12c/agent_inst/sysman/config/emd.properties
is not in agreement with what the agent thinks it should be.
Fix your environment.
Pick a TZ value that corresponds to time zone settings listed in:
/u01/app/agent_12c/core/12.1.0.3.0/sysman/admin/supportedtzs.lst
$ ./emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Starting agent ..... failed.
property 'agentTZregion' in '/u01/app/agent_12c/agent_inst/sysman/config/emd.properties' contains an invalid value of '+08:00'.Agent start up can not proceed.This value might have been manually modified to be an incorrect value.This value needs to be set to one of the  values listed in '/u01/app/agent_12c/core/12.1.0.3.0/sysman/admin/supportedtzs.lst'. Execute 'emctl config agent getTZ' and see if this is an appropriate value.
Consult emctl.log and emagent.nohup in: /u01/app/agent_12c/agent_inst/sysman/log

--更改session的TZ,此TZ选择与agentTZ所在的时区一致,配置agentTZ再启动agent,查看状态
$  export TZ=Asia/Shanghai
$ date
Wed Mar 26 03:02:22 Asia/Shanghai 2014
$ ./emctl resetTZ agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Updating /u01/app/agent_12c/agent_inst/sysman/config/emd.properties...
----- Wed Mar 26 03:03:04 2014::Blackout update timestamp Error : null
Successfully updated /u01/app/agent_12c/agent_inst/sysman/config/emd.properties.
Login as the em repository user and run the  script:
exec mgmt_target.set_agent_tzrgn('tdbsvr2:3872','Asia/Shanghai')
and commit the changes
This can be done for example by logging into sqlplus and doing
SQL> exec mgmt_target.set_agent_tzrgn('tdbsvr2:3872','Asia/Shanghai')
SQL> commit
$ ./emctl start agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Starting agent ................................... started.
$ ./emctl status agent
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
Agent Version     : 12.1.0.3.0
OMS Version       : 12.1.0.3.0
Protocol Version  : 12.1.0.1.0
Agent Home        : /u01/app/agent_12c/agent_inst
Agent Binaries    : /u01/app/agent_12c/core/12.1.0.3.0
Agent Process ID  : 18879
Parent Process ID : 18826
Agent URL         : https://tdbsvr2:3872/emd/main/
Repository URL    : https://oragc12c.yto56.com.cn:4900/empbs/upload
Started at        : 2014-03-26 11:03:25
Started by user   : oracle
Last Reload       : (none)
Last successful upload                       : 2014-03-26 11:03:58
Last attempted upload                        : 2014-03-26 11:03:58
Total Megabytes of XML files uploaded so far : 0.01
Number of XML files pending upload           : 0
Size of XML files pending upload(MB)         : 0
Available disk space on upload filesystem    : 15.49%
Collection Status                            : Collections enabled
Heartbeat Status                             : Ok
Last attempted heartbeat to OMS              : 2014-03-26 11:03:57
Last successful heartbeat to OMS             : 2014-03-26 11:03:57
Next scheduled heartbeat to OMS              : 2014-03-26 11:04:57
---------------------------------------------------------------
Agent is Running and Ready

这篇关于AGENT时区问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1145078

相关文章

Kotlin Map映射转换问题小结

《KotlinMap映射转换问题小结》文章介绍了Kotlin集合转换的多种方法,包括map(一对一转换)、mapIndexed(带索引)、mapNotNull(过滤null)、mapKeys/map... 目录Kotlin 集合转换:map、mapIndexed、mapNotNull、mapKeys、map

nginx中端口无权限的问题解决

《nginx中端口无权限的问题解决》当Nginx日志报错bind()to80failed(13:Permissiondenied)时,这通常是由于权限不足导致Nginx无法绑定到80端口,下面就来... 目录一、问题原因分析二、解决方案1. 以 root 权限运行 Nginx(不推荐)2. 为 Nginx

解决1093 - You can‘t specify target table报错问题及原因分析

《解决1093-Youcan‘tspecifytargettable报错问题及原因分析》MySQL1093错误因UPDATE/DELETE语句的FROM子句直接引用目标表或嵌套子查询导致,... 目录报js错原因分析具体原因解决办法方法一:使用临时表方法二:使用JOIN方法三:使用EXISTS示例总结报错原

Windows环境下解决Matplotlib中文字体显示问题的详细教程

《Windows环境下解决Matplotlib中文字体显示问题的详细教程》本文详细介绍了在Windows下解决Matplotlib中文显示问题的方法,包括安装字体、更新缓存、配置文件设置及编码調整,并... 目录引言问题分析解决方案详解1. 检查系统已安装字体2. 手动添加中文字体(以SimHei为例)步骤

SpringSecurity整合redission序列化问题小结(最新整理)

《SpringSecurity整合redission序列化问题小结(最新整理)》文章详解SpringSecurity整合Redisson时的序列化问题,指出需排除官方Jackson依赖,通过自定义反序... 目录1. 前言2. Redission配置2.1 RedissonProperties2.2 Red

nginx 负载均衡配置及如何解决重复登录问题

《nginx负载均衡配置及如何解决重复登录问题》文章详解Nginx源码安装与Docker部署,介绍四层/七层代理区别及负载均衡策略,通过ip_hash解决重复登录问题,对nginx负载均衡配置及如何... 目录一:源码安装:1.配置编译参数2.编译3.编译安装 二,四层代理和七层代理区别1.二者混合使用举例

怎样通过分析GC日志来定位Java进程的内存问题

《怎样通过分析GC日志来定位Java进程的内存问题》:本文主要介绍怎样通过分析GC日志来定位Java进程的内存问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、GC 日志基础配置1. 启用详细 GC 日志2. 不同收集器的日志格式二、关键指标与分析维度1.

Java 线程安全与 volatile与单例模式问题及解决方案

《Java线程安全与volatile与单例模式问题及解决方案》文章主要讲解线程安全问题的五个成因(调度随机、变量修改、非原子操作、内存可见性、指令重排序)及解决方案,强调使用volatile关键字... 目录什么是线程安全线程安全问题的产生与解决方案线程的调度是随机的多个线程对同一个变量进行修改线程的修改操

Redis出现中文乱码的问题及解决

《Redis出现中文乱码的问题及解决》:本文主要介绍Redis出现中文乱码的问题及解决,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1. 问题的产生2China编程. 问题的解决redihttp://www.chinasem.cns数据进制问题的解决中文乱码问题解决总结

全面解析MySQL索引长度限制问题与解决方案

《全面解析MySQL索引长度限制问题与解决方案》MySQL对索引长度设限是为了保持高效的数据检索性能,这个限制不是MySQL的缺陷,而是数据库设计中的权衡结果,下面我们就来看看如何解决这一问题吧... 目录引言:为什么会有索引键长度问题?一、问题根源深度解析mysql索引长度限制原理实际场景示例二、五大解决