暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

MGMTDB 修改用户密码

原创 lscomeon 2020-12-08
2163

In MGMTDB, the user CHM’s password is expired.
select username, account_status, profile from dba_users where username=‘CHM’;
USERNAME              ACCOUNT_STATUS      PROFILE
--------------------  ------------------- ------------
CHM                   EXPIRED(GRACE)      DEFAULT
 
select * from dba_profiles where profile=‘DEFAULT’ and resource_name=‘PASSWORD_LIFE_TIME’;
PROFILE        RESOURCE_NAME           RESOURCE      LIMIT     COM


DEFAULT        PASSWORD_LIFE_TIME      PASSWORD      180       NO
The user CHM’s password is expired after 180 day from DB creation. This causes the user account is locked and connection can not be made through.
Please use the following procedure to reset the CHM user password to its original value.
as grid user,
$ export ORACLE_HOME=<GRID_HOME>
$ export ORACLE_SID=-MGMTDB
$ sqlplus / as sysdba
SQL> select name, password from user$ where name=‘CHM’;
SQL> alter user CHM identified by values ‘’;

SQL> select username, account_status from dba_users where username=‘CHM’;

The following command can also be used to reset the password for all the MGMTDB database users

/bin/mgmtca setpasswd -allusers

Starting 19c, Please use the below command to reset the password for all the MGMTDB database users

Execute as grid OS user:
/bin/mgmtca configRepos setpasswd -allusers
It should show account_status as OPEN now and ORA-20 error should be stopped.

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论