- 最后登录
- 2017-5-4
- 在线时间
- 81 小时
- 威望
- 999
- 金钱
- 2391
- 注册时间
- 2013-9-11
- 阅读权限
- 150
- 帖子
- 1124
- 精华
- 5
- 积分
- 999
- UID
- 1220
|
1#
发表于 2017-4-14 15:53:54
|
查看: 1408 |
回复: 0
我的database 迁移后,发现datafie 是recover 状态:
SQL> select name ,status from v$datafile;
NAME STATUS
------------------------------ -------
/u02/sheng/SYSTEM01.DBF SYSTEM
/u02/sheng/UNDOTBS01.DBF RECOVER
/u02/sheng/SYSAUX01.DBF RECOVER
/u02/sheng/USERS01.DBF RECOVER
重建控制文件后:
恢复报错:
SQL> recover database using backup controlfile until cancel;
ORA-00279: change 4982391 generated at 03/27/2010 10:42:28 needed for thread 1
ORA-00289: suggestion :
/u01/pp/oracle/product/10.2/db_1/dbs/arch1_166_706644645.dbf
ORA-00280: change 4982391 for thread 1 is in sequence #166
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u02/sheng/SYSTEM01.DBF'
ORA-01112: media recovery not started
大家有没有碰到这样的错误啊?
我的是冷备迁移的,window 向 linux 上移的,控制文件的路径不同,要重建的,但是select name from v$datafile, 看到的是recover 状态,大侠看看,我该怎么恢复,没有rman
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- ------------------------------ ---
3 STALE ONLINE /u02/sheng/REDO03.LOG NO
2 STALE ONLINE /u02/sheng/REDO02.LOG NO
1 STALE ONLINE /u02/sheng/REDO01.LOG NO
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
1 1 0 52428800 1 YES UNUSED
0
3 1 0 52428800 1 YES CURRENT
0
2 1 0 52428800 1 YES UNUSED
0
我的控制文件的创建脚本是:
SQL> CREATE CONTROLFILE set DATABASE "SHENG" RESETLOGS NOARCHIVELOG
2 MAXLOGFILES 16
3 MAXLOGMEMBERS 3
4 MAXDATAFILES 100
5 MAXINSTANCES 8
6 MAXLOGHISTORY 292
7 LOGFILE
8 GROUP 1 '/u02/sheng/REDO01.LOG' SIZE 50M,
9 GROUP 2 '/u02/sheng/REDO02.LOG' SIZE 50M,
10 GROUP 3 '/u02/sheng/REDO03.LOG' SIZE 50M
11 -- STANDBY LOGFILE
12 DATAFILE
13 '/u02/sheng/SYSTEM01.DBF',
14 '/u02/sheng/UNDOTBS01.DBF',
15 '/u02/sheng/SYSAUX01.DBF',
16 '/u02/sheng/USERS01.DBF'
17 CHARACTER SET ZHS16GBK
18 ;
Control file created.
现在启动open报错:
SQL> alter database open resetlogs;
alter database open resetlogs
*
ERROR at line 1:
ORA-01194: file 1 needs more recovery to be consistent
ORA-01110: data file 1: '/u02/sheng/SYSTEM01.DBF' |
|