关键字:EM无法登录,提示ORA-28001: the password has expired (DBD ERROR: OCISessionBegin)

以上提示 参见本文。
Oracle 11g 默认安装 用户密码有180天的过期限制。
测试用库实在有些不便。

--sys DBA 身份连入
sqlplus sys/password@SID as sysdba
--查看数据库目前的口令期限
select * from dba_profiles where profile = 'DEFAULT' and resource_name = 'PASSWORD_LIFE_TIME';
--查看用户的状态,发现DBSNMP和SYSMAN两个帐号都已经过期
select username, account_status from dba_users;

--修改用户的口令期限为无限制
alter profile default limit password_life_time unlimited;

--修改DBSNMP和SYSMAN两个帐号的口令
alter user dbsnmp identified by dbsnmp;
alter user sysman identified by sysman;

执行以上操作后,重启计算机、服务器即可。

如果仍然提示无法连接实例,并且dbsnmp sysman 用户被锁定 LOCKED(TIMED)。
极有可能是EM 的配置文件中dbsnmp sysman的密码 与实际的不同。
此时重置EM 配置文件。

--sqlplus 中运行 
emca -config dbcontrol db 
--根据提示 输入各用户名的 密码。
UsernamePasswordDescriptionSee Also
CTXSYSCTXSYSThe Oracle Text accountOracle Text Reference
DBSNMPDBSNMPThe account used by the Management Agent component of Oracle Enterprise Manager to monitor and manage the databaseOracle Enterprise Manager Grid Control Installation and Basic Configuration
LBACSYSLBACSYSThe Oracle Label Security administrator accountOracle Label Security Administrator’s Guide
MDDATAMDDATAThe schema used by Oracle Spatial for storing Geocoder and router dataOracle Spatial User’s Guide and Reference
MDSYSMDSYSThe Oracle Spatial and Oracle interMedia Locator administrator accountOracle Spatial User’s Guide and Reference
DMSYSDMSYSThe Oracle Data Mining account.Oracle Data Mining Administrator’s Guide
OLAPSYSMANAGERThe account used to create OLAP metadata structures. It owns the OLAP Catalog (CWMLite).Oracle OLAP Application Developer’s Guide
ORDPLUGINSORDPLUGINSThe Oracle interMedia user. Plug-ins supplied by Oracle and third party format plug-ins are installed in this schema.Oracle interMedia User’s Guide
ORDSYSORDSYSThe Oracle interMedia administrator accountOracle interMedia User’s Guide
OUTLNOUTLNThe account that supports plan stability. Plan stability enables you to maintain the same execution plans for the same SQL statements. OUTLN acts as a role to centrally manage metadata associated with stored outlines.Oracle Database Performance Tuning Guide
SI_INFORMTN_SCHEMASI_INFORMTN_SCHEMAThe account that stores the information views for the SQL/MM Still Image StandardOracle interMedia User’s Guide
SYSCHANGE_ON_INSTALLThe account used to perform database administration tasksOracle Database Administrator’s Guide
SYSMANCHANGE_ON_INSTALLThe 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
SYSTEMMANAGERAnother account used to perform database administration tasks.                   Oracle Database Administrator’s Guide
附: Oracle 默认安装带来的用户名/密码

分类:

数据库,

最后更新: 7 7 月, 2020