首页 > 数据库 > oracle

alter database open命令报错误
时间:2016-11-08 15:25:09  点击: 来源:  作者:

SQL> alter database open; #命令报如下错误ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data fi ...

SQL> alter database open;     #命令报如下错误

ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/data/oracle/oradata/dg/system01.dbf'

主服务器日志如下:

tail -f /data/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log




原因:可能为密码不一致相关,重新同步主服务器orapworcl 密码。

从服务器:

$cd /data/oracle/product/11.2.0/db_1/dbs/
$scp oracle@192.168.0.200:/data/oracle/product/11.2.0/db_1/dbs/orapworcl  ./      
#说明,上面ip为我服务器ip和路径,请根据实际情况修改,或用其他方式拷贝。
$cp orapworcl orapwdg


重新启动数据库:

$sqlplus / as sysdba
SQL> startup nomount

ORACLE instance started.

Total System Global Area  977076224 bytes
Fixed Size      2219312 bytes
Variable Size    570426064 bytes
Database Buffers   398458880 bytes
Redo Buffers      5971968 bytes

SQL> alter database mount standby database;


Database altered.

SQL> alter database open;


Database altered.
”您可通过以下微信二维码,赞赏作者“
 
 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
linux服务器同步互联网时间
linux服务器同步互联
亚马逊云lightsail服务器使用教程 | 亚马逊云lightsail使用指南
亚马逊云lightsail服
hostdare 4折优惠,直接降价60% 美国洛杉矶低至 $10.4/年 768M内存/1核/10gNVMe/500g流量
hostdare 4折优惠,直接
六类网线cat6a和cat6e的区别
六类网线cat6a和cat6e
相关文章
栏目更新
栏目热门

关于我们 | 广告服务 | 联系我们 | 网站地图 | 免责声明 | WAP | RSS


Copyright © 运维之家 2013-2023