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

相关文章

usb接口驱动异常问题常用解决方案

《usb接口驱动异常问题常用解决方案》当遇到USB接口驱动异常时,可以通过多种方法来解决,其中主要就包括重装USB控制器、禁用USB选择性暂停设置、更新或安装新的主板驱动等... usb接口驱动异常怎么办,USB接口驱动异常是常见问题,通常由驱动损坏、系统更新冲突、硬件故障或电源管理设置导致。以下是常用解决

Mysql如何解决死锁问题

《Mysql如何解决死锁问题》:本文主要介绍Mysql如何解决死锁问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录【一】mysql中锁分类和加锁情况【1】按锁的粒度分类全局锁表级锁行级锁【2】按锁的模式分类【二】加锁方式的影响因素【三】Mysql的死锁情况【1

SpringBoot内嵌Tomcat临时目录问题及解决

《SpringBoot内嵌Tomcat临时目录问题及解决》:本文主要介绍SpringBoot内嵌Tomcat临时目录问题及解决,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,... 目录SprinjavascriptgBoot内嵌Tomcat临时目录问题1.背景2.方案3.代码中配置t

SpringBoot使用GZIP压缩反回数据问题

《SpringBoot使用GZIP压缩反回数据问题》:本文主要介绍SpringBoot使用GZIP压缩反回数据问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录SpringBoot使用GZIP压缩反回数据1、初识gzip2、gzip是什么,可以干什么?3、Spr

如何解决idea的Module:‘:app‘platform‘android-32‘not found.问题

《如何解决idea的Module:‘:app‘platform‘android-32‘notfound.问题》:本文主要介绍如何解决idea的Module:‘:app‘platform‘andr... 目录idea的Module:‘:app‘pwww.chinasem.cnlatform‘android-32

kali linux 无法登录root的问题及解决方法

《kalilinux无法登录root的问题及解决方法》:本文主要介绍kalilinux无法登录root的问题及解决方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,... 目录kali linux 无法登录root1、问题描述1.1、本地登录root1.2、ssh远程登录root2、

SpringBoot应用中出现的Full GC问题的场景与解决

《SpringBoot应用中出现的FullGC问题的场景与解决》这篇文章主要为大家详细介绍了SpringBoot应用中出现的FullGC问题的场景与解决方法,文中的示例代码讲解详细,感兴趣的小伙伴可... 目录Full GC的原理与触发条件原理触发条件对Spring Boot应用的影响示例代码优化建议结论F

MySQL 中查询 VARCHAR 类型 JSON 数据的问题记录

《MySQL中查询VARCHAR类型JSON数据的问题记录》在数据库设计中,有时我们会将JSON数据存储在VARCHAR或TEXT类型字段中,本文将详细介绍如何在MySQL中有效查询存储为V... 目录一、问题背景二、mysql jsON 函数2.1 常用 JSON 函数三、查询示例3.1 基本查询3.2

Pyserial设置缓冲区大小失败的问题解决

《Pyserial设置缓冲区大小失败的问题解决》本文主要介绍了Pyserial设置缓冲区大小失败的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面... 目录问题描述原因分析解决方案问题描述使用set_buffer_size()设置缓冲区大小后,buf

resultMap如何处理复杂映射问题

《resultMap如何处理复杂映射问题》:本文主要介绍resultMap如何处理复杂映射问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录resultMap复杂映射问题Ⅰ 多对一查询:学生——老师Ⅱ 一对多查询:老师——学生总结resultMap复杂映射问题