oracle win10配置命令,记一次Windows 平台下Oracle 10.2.0.5 EM重新配置
1. 刪除EM資料庫、dbconsole配置
D:\>emca -deconfig dbcontrol db -repos drop
EMCA 開始于 2013-2-20 9:53:17
EM Configuration Assistant, 10.2.0.5.0 正式版
版權所有 (c) 2003, 2009, Oracle。保留所有權利。
輸入以下信息:
數據庫 SID: ora10g
監聽程序端口號: 1521
SYS 用戶的口令:
SYSMAN 用戶的口令:
SYSMAN 用戶的口令:
----------------------------------------------------------------------
WARNING : While repository is dropped the database will be put in quiesce mode.
----------------------------------------------------------------------
是否繼續? [是(Y)/否(N)]: y
2013-2-20 9:53:35 oracle.sysman.emcp.EMConfig perform
信息: 正在將此操作記錄到 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\ora10g\e
mca_2013-02-20_09-53-17-上午.log。
2013-2-20 9:53:38 oracle.sysman.emcp.util.GeneralUtil initSQLEngine
警告: ORA-01017: invalid username/password; logon denied
2013-2-20 9:53:38 oracle.sysman.emcp.ParamsManager checkListenerStatusForDBContr
ol
警告: 初始化 SQL 連接時出錯。無法執行 SQL 操作
2013-2-20 9:53:41 oracle.sysman.emcp.util.DBControlUtil stopOMS
信息: 正在停止 Database Control (此操作可能需要一段時間)...
2013-2-20 9:53:43 oracle.sysman.emcp.EMReposConfig invoke
信息: 正在刪除 EM 資料檔案庫 (此操作可能需要一段時間)...
2013-2-20 9:53:43 oracle.sysman.emcp.EMReposConfig dropRepository
信息: 正在刪除 EM 資料檔案庫 (此操作可能需要一段時間)...
2013-2-20 9:55:08 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功刪除資料檔案庫
已成功完成 Enterprise Manager 的配置
EMCA 結束于 2013-2-20 9:55:10
2. 新建EM資料庫、配置dbconsole
D:\>emca -config dbcontrol db -repos create
EMCA 開始于 2013-2-20 9:57:46
EM Configuration Assistant, 10.2.0.5.0 正式版
版權所有 (c) 2003, 2009, Oracle。保留所有權利。
輸入以下信息:
數據庫 SID: ora10g
監聽程序端口號: 1521
SYS 用戶的口令:
DBSNMP 用戶的口令:
SYSMAN 用戶的口令:
SYSMAN 用戶的口令: 通知的電子郵件地址 (可選):
通知的發件 (SMTP) 服務器 (可選):
-----------------------------------------------------------------
已指定以下設置
數據庫 ORACLE_HOME ................ D:\oracle\product\10.2.0\db_1
Local hostname ................ superv06-PC
監聽程序端口號 ................ 1521
數據庫 SID ................ ora10g
通知的電子郵件地址 ...............
通知的發件 (SMTP) 服務器 ...............
-----------------------------------------------------------------
是否繼續? [是(Y)/否(N)]: Y
2013-2-20 9:58:09 oracle.sysman.emcp.EMConfig perform
信息: 正在將此操作記錄到 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\ora10g\e
mca_2013-02-20_09-57-46-上午.log。
2013-2-20 9:58:20 oracle.sysman.emcp.EMReposConfig createRepository
信息: 正在創建 EM 資料檔案庫 (此操作可能需要一段時間)...
2013-2-20 10:00:31 oracle.sysman.emcp.EMReposConfig invoke
信息: 已成功創建資料檔案庫
2013-2-20 10:00:52 oracle.sysman.emcp.util.DBControlUtil secureDBConsole
信息: 正在保護 Database Control (此操作可能需要一段時間)...
信息: 正在保護 Database Control (此操作可能需要一段時間)...
2013-2-20 10:01:15 oracle.sysman.emcp.util.DBControlUtil secureDBConsole
信息: 已成功保護 Database Control。
2013-2-20 10:01:17 oracle.sysman.emcp.util.DBControlUtil startOMS
信息: 正在啟動 Database Control (此操作可能需要一段時間)...
2013-2-20 10:11:18 oracle.sysman.emcp.EMConfig perform
嚴重: 啟動 Database Control 時出錯
有關詳細資料, 請參閱 D:\oracle\product\10.2.0\db_1\cfgtoollogs\emca\ora10g\emca_
2013-02-20_09-57-46-上午.log 中的日志文件。
無法完成配置。 有關詳細資料, 請參閱 D:\oracle\product\10.2.0\db_1\cfgtoollogs\em
ca\ora10g\emca_2013-02-20_09-57-46-上午.log 中的日志文件。
常用的命令語法:
emca -repos create創建一個EM資料庫
emca -repos recreate重建一個EM資料庫
emca -repos drop刪除一個EM資料庫
emca -config dbcontrol db配置數據庫的 Database Control
emca -deconfig dbcontrol db刪除數據庫的 Database Control配置
emca -reconfig ports 重新配置db control和agent的端口
emctl start console啟動EM console服務,使用前需要先設置ORACLE_SID環境變量
emctl stop console停止EM console服務,使用前需要先設置ORACLE_SID環境變量
注:通過查看$ORACLE_HOME/install/portlist.ini 文件可以知道當前dbcontrol正在使用的端口,默認dbcontrol http端口1158,agent端口3938。如果要重新配置端口,可以使用如下命令:
emca -reconfig ports -dbcontrol_http_port 1159
emca -reconfig ports -agent_port 3939
使用命令行工具emctl可以啟動/停止console服務,察看服務狀態等。
D:\>emctl start dbconsole
Environment variable ORACLE_SID not defined. Please define it.
D:\>set oracle_sid=ora10g
如何將EM的訪問方式由HTTPS便成為HTTP?
HTTPS協議是由SSL+HTTP協議構建的可進行加密傳輸、身份認證的網絡協議
要比http協議安全
由于IE安全配置等問題,無法通過HTTPS方式打開Oracle EM
#停止dbconsole服務
D:\>emctl stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.? All rights reserved.
OracleDBConsoleora10g 服務正在停止...............
OracleDBConsoleora10g 服務已成功停止。
D:\>emctl unsecure dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.? All rights reserved.
Configuring DBConsole for HTTP...?? Done.
DBCONSOLE already stopped...?? Done.
Agent is already stopped...?? Done.
Unsecuring dbconsole...?? Started.
DBConsole is now unsecured...? Done.
Unsecuring dbconsole...? Sucessful.
D:\>emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.? All rights reserved.
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoleora10g
服務正在啟動 .................
OracleDBConsoleora10g 服務已經啟動成功。
#啟動HTTPS方式secure dbconsole
D:\>emctl secure dbconsoleOracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.? All rights reserved.
Enter Enterprise Manager Root password :
********
Enter a Hostname for this OMS : superV
DBCONSOLE already stopped...?? Done.
Agent is already stopped...?? Done.
Securing dbconsole...?? Started.
Checking Repository...?? Done.
Checking Em Key...?? Done.
Checking Repository for an existing Enterprise Manager Root Key...?? Done.
Fetching Root Certificate from the Repository...?? Done.
Updating HTTPS port in emoms.properties file...?? Done.
Generating Java Keystore...認證已添加至keystore中
認證回復已安裝在 keystore中
Done.
Securing OMS ...?? Done.
Generating Oracle Wallet Password for Agent....?? Done.
Generating wallet for Agent ...??? Done.
Copying the wallet for agent use...??? Done.
Storing agent key in repository...?? Done.
Storing agent key for agent ...?? Done.
Configuring Agent...
Configuring Agent for HTTPS in DBCONSOLE mode...?? Done.
EMD_URL set in D:\oracle\product\10.2.0\db_1/superV_ora10g/sysman/config/emd.pro
perties
Done.
Configuring Key store..?? Done.
Securing dbconsole...?? Sucessful.
總結
以上是生活随笔為你收集整理的oracle win10配置命令,记一次Windows 平台下Oracle 10.2.0.5 EM重新配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: HTTPS原理全面介绍【备查】
- 下一篇: java信息管理系统总结_java实现科