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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle重新配置emOracle
- oracle11g 重新配置emOracle
- C++未定義行為C++
- 呼叫的方法addFrameScript可能未定義
- C語言未定義行為一覽C語言
- 路由 [verification.verify] 未定義的解決方法!路由
- 安裝 Laravel6.x 報常量未定義Laravel
- __autoload()嘗試載入未定義的類
- 初始化Article物件為何提示“ ‘Article’未定義?”物件
- Ajax中“Sys未定義”錯誤的解決方法
- asm重新配置ASM
- HEAD請求方法引起方法未定義的錯誤
- 於是,我們給前端分享會定義了一個未定義的名字前端
- 情景劇:C/C++中的未定義行為(undefined behavior)C++Undefined
- js在函式中未定義的變數的處理JS函式變數
- 重新配置Domino ServerServer
- 使用ajax.dll時js指令碼錯誤-XXX未定義JS指令碼
- 重新配置OpenFire資料庫資料庫
- IE 不支援 Promise 解決辦法 (或者 promise 未定義)的解決方法Promise
- (EM演算法)The EM Algorithm演算法Go
- vue中未定義的的物件屬性在頁面中繫結不到值Vue物件
- UglifyJsPlugin 壓縮js程式碼後出現ReferenceError 變數未定義報錯JSPluginError變數
- EM
- 解除安裝與重新配置GPCC
- Oracle DBConsole重新配置Oracle
- extjs4 searchField的使用方法 及 remodeFiter 未定義問題的解決JSREM
- ASP.NET使用Coolite.Ext.Web.dll,顯示ext 未定義 的解決方法ASP.NETWeb
- aix刪除網路卡並重新配置AI
- 【EM】重新建立EM Database ControlDatabase
- 重新配置 11gR2 Grid InfrastructureASTStruct
- 解析C++連結錯誤:未定義引用和未解析符號的完整解決方案C++符號
- ORACLE EM recreateOracle
- windows drop emWindows
- 重建oracle EMOracle
- em 和 remREM
- rem與em的區別||結合使用rem與emREM
- oracle EM 優化Oracle優化
- em,rem和vhREM