ORACLE_HOSTNAME 未定義,em重新配置
The issue can be reproduced at will with the following steps:
1. Change the hostname.
2. Check DBConsole status
ISSUE VERIFICATION
==================
Verified the issue referencing data collected records as noted below.
CAUSE DETERMINATION
===================
The issue is caused by the following setup: hostname changed.
CAUSE JUSTIFICATION
===================
This issue is described in Metalink Note 330130.1
PROPOSED SOLUTION(S)
====================
Recreate the DBConsole
PROPOSED SOLUTION JUSTIFICATION(S)
==================================
After the hostname changes the DBConsole must be recreated to update the repository tables.
SOLUTION / ACTION PLAN
======================
-- To implement the solution, please execute the following steps::
Prepare the environment:
- Open a new terminal window.
- Go to the Oracle installation folder.
- Set the ORACLE_HOME variable according to that folder.
eg. export ORACLE_HOME=/opt/oracle/db1
Please follow the steps below.
1. Stop the dbconsole on the target node
$ORACLE_HOME/bin/emctl stop dbconsole
2. Delete the repository and directory structure using EMCA:
- go to $ORACLE_HOME/bin
- at the command prompt, enter the following command:
$PROMPT> emca -deconfig dbcontrol db -repos drop
- follow the instructions on the screen
3) If this returns successfully please go to step 5, otherwise follow step 4.
4) If the EMCA returns in any error please remove the repository manually:
4.1) Logon SQLPLUS as user SYS and drop the sysman account and management objects:
A. drop user sysman cascade;
B. drop role MGMT_USER;
C. drop user MGMT_VIEW cascade;
D. drop public synonym MGMT_TARGET_BLACKOUTS;
E. drop public synonym SETEMVIEWUSERCONTEXT;
5) After repository deletion please recreate the repository and directory structure.
- go to $ORACLE_HOME/bin
- at the command prompt, enter the following command:
$PROMPT> emca -config dbcontrol db -repos create
- follow the instructions on the screen
6) In case the dbconsole startup fails please provide the files of folder
$ORACLE_HOME/cfgtoollogs
and
$ORACLE_HOME/_/sysman/log
to metalink.
然後,進行em後,介面出來了,但報了一個錯:
java.lang.Exception: Exception in sending Request :: null
[oracle@oracle config]$ pwd
/op/oracle/product/10.2.4/oracle_orcl/sysman/config
[oracle@oracle config]$ vi emd.properties
把該值修改為:agentTZRegion=Asia/Chongqing
關於時區的列表參考:10.2.0\db_1\sysman\admin\supportedtzs.lst
然後,重啟OracleDBConsole
1. Change the hostname.
2. Check DBConsole status
ISSUE VERIFICATION
==================
Verified the issue referencing data collected records as noted below.
CAUSE DETERMINATION
===================
The issue is caused by the following setup: hostname changed.
CAUSE JUSTIFICATION
===================
This issue is described in Metalink Note 330130.1
PROPOSED SOLUTION(S)
====================
Recreate the DBConsole
PROPOSED SOLUTION JUSTIFICATION(S)
==================================
After the hostname changes the DBConsole must be recreated to update the repository tables.
SOLUTION / ACTION PLAN
======================
-- To implement the solution, please execute the following steps::
Prepare the environment:
- Open a new terminal window.
- Go to the Oracle installation folder.
- Set the ORACLE_HOME variable according to that folder.
eg. export ORACLE_HOME=/opt/oracle/db1
Please follow the steps below.
1. Stop the dbconsole on the target node
$ORACLE_HOME/bin/emctl stop dbconsole
2. Delete the repository and directory structure using EMCA:
- go to $ORACLE_HOME/bin
- at the command prompt, enter the following command:
$PROMPT> emca -deconfig dbcontrol db -repos drop
- follow the instructions on the screen
3) If this returns successfully please go to step 5, otherwise follow step 4.
4) If the EMCA returns in any error please remove the repository manually:
4.1) Logon SQLPLUS as user SYS and drop the sysman account and management objects:
A. drop user sysman cascade;
B. drop role MGMT_USER;
C. drop user MGMT_VIEW cascade;
D. drop public synonym MGMT_TARGET_BLACKOUTS;
E. drop public synonym SETEMVIEWUSERCONTEXT;
5) After repository deletion please recreate the repository and directory structure.
- go to $ORACLE_HOME/bin
- at the command prompt, enter the following command:
$PROMPT> emca -config dbcontrol db -repos create
- follow the instructions on the screen
6) In case the dbconsole startup fails please provide the files of folder
$ORACLE_HOME/cfgtoollogs
and
$ORACLE_HOME/_/sysman/log
to metalink.
然後,進行em後,介面出來了,但報了一個錯:
java.lang.Exception: Exception in sending Request :: null
[oracle@oracle config]$ pwd
/op/oracle/product/10.2.4/oracle_orcl/sysman/config
[oracle@oracle config]$ vi emd.properties
把該值修改為:agentTZRegion=Asia/Chongqing
關於時區的列表參考:10.2.0\db_1\sysman\admin\supportedtzs.lst
然後,重啟OracleDBConsole
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/3090/viewspace-680250/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- C++未定義行為C++
- 路由 [verification.verify] 未定義的解決方法!路由
- 安裝 Laravel6.x 報常量未定義Laravel
- HEAD請求方法引起方法未定義的錯誤
- 初始化Article物件為何提示“ ‘Article’未定義?”物件
- C++中的UB(undefined behaviour)未定義行為C++Undefined
- 於是,我們給前端分享會定義了一個未定義的名字前端
- EM
- 情景劇:C/C++中的未定義行為(undefined behavior)C++Undefined
- IE 不支援 Promise 解決辦法 (或者 promise 未定義)的解決方法Promise
- UglifyJsPlugin 壓縮js程式碼後出現ReferenceError 變數未定義報錯JSPluginError變數
- em 和 remREM
- vue中未定義的的物件屬性在頁面中繫結不到值Vue物件
- rem與em的區別||結合使用rem與emREM
- oracle EM 優化Oracle優化
- 04EM演算法-EM演算法收斂證明演算法
- px em rem 探討REM
- EM演算法1演算法
- Oracle 19C EMOracle
- 03EM演算法-EM演算法流程和直觀案例演算法
- 解析C++連結錯誤:未定義引用和未解析符號的完整解決方案C++符號
- 淺談px,em與remREM
- 白話EM演算法演算法
- em字型大小參考物件物件
- 4.4 為CDB配置EM ExpressExpress
- 09_EM演算法演算法
- em、rem、px、的區別REM
- 隨機森林、EM、HMM、LDA隨機森林HMMLDA
- VMWARE複製虛擬機器之後,需重新配置網路卡(CENTOS 6)虛擬機CentOS
- CSS 小結筆記之emCSS筆記
- CSS px、em和rem單位CSSREM
- ORACLE 11G OCM備考之建立EM與EM登陸異常的處理Oracle
- css中的px、em、rem 詳解CSSREM
- px、em和rem實戰經驗REM
- SAS EM(六)時間序列理論
- rem和em的用法,你弄懂了嗎?REM
- [論文解讀]Baidu Apollo EM Motion PlannerAI
- intel em64的一個解釋Intel
- 三味Capsule:矩陣Capsule與EM路由矩陣路由