re1

Oracle agent 11g fail to start

Nov 17, 2011 16:17

Shit Happens

After upgrade os timezone Europe/Moscow

bash-3.00$ /oracle/agent11g/bin/emctl start agent
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting agent ...... failed.
The agentTZRegion value in /oracle/agent11g/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(, ) to get the value propagated to repository.
Consult the log files in: /oracle/agent11g/sysman/log

Solution

export TZ=Etc/GMT+7
emctl resetTZ agent

Login as the em repository user and run the SQL script:
exec mgmt_target.set_agent_tzrgn(':
','Etc/GMT+7')
and commit the changes

Success

bash-3.00$ emctl start agent   
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.
Starting agent ............... started.

Previous post
Up