数据库状态当前不可用。可能是因为数据库的状态为装载或不装载

在修改过sysman口令之后,系统就会自动将sysman锁定(我在做的过程中没有锁住)次都需要手工解锁,非常麻烦:具体问题如下: 英文版本报"The database status is currently unavailable. It is possible that the database is in mount or nomount state. Click 'Startup' to obtain the current status and open the database. If the database cannot be opened, click 'Perform Recovery' to perform an appropriate recovery operation.",中文版报“数据库状态当前不可用。可能是因为数据库的状态为装载或不装载。单击 '启动' 可以获得当前状态并打开数据库。如果无法打开数据库, 单击 '执行恢复' 可执行相应的恢复操作。”,确认Listener与服务都是正常的,数据库的状态也是启动的, 无论是重新启动dbconsole还是重新配置都不起作用。

解决方法如下: 1、停止dbconsole [oracle@abcca2210028 ~]$ emctl stop dbconsole 查看状态,确认dbconsole已经停止 [oracle@abcca2210028 ~]$ emctl status dbconsole

2、修改sysman用户的密码,我把密码改成oracle123 [oracle@abcca2210028 ~]$ sqlplus / as sysdba SQL> alter user sysman identified by oracle123 2 / 解锁用户 SQL> alter user sysman account unlock 2 / 确认密码已修改 SQL> conn sysman/oracle123@csc Connected.

(到此确认sysman经过改密码,解锁后,能够登录)

重启dbconsole

cmd>emctl start dbconsole

用ie登录就已经ok了。也能够维护,并没有出现其他的问题。(可能我没发现)

原文地址:https://www.cnblogs.com/hbhzz/p/2870604.html