分类:
2008-06-10 20:57:54
SQL> select name from v$datafile;NAME------------------------------------------------------------------------------/free/oracle/oradata/exitgogo/system01.dbf/free/oracle/oradata/exitgogo/undotbs01.dbf/free/oracle/oradata/exitgogo/users01.dbf/free/oracle/oradata/exitgogo/tools01.dbf/free/oracle/oradata/exitgogo/indx01.dbf/free/oracle/product/9.2.0.8/dbs/UNNAMED00006
6 rows selected.
可以看到,oracle中莫名的多出了一个文件UNNAMED00006,
可以通过下面的方式把pub表空间数据文件移动到合适的位置。
SQL> alter database create datafile 6 as '/free/oracle/oradata/exitgogo/pub.dbf';Database altered.SQL> col name format a40SQL> select file#,name from v$datafile;
FILE# NAME---------- ---------------------------------------- 1 /free/oracle/oradata/exitgogo/system01.d bf 2 /free/oracle/oradata/exitgogo/undotbs01.dbf 3 /free/oracle/oradata/exitgogo/users01.dbf 4 /free/oracle/oradata/exitgogo/tools01.dbf FILE# NAME---------- ---------------------------------------- 5 /free/oracle/oradata/exitgogo/indx01.dbf 6 /free/oracle/oradata/exitgogo/pub.dbf6 rows selected.
继续恢复:SQL> recover database using backup controlfile;ORA-00279: change 73805 generated at 11/23/2006 17:37:18 needed for thread 1ORA-00289: suggestion :/free/oracle/product/9.2.0.8/dbs/archexitgogo/T0001S0000000008.ARCORA-00280: change 73805 for thread 1 is in sequence #8Specify log: {
ORA-00308: cannot open archived log'/free/oracle/product/9.2.0.8/dbs/archexitgogo/T0001S0000000009.ARC'ORA-27037: unable to obtain file statusLinux Error: 2: No such file or directoryAdditional information: 3由于我的归档没有T0001S0000000009了,所以可能需要redo file了SQL> recover database using backup controlfile;ORA-00279: change 74363 generated at 11/23/2006 17:38:51 needed for thread 1ORA-00289: suggestion :/free/oracle/product/9.2.0.8/dbs/archexitgogo/T0001S0000000009.ARCORA-00280: change 74363 for thread 1 is in sequence #9Specify log: {
SQL> recover database using backup controlfile;ORA-00279: change 74363 generated at 11/23/2006 17:38:51 needed for thread 1ORA-00289: suggestion :/free/oracle/product/9.2.0.8/dbs/archexitgogo/T0001S0000000009.ARCORA-00280: change 74363 for thread 1 is in sequence #9Specify log: {
SQL> recover database using backup controlfile;ORA-00279: change 74363 generated at 11/23/2006 17:38:51 needed for thread 1ORA-00289: suggestion :/free/oracle/product/9.2.0.8/dbs/archexitgogo/T0001S0000000009.ARCORA-00280: change 74363 for thread 1 is in sequence #9Specify log: {
这样恢复完成后,马上又做了一个全库的rman备份。