对Database control 做密钥管理

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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/175005/viewspace-231294/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值