重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3817|回复: 0
打印 上一主题 下一主题

.如何修改 EM12c 中 SYSMAN 用户的密码?

[复制链接]
跳转到指定楼层
楼主
发表于 2014-6-22 01:37:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

我安装好了 Oracle Enterprise Manager 12c,准备使用 Cloud Control 功能来集成已有的 Oracle VM 环境来创建 IaaS 云计算平台,今天准备继续之前的工作,发现竟然不能使用 SYSMAN 用户登录 EM12c,我想应该是我忘记了在 Advanced Install 安装过程中设置的 SYSMAN 密码。出师不利啊,难道要我重新安装一遍 EM12c,静下心想想,Oracle 的产品不应该这么不人性化,于是开始查询官方文档,功夫不负有心人,终于让我找到了解决方法,官方文档其实有介绍如何修改 SYSMAN 密码,不过我在 My Oracle Support 找到了更好的解决方案。详细的解决方法如下:

If the current SYSMAN password is known:

1. Stop all the OMS:

$ cd <OMS_HOME>/bin
$ ./emctl stop oms

Execute the same command on all the OMS machines including the primary OMS machine. Do not include ‘-all‘ as the Admin Server needs to be up during this operation.

2. Modify the SYSMAN password:

$ cd <OMS_HOME>/bin
$ ./emctl config oms -change_repos_pwd

Note:

  • The above command will prompt you for the current password of the SYSMAN user and the new password.
  • The password will be modified at the Repository Database as well as the WLS Credential store and the monitoring credentials for the ‘OMS and Repository’ target.
  • Along with the SYSMAN password, this command will modify the password for the ALL the EM users (SYSMAN_MDS, BIP, SYSMAN_OPSS, SYSMAN_APM, SYSMAN_RO, MGMT_VIEW) created in the Repository Database.

Example output:

$ ./emctl config oms -change_repos_pwd
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Enter Repository User’s Current Password :
Enter Repository User’s New Password :

Changing passwords in backend …
Passwords changed in backend successfully.
Updating repository password in Credential Store…
Successfully updated Repository password in Credential Store.
Restart all the OMSs using ‘emctl stop oms -all’ and ‘emctl start oms’.
Successfully changed repository password.

3. Stop the Admin server on the primary OMS machine and re-start all the OMS:

$ cd <OMS_HOME>/bin
$ ./emctl stop oms -all
$ ./emctl start oms

If the current SYSMAN password is unknown:

1. Stop all the OMS:

$ cd <OMS_HOME>/bin
$ ./emctl stop oms

Execute the same command on the primary OMS machine as well. Do not include ‘-all’ as the Admin Server needs to be up during this operation.
If the version of OMS is 12.1.0.1 and password is manually changed at the Database level, apply Patch 13697830 on OMS Home and then run the command below to get the password updated in all configurations.
2. Modify the SYSMAN password:

$ cd <OMS_HOME>/bin
$ ./emctl config oms -change_repos_pwd -use_sys_pwd -sys_pwd <sys user password> -new_pwd <new sysman password>

Note:

  • The ‘-use_sys_pwd’ is used to connect to the database as a SYS user and modify the sysman password in the Repository database.
  • The current sysman password is not prompted for and only the new password needs to be entered. This will allow the reset of the old password to the new password entered.
  • The password will be modified at the Repository Database as well as the WLS Credential store and the monitoring credentials for the ‘OMS and Repository’ target.
  • Along with the SYSMAN password, this command will modify the password for the ALL the EM users (SYSMAN_MDS, BIP, SYSMAN_OPSS, SYSMAN_APM, SYSMAN_RO, MGMT_VIEW) created in the Repository Database.

Example output:

$ ./emctl config oms -change_repos_pwd -use_sys_pwd -sys_pwd oracle123 -new_pwd oracle12
Oracle Enterprise Manager Cloud Control 12c Release 12.1.0.1.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.

Changing passwords in backend …
Passwords changed in backend successfully.
Updating repository password in Credential Store…
Successfully updated Repository password in Credential Store.
Restart all the OMSs using ‘emctl stop oms -all’ and ‘emctl start oms’.
Successfully changed repository password.

3. Stop the Admin server on the primary OMS machine and re-start all the OMS:

$ cd <OMS_HOME>/bin
$ ./emctl stop oms -all
$ ./emctl start oms

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-28 22:38 , Processed in 0.077282 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表