• 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。

    重新配置em

  • 相关阅读:
    教你在mac上配置adb环境变量
    Android Mediaplayer 调用release()的时候ANR
    Android ANR
    安卓android WebView Memory Leak WebView内存泄漏
    android 小结
    struts提供文件上传功能
    struts自定义拦截器
    struts拦截器的配置和使用
    Struts框架属性驱动
    struts配置文件
  • 原文地址:https://www.cnblogs.com/rusking/p/4517163.html
Copyright © 2020-2023  润新知