- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- system timezone change problem with RAC
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2006 08:22 PM
тАО12-19-2006 08:22 PM
I've got two hp-ux ia64 (11.23) nodes running
Oracle 10.2.0.2 RAC.
At system inst. on one of then i set time zone
MST by mistake. Should have been MET.
At the time nodes were not configured as NTP clients yes, so I didn't notice that until after RAC was up and running.
I changed it and now I have a big problem.
Oracle instance on that node still shows the
MST time (TO_CHAR(SYSDATE,...)).
After the system timezone change I rebooted
the system.
Then I set:
# srvctl getenv database -d hb0
TNS_ADMIN=/cfs/sw01/ora/10.2.0/db1/network/admin
TZ=+01:00
# I set Oracle's TZ variable (listener
runs under oracle user) to the same
value, restarted instance + crs on
that node ...
Nothing seems to help.
Any ideas, please?
Thanks,
Borut
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2006 08:44 PM
тАО12-19-2006 08:44 PM
Re: system timezone change problem with RAC
You may need to change the time zone at Unix level as well. Try set_parms coomand to change your syste's time zone. This require system reboot so be careful.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2006 08:50 PM
тАО12-19-2006 08:50 PM
Re: system timezone change problem with RAC
Thanks, Sunil.
I've already done that.
In fact, that wast the cause of
it all. I had to change timezone from
MST to MET at the HP-UX level
first, so I did it (and of course
rebooted the system).
Just the Oracle RAC instance on
that node doesn't seem to
'understand' that, so the time
it shows is still MST.
Regards,
Borut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2006 10:46 PM
тАО12-19-2006 10:46 PM
SolutionThe HP-UX $TZ precedences are (see patch PHCO_34275 special instructions for better understanding):
1) if the environment variable TZ is present, it takes the
precedence.
2) if TZ is not present, then the value contained in
/etc/default/tz is used for default.
3) if /etc/default/tz is not set, then the default value is
equivalent to EST5EDT (Eastern Standard Time) of US.
Best Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2006 10:56 PM
тАО12-19-2006 10:56 PM
Re: system timezone change problem with RAC
...So how did you set the $TZ variable?
TZ is not an Oracle variable but an HP-UX one and if not set explicitly will default to the value in "/etc/default/tz".
ORA_TZFILE is usally used for Oracle:
export ORA_TZFILE="$ORACLE_HOME/oracore/zoneinfo/timezlrg.dat"
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2006 11:08 PM
тАО12-19-2006 11:08 PM
Re: system timezone change problem with RAC
Thanks, Eric.
My HP-UX timezones are ok (MET) now. I have
no problem there.
The only problem is that Oracle instance on
the node where timezone was incorrect, still
shows the wrong time.
system node1:
=============
# date
Wed Dec 20 12:53:17 MET 2006
system node2:
=============
# date
Wed Dec 20 12:53:23 MET 2006
oracle instance system 1:
=========================
SQL> select dbtimezone from dual;
DBTIME
------
+00:00
SQL> select sessiontimezone from dual;
SESSIONTIMEZONE
---------------
+01:00
SQL> select to_char(sysdate,'YYYYMMDD HH24:MI:SS') from dual;
TO_CHAR(SYSDATE,'
-----------------
20061220 12:54:12
oracle instance at system 2:
============================
SQL> select dbtimezone from dual;
DBTIME
------
+00:00
SQL> select sessiontimezone from dual;
SESSIONTIMEZONE
---------------
+01:00
SQL> select to_char(sysdate,'YYYYMMDD HH24:MI:SS') from dual;
TO_CHAR(SYSDATE,'
-----------------
20061220 06:54:17
As you can see, the both systems
show the same time and timezone
settings, but the Oracle instances
show the same timezone setting but
different time and
the difference between the instances is
6 hrs, which is the difference between
MET and MST.
Regards,
Borut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-20-2006 12:08 AM
тАО12-20-2006 12:08 AM
Re: system timezone change problem with RAC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2007 04:05 AM
тАО01-26-2007 04:05 AM
Re: system timezone change problem with RAC
Did you resolve this issue? If yes, could you share what you did to fix this problem (ie, how to get Oracle to recognize system timezone)?
Thanks,
HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2007 08:14 AM
тАО01-26-2007 08:14 AM
Re: system timezone change problem with RAC
Oh yes, of course. Sorry.
As Eric wrote ....
1) if the environment variable TZ is present, it takes the
precedence.
2) if TZ is not present, then the value contained in
/etc/default/tz is used for default.
3) if /etc/default/tz is not set, then the default value is
equivalent to EST5EDT (Eastern Standard Time) of US.
I updated /etc/default/tz, but I also had
TZ set in one of those nested login procedures.
Just wasn't careful enough...
Regards,
Borut