Error recover database RMAN-06054 [message #674463] |
Mon, 28 January 2019 12:48 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
I deleted the test database, and now I want to restore it back, when I try to recover the database I get this error. Everything I had at the database is there and everything works fine.
How can I fix this error?
unable to find archived log
archived log thread=1 sequence=2
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/28/2019 11:49:40
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 2 and starting SCN of 422743
|
|
|
|
|
|
|
|
|
|
|
Re: Error recover database RMAN-06054 [message #674483 is a reply to message #674482] |
Tue, 29 January 2019 07:37 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
When you dropped the database, you dropped the spfile. Therefore your next startup will have used an old pfile that just happened to be in the correct location with an appropriate name. More than likely that is causing the hassles you have now. You need to extract the genuine spfile from your autobackup, and start an instance off that before trying to restore a controlfile.
|
|
|
Re: Error recover database RMAN-06054 [message #674485 is a reply to message #674483] |
Tue, 29 January 2019 07:57 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
RMAN> restore spfile from autobackup;
Starting restore at 29-JAN-19
using channel ORA_DISK_1
recovery area destination: /u01/app/oracle/fast_recovery_area/testDB
database name (or database unique name) used for search: TESTDB
channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20190129
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20190128
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20190127
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20190126
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20190125
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20190124
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20190123
channel ORA_DISK_1: no AUTOBACKUP in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 01/29/2019 09:00:50
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
[Updated on: Tue, 29 January 2019 08:01] Report message to a moderator
|
|
|
|
Re: Error recover database RMAN-06054 [message #674494 is a reply to message #674493] |
Tue, 29 January 2019 14:26 |
John Watson
Messages: 8964 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I do not understand. You posted details showing that you did not restore an spile, and then you say that you did.
This is obviously nothing more than some test or training database. Forget it. Create a new one.
|
|
|
|
Re: Error recover database RMAN-06054 [message #674513 is a reply to message #674495] |
Wed, 30 January 2019 09:19 |
|
petar97
Messages: 120 Registered: October 2018
|
Senior Member |
|
|
Works well now, thanks for the advice.
RMAN> restore database until sequence 3;
Starting restore at 30-jan-2019 06:26:14
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/fast_recovery_area/testDB/TESTDB/backupset/2019_01_30/o1_mf_nnnd0_TAG20190130T061336_g531q106_.bkp
channel ORA_DISK_1: piece handle=/u01/app/oracle/fast_recovery_area/testDB/TESTDB/backupset/2019_01_30/o1_mf_nnnd0_TAG20190130T061336_g531q106_.bkp tag=TAG20190130T061336
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:25
Finished restore at 30-jan-2019 06:27:41
RMAN> recover database until sequence 3;
Starting recover at 30-jan-2019 06:27:54
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 2 is already on disk as file /u01/app/oracle/fast_recovery_area/testDB/TESTDB/archivelog/2019_01_30/o1_mf_1_2_g531rg42_.arc
archived log file name=/u01/app/oracle/fast_recovery_area/testDB/TESTDB/archivelog/2019_01_30/o1_mf_1_2_g531rg42_.arc thread=1 sequence=2
media recovery complete, elapsed time: 00:00:00
Finished recover at 30-jan-2019 06:27:56
RMAN> alter database open resetlogs;
[Updated on: Wed, 30 January 2019 09:25] Report message to a moderator
|
|
|