對Database control 做金鑰管理

趙宇發表於2008-04-09

C:\Documents and Settings\oracle>set ORACLE_SID=DEVDB

D:\oracle\product\10.2.0\db_1\BIN>emctl.bat stop dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
http://obraiz:1158/em/console/aboutApplication
OracleDBConsoledevdb 服務正在停止.....
OracleDBConsoledevdb 服務已成功停止。

 

D:\oracle\product\10.2.0\db_1\BIN>emctl.bat config emkey -repos -sysman_pwd oracle
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.

Invalid Password
caught Exception java.sql.SQLException: Io 異常: The Network Adapter could not establish the connection

監聽啟動以後:

D:\oracle\product\10.2.0\db_1\BIN>emctl.bat config emkey -repos -sysman_pwd oracle
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.

The Em Key has been configured successfully.

D:\oracle\product\10.2.0\db_1\BIN>emctl.bat secure dbconsole -sysman_pwd oracle
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
http://obraiz:1158/em/console/aboutApplication
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.
Generating Enterprise Manager Root Key (this takes a minute)...   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/obraiz_DEVDB/sysman/config/emd.properties
   Done.
Configuring Key store..   Done.
Securing dbconsole...   Sucessful.

D:\oracle\product\10.2.0\db_1\BIN>emctl.bat start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.
https://obraiz:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ...OracleDBConsoledevdb 服務正在啟動 ...................
OracleDBConsoledevdb 服務已經啟動成功。

D:\oracle\product\10.2.0\db_1\BIN>emctl.bat config emkey -remove_from_repos -sysman_pwd oracle
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.

The Em Key has been removed from the Management Repository.
Make a backup copy of OH/sysman/config/emkey.ora file and store it on another machine.
WARNING: Encrypted data in Enterprise Manager will become unusable if the emkey.ora file is lost or corrupted.

 

 


 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/175005/viewspace-231294/,如需轉載,請註明出處,否則將追究法律責任。

相關文章