Focus On Oracle

Installing, Backup & Recovery, Performance Tuning,
Troubleshooting, Upgrading, Patching

Oracle Engineered System


当前位置: 首页 » 技术文章 » Oracle

如何修改Oracle Enterprise Linux时区?

修改/etc/sysconfig/clock

[root@psdyy-2 ~]# cat /etc/sysconfig/clock

ZONE="Asia/Shanghai"
UTC=true
[root@psdyy-2 ~]# date

Thu May 18 10:22:35 EDT 2017

备份并修改/etc/localtime

[root@psdyy-2 ~]# ls -l /etc/localtime
-rw-r--r--. 1 root root 3519 Jun 14  2016 /etc/localtime
[root@psdyy-2 ~]# mv /etc/localtime /etc/localtime.ohs
[root@psdyy-2 ~]# date

Thu May 18 14:22:50 UTC 2017

[iapsdyy@psdyy-man ~]$ file /usr/share/zoneinfo/Asia/Shanghai
/usr/share/zoneinfo/Asia/Shanghai: timezone data, version 2, 2 gmt time flags, 2 std time flags, no leap seconds, 16 transition times, 2 abbreviation chars
[iapsdyy@psdyy-man ~]$
[root@psdyy-2 ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
[root@psdyy-2 ~]# date
Thu May 18 22:23:03 CST 2017

[root@psdyy-2 ~]#


关键词:nuix oel 

相关文章

如何修改Oracle Enterprise Linux时区?
Top