前阵子在虚拟机部署了Oracle Cloud Control 12c。事别几日,居然忘记了登录password。

主要是由于如今的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登录password
#以下是其详细演示
[oracle@oel63 ~]$ $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

[oracle@oel63 ~]$ $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.

[oracle@oel63 ~]$ $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

[oracle@oel63 ~]$ $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 怎样改动sysmanpassword的更多相关文章

  1. Oracle cloud control 12c 的启动与关闭

    Oracle cloud control 12c整个安装比較复杂,光是安装路径的选择,登录password,端口号等众多个配置不免让人眼花缭乱,目不暇接.本文描写叙述的是安装完成后怎样获取安装时设定的 ...

  2. Linux 6.3下安装Oracle Enterprise Cloud Control 12c

    Oracle enterprise cloud control 12c的安装是一个比較复杂的过程,由于他须要依赖于Oracel database以及Oracle Weblogic. 如今Oracle已 ...

  3. Oracle Enterprise Manager Cloud Control 12c的安装

    这里,我介绍的是Cloud Control 12c的安装.之前的版本叫Grid Control,这也是11g里面的叫法.在我写这篇博客时,Cloud Control 13c已经出来了,这个版本后续我再 ...

  4. 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. ...

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

    [oracle@oem ~]$ cd /oem/oms/oms/bin   登录到oms中 [oracle@oem bin]$ ./emcli login -username=sysman Enter ...

  6. 命令行界面下使用emca安装配置Oracle Database Control实战

    作为命令行忠有用户,server端软件的运维都倾向于使用命令或 脚本完毕,非常讨厌资源占用非常大的GUI.Oracle数据库作为重要的server端软件.其安装运维自然也全然支持纯命令行方式.虽然同一 ...

  7. Oracle WebLogic Server 12c 新特性

    美国时间2011年 12月9日,Oracle公司正式发布WebLogic 12c版本,c是cloud的缩写.截止当前(2013年8月)最新版本为Oracle WebLogic Server 12c ( ...

  8. Oracle SOA套件12c

    产品概览 随着基于云的应用越来越多的被企业所採用,以及移动技术与企业应用的集成的需求的增多,企业级应用集成的复杂度也前所未有的提升. Oracle SOA套件12c,业内最完整的统一应用集成解决方式的 ...

  9. FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1)

    FAQ: Oracle Flex ASM 12c / 12.1 (Doc ID 1573137.1) APPLIES TO: Oracle Database - Enterprise Edition ...

随机推荐

  1. Android 常用开源代码整理

    1.AndroidAnnotations一个强大的android开源注解框架, 基本上可以注入任何类型, 比一般的所谓的注入框架要快, 因为他是通过生成一个子类来实现的绑定.具体查看文档. 2.and ...

  2. 远程读取URL 建议用curl代替file_get_contents

    初学php的朋友们,很容易翻一个错误,在写采集程序或者调用api接口总会有线考虑到使用file_get_contents函数来或许内容,程序的访问量不大倒是没什么影响,但是访问量提升了那非常的悲剧了, ...

  3. Python之路Day13

    day13主要内容:JavaScript.DOM.jQuery 武Sir blog:http://www.cnblogs.com/wupeiqi/articles/5369773.html JavaS ...

  4. 关于Mysql索引的笔记

    MySQL索引原理 索引目的 索引的目的在于提高查询效率,可以类比字典,如果要查“mysql”这个单词,我们肯定需要定位到m字母,然后从下往下找到y字母,再找到剩下的sql.如果没有索引,那么你可能需 ...

  5. vc 国际化的资源文件处理

    MS Windows操作系统是一个世界上广泛使用的操作系统,对于不同语种的国家MS Windows有相应语种的版本.在不同语种的Windows平台上应该运行相应语种的应用程序.也就是说程序的用户界面( ...

  6. Vijos P1067Warcraft III 守望者的烦恼

    题目 背景 守望者-warden,长期在暗夜精灵的的首都艾萨琳内担任视察监狱的任务,监狱是成长条行的,守望者warden拥有一个技能名叫“闪烁”,这个技能可以把她传送到后面的监狱内查看,她比较懒,一般 ...

  7. 解题报告 HDU1789 Doing Homework again

    Doing Homework again Time Limit:1000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64 ...

  8. ligh@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.3

    ligh@local-host$ ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.0.3

  9. mysql记录慢查询

    1,配置开启 Linux: 在mysql配置文件my.cnf中增加 log-slow-queries=/var/lib/mysql/slowquery.log (指定日志文件存放位置,可以为空,系统会 ...

  10. android动画效果演示

    第一种:TranslateAnimation  动画效果演示: public void move(View view) { // 传统动画效果 TranslateAnimation animation ...