Oracle cloud control 12c 如何修改sysman密码

前阵子在虚拟机部署了Oracle Cloud Control 12c,事别几日,竟然忘记了登陆密码。主要是因为现在的Oracle有关的Software比之前提供更强的安全机制。什么简单的"oracle"之类的pwd不再支持了。这不过一阵子就搞忘了。这年头的,账户多,密码多,就是米不多,哈哈。。。下面说说其解决办法吧。

一、emctl命令
emctl命令想必大家都见过,DB console时代经常会用到,现在功能是越来越强大了,下面仅仅列出有关修改pwd的部分
emctl config oms -change_repos_pwd [-old_pwd <old_pwd>] [-new_pwd <new_pwd>] [-use_sys_pwd [-sys_pwd <sys_pwd>]] 
Note: Steps in changing Enterprise Manager Root (SYSMAN) password are:
      1) Stop all the OMSs using ‘emctl stop oms‘
      2) Run ‘emctl config oms -change_repos_pwd‘ on one of the OMS
      3a) Restart AdminServer and all the OMSs using ‘emctl stop oms -all‘ and ‘emctl start oms‘
      3b) If BI Publisher is installed, restart the BI Publisher managed server(s) named ‘BIP####‘

二、修改步骤
下面简要列出一下其修改步骤:
1) Stop OMS (leaving the Admin Server up)
2) Modify SYSMAN password
3) Stop all OMS components
4) Start OMS
5) Login to Oracle EMCC-12c with the new password

三、修改sysman登陆密码
#下面是其具体演示
[[email protected] ~]$ $OMS_HOME/bin/emctl stop oms 
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Successfully Stopped
Oracle Management Server is Down

[[email protected] ~]$ $OMS_HOME/bin/emctl config oms -change_repos_pwd -use_sys_pwd -sys_pwd oracle -new_pwd Oracle123
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 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.

[[email protected] ~]$ $OMS_HOME/bin/emctl stop oms -all
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Already Stopped
AdminServer Successfully Stopped
Oracle Management Server is Down

[[email protected] ~]$ $OMS_HOME/bin/emctl start oms
Oracle Enterprise Manager Cloud Control 12c Release 3  
Copyright (c) 1996, 2013 Oracle Corporation.  All rights reserved.
Starting Oracle Management Server...
>Starting WebTier...
WebTier Successfully Started
Oracle Management Server Successfully Started
Oracle Management Server is Up

#Author : Leshami
#Blog   : http://blog.csdn.net/leshami
#再次登陆OK

四、有关CC 12c密码修改Doc
12c Cloud Control: How to Modify the Password for SYSMAN and other Enterprise Manager Users at the OMS Level and Repository Database? (Doc ID 1365930.1) To BottomTo Bottom
Modified:14-Jan-2014Type:HOWTO
Language:

Rate this document Email link to this document Open document in new window Printable Page

In this Document
Goal
Solution
  If the current SYSMAN password is known
  If the current SYSMAN password is unknown
 
References
APPLIES TO:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.
GOAL

This article provides steps for modifying the password of SYSMAN and other Enterprise Manager users at the OMS/WLS level and the Repository database in a Cloud Control setup. 
Simply changing the password in the repository database is not sufficient as the password is also stored in the WLS credential store. The OMS uses sysman account to login into the repository database and if there is a mis-match in the password at the database level and the OMS configuration, the OMS cannot start and function properly.

For steps to follow in the earlier Enterprise Manager versions, refer to:
Note 270516.1: How to Change the Password of SYSMAN User in 10g and 11g Grid Control?

Note:

From 12c onwards, directly modifying the password for sysman or any other repository user at the Repository Database is not recommended.
Hence, ensure that the passwords are changed only using one of the below listed methods.
SOLUTION

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 EM users (SYSMAN_MDS, BIP, SYSMAN_OPSS, SYSMAN_APM, SYSMAN_RO) 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 if the password has been manually changed at the Database level, apply the Patch 13697830 to the 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 EM users (SYSMAN_MDS, BIP, SYSMAN_OPSS, SYSMAN_APM, SYSMAN_RO) 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

Reference:

Oracle Enterprise Manager Cloud Control Administrator‘s Guide 12c Release 1 (12.1.0.2)

Chapter 13.8.1 Changing the SYSMAN and MGMT_VIEW Passwords

Known Issues

1. Problem: Modifying the sysman password fails with "java.io.IOException":

cd <OMS_HOME>/bin
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 :
java.io.IOException
Error occurred. Check the log
Cause: The above error occurs if the Admin server is not running when the sysman password is being modified.
Solution: As advised in the sections above, the Admin Server needs to be up and running when the sysman password is being modified. So, the OMS should not be stopped using ‘emctl stop oms -all‘.

cd <OMS_HOME>/bin
emctl start oms
emctl stop oms
emctl config oms -change_repos_pwd
REFERENCES

NOTE:1511014.1 - 12c: After changing the SYSMAN password directly into the DB, OMS status shows "Connection to the repository failed. Verify that the repository connection information provided is correct"

Oracle cloud control 12c 如何修改sysman密码

时间: 2024-10-11 11:52:46

Oracle cloud control 12c 如何修改sysman密码的相关文章

Oracle cloud control 12c 的启动与关闭

Oracle cloud control 12c整个安装比较复杂,光是安装路径的选择,登录密码,端口号等众多个配置不免让人眼花缭乱,目不暇接.本文描述的是安装完毕后如何获取安装时设定的各类端口号,URL以及如何启动.关闭cloud control等等,供大家参考.    有关cloud control的安装配置可以参考:Oracle Enterprise Manager Cloud Control 12c Release 3 Installation 1.当前的环境配置 [[email prot

Linux 6.3下安装Oracle Enterprise Cloud Control 12c

Oracle enterprise cloud control 12c的安装是一个比较复杂的过程,因为他需要依赖于Oracel database以及Oracle Weblogic.现在Oracle已经整合了Weblogic到cloud control安装包中还是省事很多,本文是基于Oracle Linux 6.3上安装Oracle enterprise cloud control 12c,以下是具体描述. 1.安装前的准备a) os安装参考   Virtual Box下安装Oracle Linu

Oracle Enterprise Manager Cloud Control 12c的安装

这里,我介绍的是Cloud Control 12c的安装.之前的版本叫Grid Control,这也是11g里面的叫法.在我写这篇博客时,Cloud Control 13c已经出来了,这个版本后续我再进行介绍. 在安装之前,我们先来看一下整体的架构. 首先,它需要一个数据库(就是上图的Repository),用来存放Cloud Control的配置信息.需要有一台服务器,用来安装Cloud Control.然后我们通过使用浏览器访问Cloud Control的控制台(也叫EM),然后对要监控的数

Oracle Enterprise Manager Cloud Control 12c R4 安装配置

准备软件 em12.1.0.4_linux64_V45344-01.zip em12.1.0.4_linux64_V45345-01.zip em12.1.0.4_linux64_V45346-01.zip 安装操作系统(OEL6.5) 给 OS 空间 50G 以上装完OS和CC后需要占用 30G 空间建议6G 内存最少4G [[email protected] newcc bin]$ cat /etc/hosts 127.0.0.1  localhostlocalhost.localdomai

Use emcli to delete obsolete agent targets in Oracle EM Cloud Control 12c

[[email protected] ~]$ cd /oem/oms/oms/bin 登录到oms中 [[email protected] bin]$ ./emcli login -username=sysman Enter password : Login successful 同步信息 [[email protected] bin]$ ./emcli sync Synchronized successfully 获取当前该主机mwtest02的agent所关联的targets [[email

修改OEM SYSMAN密码

/*修改SYSMAN密码*/基本信息:-------------------------------------系统平台:RHEL 6.3_86_64 数据库版本:11.2.0.3.0-64bit -------------------------------------几天前,我安装好了 Oracle Enterprise Manager 12c,准备使用 Cloud Control 功能来集成已有的 Oracle VM 环境来创建 IaaS 云计算平台,今天准备继续之前的工作,发现竟然不能使

【翻译自mos文章】改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法

改变数据库用户sysman(该用户是DB Control Repository 的schema)密码的方法 参考原文: How To Change the Password of the Database User Sysman (DB Control Repository Schema) (Doc ID 259379.1) 适用于: Enterprise Manager for Oracle Database - Version 10.1.0.2 to 11.2.0.3 [Release 10

Oracle修改用户密码

如何在Oracle中修改用户密码 在Oracle数据库中,使用alter user来修改用户密码. 语法 ALTER USER user_name IDENTIFIED BY new_password; 参数说明: user_name: 要修改密码的Oracle数据库用户. new_password: 要修改成的新密码. 示例: 如果你想重置用户名为DDW用户的密码为autumn,你可以使用以下语句来修改: ALTER USER DDW IDENTIFIED BY autumn;

Oracle EBS系统多层次修改密码

EBS系统密码分成四类,更改密码都需要遵照章程.规范,特别是做好备份. 1.操作系统用户,如root,ora,appl,grid等用户. [修改方法] 利用passwd这个OS命令去更改用户密码. 如: passwd root passwd ora passwd apps passwd grid [生产密码] pass1234 [注意事项] 无.如忘记root密码,可以用单用户模式登陆OS,以修改root密码. 2.数据库用户,如SYS,SYSTEM 数据库用户,可以用sqlplus或其他客户端