enterprise grid control 在aix下的時區 timezone設定
前幾天完成的grid control需要調整時區,原來的時區預設為美國中部時間,現在需要調整為北京時間。
在aix中調整時區很簡單,smitty chtz,選擇“beist - 8”即可,然後重啟。系統啟動完成後,啟動資料庫沒問題,啟動oms也沒有問題,啟動agent,報錯了。因為時區不能被oracle程式識別,不能啟動。
看了下手冊,需要重置時區
$./emctl resetTZ agent
系統輸出:
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Updating /oracleb/OracleHomes/agent10g/sysman/config/emd.properties...
Successfully updated /oracleb/OracleHomes/agent10g/sysman/config/emd.properties.
Login as the em repository user and run the script.:
exec mgmt_target.set_agent_tzrgn('gridi4:1830','+08:00')
and commit the changes
This can be done for example by logging into sqlplus and doing
SQL> exec mgmt_target.set_agent_tzrgn('gridi4:1830','+08:00')
SQL> commit
$./emctl start agent
錯誤依舊,仔細看了一下上面的輸出,發現'+08:00'這個有很大的問題,通過檢視agent10g/sysman/admin/supportedtzs.lst,裡面對應 GMT +8的項裡面對應的是Asia/Shanghai,Asia/Chongqing,就是沒有北京,那就只好用上海吧。
首先修改agent10g/sysman/config/emd.properties最後一行,把 +08:00改為 Asia/Shanghai,然後登入到db10g的資料庫中,執行:
exec mgmt_target.set_agent_tzrgn('gridi4:1830','Asia/Shanghai');
執行
$./emctl start agent
agent啟動成功了。
出現這個問題的主要原因是:oracle沒有能夠把作業系統的關於時區的環境變數與自己的命名方法對應,造成其不能正確識別,以至於agent不能啟動。
在aix中調整時區很簡單,smitty chtz,選擇“beist - 8”即可,然後重啟。系統啟動完成後,啟動資料庫沒問題,啟動oms也沒有問題,啟動agent,報錯了。因為時區不能被oracle程式識別,不能啟動。
看了下手冊,需要重置時區
$./emctl resetTZ agent
系統輸出:
Oracle Enterprise Manager 10g Release 4 Grid Control 10.2.0.4.0.
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Updating /oracleb/OracleHomes/agent10g/sysman/config/emd.properties...
Successfully updated /oracleb/OracleHomes/agent10g/sysman/config/emd.properties.
Login as the em repository user and run the script.:
exec mgmt_target.set_agent_tzrgn('gridi4:1830','+08:00')
and commit the changes
This can be done for example by logging into sqlplus and doing
SQL> exec mgmt_target.set_agent_tzrgn('gridi4:1830','+08:00')
SQL> commit
$./emctl start agent
錯誤依舊,仔細看了一下上面的輸出,發現'+08:00'這個有很大的問題,通過檢視agent10g/sysman/admin/supportedtzs.lst,裡面對應 GMT +8的項裡面對應的是Asia/Shanghai,Asia/Chongqing,就是沒有北京,那就只好用上海吧。
首先修改agent10g/sysman/config/emd.properties最後一行,把 +08:00改為 Asia/Shanghai,然後登入到db10g的資料庫中,執行:
exec mgmt_target.set_agent_tzrgn('gridi4:1830','Asia/Shanghai');
執行
$./emctl start agent
agent啟動成功了。
出現這個問題的主要原因是:oracle沒有能夠把作業系統的關於時區的環境變數與自己的命名方法對應,造成其不能正確識別,以至於agent不能啟動。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/115963/viewspace-594808/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux timezone 設定LINUX 時區Linux
- 我的oracle enterprise grid control曲折之路Oracle
- Important Notes on Oracle Enterprise Manager Grid ControlImportOracle
- 設定ORACLE GRID CONTROL 自動啟動Oracle
- Grid Control Installation On Red Hat Enterprise LinuxLinux
- AIX下NFS共享設定AINFS
- aix時區AI
- 在AIX中設定中文環境AI
- How To Configure Notification Rules in Enterprise Manager Grid Control_429422.1
- Solaris環境安裝Oracle Enterprise Manager 10g Grid ControlOracle
- Using Silent Mode to Install Oracle Enterprise Manager Grid Control 10.2.0.1.1Oracle
- 安裝Oracle Enterprise Manager 10g Grid Control Release 10.1.0.3Oracle
- AIX 修改時區AI
- 在AIX中設定中文環境(轉)AI
- 設定openjdkdocker容器的時區JDKDocker
- MySQL中的時區設定MySql
- oracle grid control 10g 在redhat linux 4 下的安裝與配置OracleRedhatLinux
- Grid Control的安裝
- AIX 調整時區AI
- Django的時區設定問題Django
- Docker映象時區設定Docker
- jvmlinux時區設定JVMLinux
- SAP設定時區資訊
- linux 時區設定Linux
- ECS設定時區與時間
- 安裝Grid Control
- GoldenGate , Grid ControlGo
- 準備安裝Oracle Enterprise Manager 10g Grid Control Release 2 (10.2.0.2.0)Oracle
- 在alv grid中的列中設定icon圖示
- 【Linux-時間設定】-設定時區並調整時間Linux
- Redhat設定系統時區Redhat
- Oracle 10g R2 Grid Control Installation On Red Hat Enterprise Linux and CentOSOracle 10gLinuxCentOS
- Install Enterprise Manager Grid Control 10.2.0.5.0 Using a New Database-763314.1Database
- 安裝10.2.0.4 Grid Control之前需要安裝 10.2.0.3.0 Grid Control
- Linux下的定時任務crontab設定Linux
- oracle grid control etc/hostsOracle
- 在solaris下crontab 定時任務
- oracle在AIX下的自啟動OracleAI