- 最后登录
- 2017-5-4
- 在线时间
- 81 小时
- 威望
- 999
- 金钱
- 2391
- 注册时间
- 2013-9-11
- 阅读权限
- 150
- 帖子
- 1124
- 精华
- 5
- 积分
- 999
- UID
- 1220
|
1#
发表于 2017-4-13 14:32:47
|
查看: 1125 |
回复: 0
求问,这里怎么知道要使用哪个日志进行恢复。
SYS@orcl>recover database using backup controlfile until cancel;
ORA-00279: change 747999 generated at 04/09/2014 15:03:10 needed for thread 1
ORA-00289: suggestion : /opt/oracle/archive/arch_1_46_808410282.dbf
ORA-00280: change 747999 for thread 1 is in sequence #46
在 Specify log: {<RET>=suggested | filename | AUTO | CANCEL} 下面输入:
网上写按下面语句可以查询需要使用哪个log.
SQL> conn sys/oracle as sysdba
Connected.
SYS@orcl>select v1.group#, member, sequence#, first_change#
from v$log v1, v$logfile v2
where v1.group# = v2.group#;
GROUP# MEMBER SEQUENCE# FIRST_CHANGE#
---------- -------------------------------------------------- ---------- -------------
1 /opt/oracle/oradata/orcl/redo01.log 0 0
3 /opt/oracle/oradata/orcl/redo03.log 0 0
2 /opt/oracle/oradata/orcl/redo02.log 0 0;
但这查出来的SEQUENCE# FIRST_CHANGE#都是0。
|
|