Home » RDBMS Server » Enterprise Manager » Rest Time Zone
Rest Time Zone [message #243573] Thu, 07 June 2007 15:14 Go to next message
harshad.gohil
Messages: 157
Registered: April 2007
Location: USA
Senior Member
I am cloning 10g agent to different machines.
I have successfully completed for 4 machines and now tryin in this machine I have got the error.

Time zone on previous machine is America/Chicago.
Same way I have tried to do that, but somehow machine time zone is diffrent.


$/opt/oracle/10.2/agent10g/bin/emctl start agent
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 /opt/oracle/10.2/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(<agent_name>, <new_tz_rgn>) to get the value propagated to repository.
Consult the log files in: /opt/oracle/10.2/agent10g/sysman/log


I have tried to reset my time zone for GMT+0


opt/oracle/10.2/agent10g/bin/emctl resetTZ agent
Oracle Enterprise Manager 10g Release 10.2.0.2.0.
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
Updating /opt/oracle/10.2/agent10g/sysman/config/emd.properties...
----- Thu Jun 7 19:13:04 2007::tzOffset for +00:00 is 0(min), but agent is runnning with tzOffset 60(min)
-----
----- Thu Jun 7 19:13:04 2007::trying again after waiting for 1 sec to account for daylight transition
-----
----- Thu Jun 7 19:13:04 2007::tzOffset for +00:00 is 0(min), but agent is runnning with tzOffset 60(min)
-----
resetTZ failed.
The agentTZRegion in:
/opt/oracle/10.2/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:
/opt/oracle/10.2/agent10g/sysman/admin/supportedtzs.lst


Does anyone has idea, What was the issue?
Re: Rest Time Zone [message #243576 is a reply to message #243573] Thu, 07 June 2007 15:24 Go to previous messageGo to next message
harshad.gohil
Messages: 157
Registered: April 2007
Location: USA
Senior Member
Not able to reset my TZ also...

/opt/oracle/10.2/agent10g/bin/emctl resetTZ agent
Oracle Enterprise Manager 10g Release 10.2.0.2.0.
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
Updating /opt/oracle/10.2/agent10g/sysman/config/emd.properties...
----- Thu Jun 7 21:21:58 2007::tzOffset for +00:00 is 0(min), but agent is runnning with tzOffset 60(min)
-----
----- Thu Jun 7 21:21:58 2007::trying again after waiting for 1 sec to account for daylight transition
-----
----- Thu Jun 7 21:21:58 2007::tzOffset for +00:00 is 0(min), but agent is runnning with tzOffset 60(min)
-----
resetTZ failed.
The agentTZRegion in:
/opt/oracle/10.2/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:
/opt/oracle/10.2/agent10g/sysman/admin/supportedtzs.lst


Let me know if anyone has face the same issue
Re: Rest Time Zone [message #243580 is a reply to message #243576] Thu, 07 June 2007 15:34 Go to previous messageGo to next message
DreamzZ
Messages: 1666
Registered: May 2007
Location: Dreamzland
Senior Member
Timezone mismatch agentTZRegion does not match the current environment TZ setting

To get Oracle's sweet Enterprise Manager Database Control web gui running, you'll need to use the Enterprise Manager control to start it. Use the following command:
emctl start dbconsole

The web gui runs on port 1158. For some reason, though my TZ environment variable matched what was in the emd.properties file, I got the following error:
[oracle@oracletest oracle]$ emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://oracletest.test.com:1158/em/console/aboutApplication

Timezone mismatch: The agentTZRegion value (EST) in
/oracle/oracletest.test.com_test/sysman/config/emd.properties
does not match the current environment TZ setting(EST).
The dbconsole cannot run with this mismatch.

If EST is the correct timezone, set your timezone environment variable to EST and repeat the 'emctl start dbconsole' operation.

If EST is not the correct timezone, make sure that the timezone in your environment is correct, and then run the following command in your local Oracle Home: 'emctl resetTZ agent'

The output of this command will include detailed instructions to follow, to correct the mismatch.

If I echo out my timezone, I see that it is set to EST:
[oracle@oracletest oracle]$ echo $TZ
EST

Then, I looked in the emd.properties file and saw that the agentTZRegion is set to the same:
[oracle@oracletest oracle]$ grep Z /oracle/oracletest.test.com_test/sysman/config/emd.properties
agentTZRegion=EST

What the heck? After a bit of googling, I saw someone simply unset the TZ environment variable and the dbconsole started up. So I did the same:
[oracle@oracletest oracle]$ unset TZ
[oracle@oracletest oracle]$ echo $TZ


This seemed to work for me as the dbconsole started and port 1158 was up and listening!
[oracle@oracletest oracle]$ emctl start dbconsole TZ set to US/Eastern
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
http://oracletest.test.com:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control .............. started.
------------------------------------------------------------------
Logs are generated in directory /oracle/oracletest.test.com_test/sysman/log
[oracle@oracletest oracle]$
[root@oracletest oracle]# netstat -na grep 1158
tcp 0 0 0.0.0.0:1158 0.0.0.0:* LISTEN

Ah well..all's well that ends well!



http://www.techanswerguy.com/2007/04/timezone-mismatch-agenttzregion-does.html
Re: Rest Time Zone [message #243581 is a reply to message #243580] Thu, 07 June 2007 15:41 Go to previous message
harshad.gohil
Messages: 157
Registered: April 2007
Location: USA
Senior Member
I am not having issue with console, I am having issue with 10g agent. I have tried to get the machine TZ and I have got is CUT0CDT which is not there in supportedtzs.lst......
Previous Topic: Oracle 10g Grid control
Next Topic: Entering variables into Sqlworksheet in Enterprise Manager
Goto Forum:
  


Current Time: Mon Dec 23 11:35:06 CST 2024