Recover database using backup controlfile [message #135193] |
Tue, 30 August 2005 07:12 |
paudhya
Messages: 3 Registered: August 2005
|
Junior Member |
|
|
Please check out the following backup/recovery scenario.
1. initially, there were only 5 rows in SCOTT.TEST Table.
2. i shutdown the database and took the cold backup.
3. the database is in archivelog mode.
4. i started up the database, and added 3 more rows to the SCOTT.TEST table.
Committed it.
5. switched the logfiles a few number of times.
6. shutdown the database
7. deleted ALL DATAFILES, CONTROLFILES, online REDOLOGFILES
8. i already have the CREATE CONTROLFILE SCRIPT for this database.
9. startup nomount the database. the parameter file is the same as before.
10. Restored the datafiles, created the controlfile using the CREATE CONTROLFILE
SCRIPT.
11. Recovered the database, by applying the archivelogs.
12. i am not able to open the database, so:
13. shutdown immediate the database
14. startup nomount the database
15. create control file again
16. open the database resetlogs..
i get all the data which was in the archives.
My question is why didnt it open the database after i had done the recovery? why do i have to shutdown the database, and then recreate the control file to do the same?
Please note that there were no recovery steps between 13 and 16.
The spoolfile if required is attached:
|
|
|
Re: Recover database using backup controlfile [message #135198 is a reply to message #135193] |
Tue, 30 August 2005 07:22 |
girish.rohini
Messages: 744 Registered: April 2005 Location: Delhi (India)
|
Senior Member |
|
|
Control file is created with norestelogs option only when the current version of all online logs are available.
Which option did you chose: resetlogs or noresetlogs while recreating the controlfile.
If resetlogs option then you need to open database with alter database open resetlogs command only.
Regds
Girish
|
|
|
Re: Recover database using backup controlfile [message #135319 is a reply to message #135198] |
Wed, 31 August 2005 00:04 |
paudhya
Messages: 3 Registered: August 2005
|
Junior Member |
|
|
The control file is created with RESETLOGS option. I had lost my online redologfiles, so anyway, the RESETLOGS is the only option available to me. If you check the spoolfile attached, you would notice that I did the recovery by applying all the archivelog files. But since I didnt have any online redologfile, i couldnt get it applied. After the recovery, i tried to open the database in RESETLOGS Mode, which failed. So, I shutdown the database, STARTUP NOMOUNT, then created the controlfile again, using the same syntax as before. Now I didnt give any RECOVER command, since i have already applied the archives. So, i simply say ALTER DATABASE OPEN RESETLOGS; This works, and i get the data which was in archives.
My question is that why do i have to shutdown and then restart the database by recreating the controlfiles?
|
|
|
|
|
Re: Recover database using backup controlfile [message #135532 is a reply to message #135331] |
Thu, 01 September 2005 00:59 |
girish.rohini
Messages: 744 Registered: April 2005 Location: Delhi (India)
|
Senior Member |
|
|
HI
I tried emulating the scenario on my system. I too faced same issue i.e. needed to bounce the database whenever i tried recovery using backup controlfile with resetlog option. But when I tried recovery with noresetlogs option in controlfile creation, didn't faced any such issue.
Working on same, if I do get any hint, will let you know.
neverthless, question is really good one, allowed me to refresh the recovery concepts.
Regds
Girish
[Updated on: Thu, 01 September 2005 00:59] Report message to a moderator
|
|
|
|
|
Re: Recover database using backup controlfile [message #385274 is a reply to message #210771] |
Sun, 08 February 2009 22:14 |
saenal
Messages: 1 Registered: February 2009
|
Junior Member |
|
|
I have the same problem, but the result is like this one:
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: '/xxxx/xxxxxxx/XXXX/system01.dbf'
|
|
|
|
|
|
|