GC Agent Startup Fails on AIX due to Invalid Timezone Setting at OS_825933.1
Grid Control Agent Startup Fails on AIX Server due to Invalid Timezone Setting at the OS (Doc ID 825933.1)
In this Document
Symptoms |
Cause |
Solution |
Applies to:
Enterprise Manager Base Platform - Version 10.2.0.1 to 10.2.0.5 [Release 10.2]
IBM AIX on POWER Systems (64-bit)
IBM AIX Based Systems (64-bit)IBM AIX5L Based Systems (32-bit)IBM AIX Based Systems (32-bit)
***Checked for relevance on 24-may-2012***
Checked for relevance on 28-Oct-2013
Symptoms
New installation of the Grid Agent on AIX server fails to start with the below error:
Oracle Enterprise Manager 10g Release 10.2.0.2.0.
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
Starting agent ..... failed.
The agentTZRegion value in /rfes/oracle/OEM10g/agent10g/sysman/config/emd.properties is not in
agreement with what agent thinks it should be.Please verify your environment to make sure that TZ setting has not changed since the last start of the agent.
If you modified the timezone setting in the environment, please stop the agent and exectute 'emctl
resetTZ agent' and also execute the script mgmt_target.set_agent_tzrgn(
Consult the log files in: /rfes/oracle/OEM10g/agent10g/sysman/log
- Trying to reset the Agent timezone also fails:
Oracle Enterprise Manager 10g Release 10.2.0.2.0.
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
Updating /rfes/oracle/OEM10g/agent10g/sysman/config/emd.properties...
----- Sun May 3 17:45:51 2009::tzOffset for -05:30 is -330(min), but agent is runnning with
tzOffset -270(min)-----
----- Sun May 3 17:45:51 2009::trying again after waiting for 1 sec to account for daylight
transition -----
----- Sun May 3 17:45:51 2009::tzOffset for -05:30 is -330(min), but agent is runnning with
tzOffset -270(min)----- resetTZ failed.
The agentTZRegion in:
/rfes/oracle/OEM10g/agent10g/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:
/rfes/oracle/OEM10g/agent10g/sysman/admin/supportedtzs.lst
- The
If you modified the timezone setting in the environment, please stop the agent and exectute 'emctl resetTZ agent' and also execute the script mgmt_target.set_agent_tzrgn(
----- Sun May 3 17:31:24 2009::tzOffset for -04:00 is -240(min), but agent is runnning with tzOffset -270(min)
-----
----- Sun May 3 17:31:24 2009::trying again after waiting for 1 sec to account for daylight transition
-----
----- Sun May 3 17:31:24 2009::tzOffset for -04:00 is -240(min), but agent is runnning with tzOffset -270(min)
- The
2009-05-03 16:21:56 Thread-1 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-270,and testTZoffset for -05:30:-330 do not match
2009-05-03 16:21:57 Thread-1 ERROR main: nmectl.c: nmectl_validateTZRegion, agentTZoffset =-270,and testTZoffset for -05:30:-330 do not matc
- Value of TZ parameter in the
agentTZRegion=GMT-05:30
Cause
The Agent machine is located geographically in Asia/Calcutta (GMT+5:30) timezone but the wrong timezone was set at OS level:
IST05:30IST
With the above setting, the 'emctl config agent getTZ' command returns:
emctl config agent getTZ
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
GMT-05:30
GMT-05:30 is an incorrect value for the Asia/Calcutta timezone.
Solution
On AIX servers the timezone at OS level is set in a different format when compared to the other Operating systems.
1. Set the TZ in the correct format.
For example, if the TZ=Asia/Calcutta, then
$ export TZ=IST-5:30IST
2. Check the TZ value as calculated by the Agent:
emctl config agent getTZ
Oracle Enterprise Manager 10g Release 5 Grid Control 10.2.0.5.0.
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
GMT+05:30
3. Force the Agent to recognize the newly set TZ:
$ export PATH=$ORACLE_HOME/bin:$PATH
$ cd $ORACLE_HOME/bin
$ emctl resetTZ agent
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
Updating /home/em/oracle/gc102/agent10g/sysman/config/emd.properties...
Successfully updated /home/em/oracle/gc102/agent10g/sysman/config/emd.properties.
Login as the em repository user and run the script:
exec mgmt_target.set_agent_tzrgn('agentmachine.domain:3872','Asia/Calcutta')
and commit the changes
This can be done for example by logging into sqlplus and doing
SQL> exec mgmt_target.set_agent_tzrgn('agentmachine.domain:3872','Asia/Calcutta')
SQL> commit
DO NOT start the Agent yet!
- Login to the Repository database as the SYSMAN user and execute the SQL statements shown by the above command output:
SQL> exec mgmt_target.set_agent_tzrgn('
SQL> commit;
For example:
SQL> exec mgmt_target.set_agent_tzrgn('agentmachine.domain:3872','Asia/Calcutta')
SQL> commit
- After the Repository side routine has completed successfully, start the agent, and make sure it's uploading new data:
$ emctl start agent
$ emctl upload
$ emctl status agent
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.files/doc/aixfiles/environment.htm
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1244920/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DataPump Export (EXPDP) Fails With Error LPX-216 Invalid CharacterExportAIError
- Android執行出現android Installation failed due to invalid URI! 錯誤處理AndroidAI
- Server returns invalid timezone. Need to set ‘serverTimezone‘ property. Idea連線mysql報錯問題ServerIdeaMySql
- linux timezoneLinux
- startup,startup mount,startup nomount之間的區別
- 【AIX】AIX程式監控工具AI
- startup nomount
- BUG: JS 修改Date的TimezoneJS
- setting.xmlXML
- 阿里雲setting阿里
- AIX VGDAAI
- 【AIX-PS】AIX系統ps命令詳解AI
- Maven setting.xmlMavenXML
- SpokenEnglish01_ When's it due?
- MySQL Server Startup ScriptMySqlServer
- vue2 setting配置Vue
- Requested setting INSTALLED_APPSAPP
- Install python on AIX 7PythonAI
- AIX掛載NFSAINFS
- AIX_EXT_VGAI
- aix lvm big vgAILVM
- 【AIX】記憶體AI記憶體
- aix升級opensshAI
- Nginx配置max_fails fail_timeoutNginxAI
- Full GC (Metadata GC Threshold)GC
- IBM AIX儲存層結構分析+aix常用命令IBMAI
- k8s中ConfigMap的timezone使用K8S
- *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[APPException
- Message from debugger: Terminated due to signal 13
- 【AIX】AIX7.1 C編譯環境部署指導說明AI編譯
- 【Basis】HANA Database SR Basis SettingDatabase
- “setting.xml” has syntax errorsXMLError
- PostgreSQL DBA(156) - pgAdmin(Rollback setting)SQL
- django setting 配置資料庫Django資料庫
- raspberry pi bookworm setting static ipWorm
- [20200302]startup dba.txt
- 4.1.2 關於Startup部署
- Jetpack之Startup快速掌握Jetpack
- 從CLR GC到CoreCLR GCGC