zoukankan      html  css  js  c++  java
  • DBSNMP和SYSMAN用户初始密码及正确的修改方式 岁月无情

    SYSMAN和DBSNMP跟涉及到Oracle的EM,所以跟其他的用户修改密码方式有所区别。

    下面是这两个用户的默认密码和作用说明

    DBSNMP

    DBSNMP

    The account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the database .

    Oracle Enterprise Manager Grid Control Installation and Basic Configuration.

    SYSMAN
    CHANGE_ON_INSTALL

    The account used to perform. Oracle Enterprise Manager database administration tasks. Note that SYS and SYSTEM can also perform. these tasks.

    Oracle Enterprise Manager Grid Control Installation and Basic Configuration

    ---------------------------------------------------------------------------------

    错误修改可能造成的问题

    如果像修改其它用户的方式修改其密码的话,登陆em,可能出现如下状态:

    (1)提示Enterprise Manager 无法连接到数据库实例

    (2)数据库实例,是红色向下的箭头

    (3)到数据库的实例链接,是红色向下的箭头

    (4)监听,绿色向上的箭头

    (5)检查SYSMAN用户,处于锁定状态,使用解锁命令,又会自动锁定。

    但是数据库其它一起正常。

    正确的修改方式

    1SYSMAN密码修改

    1、 停止dbconsole

    [oracle@xxx ~]$ emctl stop dbconsole

    查看状态,确认dbconsole已经停止

    [oracle@xxx ~]$ emctl status dbconsole

    2、修改sysman用户的密码

    [oracle@xxx ~]$ sqlplus / as sysdba

    SQL> alter user sysman identified by yyyy;

    解锁用户

    SQL> alter user sysman account unlock;

    确认密码已修改

    SQL> conn sysman/ yyyy @qqq

    Connected.

    3、转到$ORACLE_HOME/(host)_(sid)/sysman/config目录下

    a. 把emoms.properties另存为emoms.properties.old

    b. 修改emoms.properties文件

    找到oracle.sysman.eml.mntr.emdRepPwd=把等于后的加密字串替换成刚才更改的密码yyyy;

    找到oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE 把TRUE换成FALSE。

    4、重启dbconsole,访问EM恢复正常

    [oracle@xxx ~]$emctl start dbconsole

    2、修改DBSNMP密码

    2DBSNMP密码修改

    修改的流程类似修改SYSMAN,只不过第3步如下:

    转到$ORACLE_HOME/(host)_(sid)/sysman/emd目录下

    [oracle@xxx ~]$ cp targets.xml targets.xml.bak

    [oracle@xxx ~]$vi targets.xml

    修改些列代码中:

    <Property NAME="UserName" VALUE="6f5848a4f53a2d0a" ENCRYPTED="TRUE"/>

    <Property NAME="password" VALUE="829e1a25401de489" ENCRYPTED="TRUE"/>

    用新的dbsnmp的密码代替上列password的Value值,ENCRYPTED的值修改成FALSE。

  • 相关阅读:
    switch statement
    Block statement
    Variable hoisting Global variables Constants
    How the Web works
    Discover browser developer tools
    Publishing via GitHub
    第十二节,OpenCV学习(一)图像的读取、显示、保存
    剑指Offer编程题3——从尾到头打印链表
    剑指Offer编程题2——替换空格
    剑指Offer编程题1——二维数组中的查找
  • 原文地址:https://www.cnblogs.com/huyinyang/p/3031561.html
Copyright © 2011-2022 走看看