|
|
archivelog 模式:以前辈分了全部数据库(辈分前 alter system switch logfile;),
现在我把旧的datafile替换掉了现在的datafile,删除所有controlfile, 我恢复过程如下:(有点过程不是很明白)
============================
SVRMGR> alter system switch logfile;
Statement processed.
SVRMGR> shutdown immediate;
SVRMGR> startup nomount;
SVRMGR> CREATE CONTROLFILE REUSE DATABASE "RLZY" NORESETLOGS ARCHIVELOG
2> MAXLOGFILES 32
3> MAXLOGMEMBERS 2
4> MAXDATAFILES 254
5> MAXINSTANCES 1
6> MAXLOGHISTORY 226
L 7> OGFILE
8> GROUP 1 '/usr/local/oracle/oradata/rlzy/redo01.log' SIZE 2M,
G 9> ROUP 2 '/usr/local/oracle/oradata/rlzy/redo02.log' SIZE 2M,
10> GROUP 3 '/usr/local/oracle/oradata/rlzy/redo03.log' SIZE 2M
D 11> ATAFILE
' 12> /usr/local/oracle/oradata/rlzy/system01.dbf',
' 13> /usr/local/oracle/oradata/rlzy/rbs01.dbf',
' 14> /usr/local/oracle/oradata/rlzy/users01.dbf',
' 15> /usr/local/oracle/oradata/rlzy/temp01.dbf',
16> '/usr/local/oracle/oradata/rlzy/tools01.dbf',
17> '/usr/local/oracle/oradata/rlzy/indx01.dbf',
' 18> /usr/local/oracle/oradata/rlzy/TEST.dbf',
19> '/usr/local/oracle/oradata/rlzy/SP.dbf'
CH 20> ARACTER SET ZHS16GBK
; 21>
Statement processed.
SVRMGR> shutdown
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SVRMGR> recover using backup controlfile until cancel;
ORA-01034: ORACLE not available
SVRMGR> startup mount;
ORACLE instance started.
Total System Global Area 232947872 bytes
Fixed Size 73888 bytes
Variable Size 215924736 bytes
Database Buffers 16777216 bytes
Redo Buffers 172032 bytes
Database mounted.
SVRMGR> recover using backup controlfile until cancel;
ORA-00279: change 312085 generated at 12/10/2002 16:29:38 needed for thread 1
ORA-00289: suggestion : /usr/local/oracle/admin/rlzy/arch/arch_1_259.arc
ORA-00280: change 312085 for thread 1 is in sequence #259
Log applied.
ORA-00279: change 312248 generated at 12/10/2002 16:37:39 needed for thread 1
ORA-00289: suggestion : /usr/local/oracle/admin/rlzy/arch/arch_1_260.arc
ORA-00280: change 312248 for thread 1 is in sequence #260
ORA-00278: log file '/usr/local/oracle/admin/rlzy/arch/arch_1_259.arc' no longer
needed for this recovery
ORA-00308: cannot open archived log '/usr/local/oracle/admin/rlzy/arch/arch_1_26
0.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
SVRMGR> alter database open resetlogs;
Statement processed.
===============================
=========================================
为什么出来下面错误呢,而我打开数据库后数据已经都恢复了呀,难道这恢复还有什么隐藏问题?这问题是不是正常呢??
ORA-00279: change 312248 generated at 12/10/2002 16:37:39 needed for thread 1
ORA-00289: suggestion : /usr/local/oracle/admin/rlzy/arch/arch_1_260.arc
ORA-00280: change 312248 for thread 1 is in sequence #260
ORA-00278: log file '/usr/local/oracle/admin/rlzy/arch/arch_1_259.arc' no longer
needed for this recovery
ORA-00308: cannot open archived log '/usr/local/oracle/admin/rlzy/arch/arch_1_26
0.arc'
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
=================== |
|