OEM

[oracle@redhat4 config]$ cd $ORACLE_HOME/redhat4.7_orcl/sysman/config

[oracle@redhat4 config]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/redhat4.7_orcl/sysman/config
[oracle@redhat4 config]$ vi emd.properties

UploadMaxBytesXML=20M
omsRecvDir=/u01/app/oracle/product/11.2.0/dbhome_1/redhat4.7_orcl/sysman/recv
#agentTZRegion=PRC
agentTZRegion=Asia/Shanghai

[oracle@redhat4 config]$ cd ../../
[oracle@redhat4 redhat4.7_orcl]$ cd ..
[oracle@redhat4 dbhome_1]$ cd sysman
[oracle@redhat4 sysman]$ cd admin
[oracle@redhat4 admin]$ vi supportedtzs.lst

# Timezone regions with +08:00 standard offset from GMT
Asia/Chungking
Asia/Harbin
Asia/Hong_Kong
Asia/Irkutsk
Asia/Kashgar
Asia/Kuala_Lumpur
Asia/Kuching
Asia/Macao
Asia/Manila
Asia/Shanghai
Asia/Singapore
Asia/Taipei
Asia/Ujung_Pandang
Asia/Urumqi
Australia/Perth
Australia/West
Etc/GMT-8
Hongkong
PRC
ROC
Singapore

[oracle@redhat4 config]$ pwd
/u01/app/oracle/product/11.2.0/dbhome_1/redhat4.7_ora11g/sysman/config
[oracle@redhat4 config]$ vi emd.properties
UploadMaxBytesXML=20M
omsRecvDir=/u01/app/oracle/product/11.2.0/dbhome_1/redhat4.7_ora11g/sysman/recv
#agentTZRegion=PRC
agentTZRegion=Asia/Shanghai

==================================

emctl resetTZ agent.

[oracle@redhat4 config]$ export ORACLE_SID=orcl
[oracle@redhat4 config]$ emctl resetTZ agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Agent is running. Stop the agent and rerun the command.
[oracle@redhat4 config]$ export ORACLE_SID=ora11g
[oracle@redhat4 config]$ emctl resetTZ agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
Agent is running. Stop the agent and rerun the command.

image

image

原文地址:https://www.cnblogs.com/quanweiru/p/4928923.html