数据库

 首页 > 数据库 > Oracle > 提示"数据库状态当前不可用可能是因为数据库的状态为装载或不装载"的解决办法

提示"数据库状态当前不可用可能是因为数据库的状态为装载或不装载"的解决办法

分享到:
【字体:
导读:
         摘要:提示"数据库状态当前不可用可能是因为数据库的状态为装载或不装载"解决办法安装完时EM能够正常访问。自从客户改了sys密码后,通过WEB登上EM,英文版本报"Thedatabasestatusiscurrentlyunavailable.I... Syn...

提示"数据库状态当前不可用可能是因为数据库的状态为装载或不装载"的解决办法

提示"数据库状态当前不可用可能是因为数据库的状态为装载或不装载"解决办法
 
安装完时EM能够正常访问。自从客户改了sys密码后,通过WEB登上EM,英文版本报"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还是重新配置都不起作用。  www.2cto.com  
  
解决方法如下:
 
1、停止dbconsole
    [oracle@star~]$ emctl stop dbconsole
    查看状态,确认dbconsole已经停止
    [oracle@star~]$ emctl status dbconsole
 
2、修改sysman用户的密码,我把密码改成oracle123
    [oracle@star~]$ sqlplus / as sysdba
    SQL> alter user sysman identified by oracle123;
 
    解锁用户:
    SQL> alter user sysman account unlock;
 
    确认密码已修改:
    SQL> conn sysman/oracle123@csc
    Connected.  www.2cto.com  
 
3、转到$ORACLE_HOME/host_sid/sysman/config目录下
    a. 把emoms.properties另存为emoms.properties.old
    b. 修改emoms.properties文件
    找到oracle.sysman.eml.mntr.emdRepPwd=把等于后的加密字串替换成刚才更改的密码oracle123;
    找到oracle.sysman.eml.mntr.emdRepPwdEncrypted=TRUE 把TRUE换成FALSE。
 
4、重启dbconsole,访问EM恢复正常
    [oracle@star~]$ emctl start dbconsole
 
在此登录http://loclahost:5500/em,提示让输入用户名密码。
至此,恢复正常。
 
 
 
作者 mhlstar
提示"数据库状态当前不可用可能是因为数据库的状态为装载或不装载"的解决办法
分享到:
ORA-01722:invalid number的问题
ORA-01722:invalid number的问题 com.ibatis.common.jdbc.exception.NestedSQLException:    --- The error occurred in  --- The error occurred while applying a parameter map.   --- Check the outwhbill.insertDtlHis-InlineParameterMap.   --- Check the statement (update failed).  www.2cto.com     -...
oracle中外关联的解惑
oracle中外关联的解惑 一、left join的on条件:   1、简单的left join(right join同理)。   01 SQL> select * from p1; 02  www.2cto.com     03 A                    B                    C 04 -------------------- -------------------- -------------------- 05 1              ...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……