oracle - Archivelog file deleted, resulting in 'ORA-01113: file 1 needs media recovery' - Database Administrators Stack Exchange


(this not production database. i'm practicing in staging enviroment.)

i'm trying set rman backup/recovery.

i did full backup, seems in state.

i did archivelog backup, went well. , then, (here's f***ed up), i...

  1. created new tmp directory.
  2. ran rman archivelog only backup tmp directory destination
  3. changed mind , deleted tmp directory.

i realize rman keeps track of paths written backups, can't go around , delete these files!

now, after do

run {     restore database;     recover database; } 

i get

ora-27037: unable obtain file status linux-x86_64 error: 2: no such file or directory additional information: 3  failover previous backup rman-00571: =========================================================== rman-00569: =============== error message stack follows =============== rman-00571: =========================================================== rman-03002: failure of recover command @ 01/19/2018 20:21:01 rman-20506: no backup of archived log found rman-06053: unable perform media recovery because of missing log rman-06025: no backup of archived log thread 1 sequence 15 , starting scn of 1361136 found restore 

and when try open database, looks follows:

2018-01-19 20:23:04 sys@... sysdba> alter database open; alter database open * error @ line 1: ora-01113: file 1 needs media recovery ora-01110: data file 1: '/path/to/a/file.dbf' 

i've tried solution posted here: ora-01113: file # needs media recovery ora-01110

but can't work. (i run ora-00308: cannot open archived log.)


update: tried crosscheck backup; followed delete expired backup; unfortunately results in this.

ran rman archivelog backup new directory
changed mind , deleted directory.

assuming still have archivelog files , not deleted when backed up, need tell rman files aren't coming back:

use crosscheck command synchronize physical reality of backups , copies logical records in rman repository

if, on other hand, original archivelog files deleted along backups, not have full recovery set , thing said "this not production database. i'm practising in staging environment". full backup run online not consistent backup — need archivelog files containing log records before backup starts until after finishes or there no way restore database consistently.


Comments

Popular posts from this blog

analysis of two transistors ib,ic,ie? - Electrical Engineering Stack Exchange

Choosing and replace capacitors for audio amplifier - Electrical Engineering Stack Exchange

sql server 2008 r2 - LogWriter: Operating system error 1117 - Database Administrators Stack Exchange