水煮oracle46---EM配置管理和patch补丁包使用


oracle如何打patch
步骤:
1、mkdir patch  --建立补丁放置目录
2、unzip p8350262_10204_Generic.zip
3、cd $ORACLE_HOME/OPatch
4、./opatch lsinventory  --查看当前已经patch
5、cd patch  --切换到补丁包放置目录
6、./opatch apply  --安装补丁


oracle 10G的EM无法启动
步骤:
方法一:
1、进行dbconsole保护
emctl stop dbconsole
emctl config emkey -repos -sysman_pwd
emctl secure dbconsole -sysman_pwd
emctl config emkey -remove_from_repos -sysman_pwd
解释:
emkey是保护database control的必需,其含义如下:
The emkey is an encryption key that is used to encrypt and decrypt sensitive data in Enterprise Manager such as host passwords, database passwords and others. By default, the emkey is stored in the $ORACLE_HOME/sysman/config/emkey.ora file. The location of this file can be changed.
During startup, the Oracle Management Service checks the status of the emkey. If the emkey has been properly configured, it uses it encrypting and decrypting data.
The emkey is a random number that is generated during the installation of the Oracle Management Repository and is stored in a table. When the Oracle Management Service is installed, the emkey is copied from the Management Repository to the emkey.ora file and stored in the ORACLE_HOME/sysman/config/ directory of each Oracle Management Service.
After the emkey has been copied, you must remove it from the Management Repository as it is not considered secure.
If it is not removed, data such as database passwords, server passwords and other sensitive information can be easily decrypted.
To remove the emkey from the Management Repository, enter the following command:
$prompt> emctl config emkey - remove_from_repos
2、通过db安全保护
emca secure dbconsole
3、安装补丁Patch 8350262
4、emctl secure dbconsole -reset
5、如果还是无法启动,重建EM
emca -deconfig dbcontrol db -repos drop
emca -config dbcontrol db -repos create  
6、提示可能ssl证书有问题,可以取消https.即执行
emctl unsecure dbconsole
则dbconsole以http模式开启。
如果要再改用https模式可以再执行命令
emctl upload
emctl secure dbconsole
 ps -ef | grep emagent
通过secure/unsecure命令分别以保护/非保护方式启动
1)以非保护方式启动
emctl stop dbconsole
emctl unsecure dbconsole
emctl start dbconsole
1)以保护方式启动
emctl stop dbconsole
emctl secure dbconsole -sysman_pwd system
emctl start dbconsole
7、重新配置db control的端口,默认端口在1158
通过查看$ORACLE_HOME/install/portlist.ini 文件可以知道当前dbcontrol正在使用的端口
emca -reconfig ports -dbcontrol_http_port 1160
emca -reconfig ports -agent_port 3940

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23890223/viewspace-1365332/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23890223/viewspace-1365332/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值