Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: HotBackup Dilema
Hey thanks for the help, I am actually a Unix admin turned DBA, so luckily this is all done is a test environment.
I just wanna make sure my hot backup script is doing what it needs to do. Here is a rough outline of what it does:
Now, suppose I had to completely restore from this hotbackup. I understand this much:
Now the next step is to restore the control files, correct? This is where I need the help.
One other question. If I restored this hotbackup, would I lose any transactions that occured after step 1, where I copied the archive logs?
Thanks a bunch,
CC
Howard J. Rogers wrote:
> "Chucky" <chuck.carson_at_syrrx.com> wrote in message
> news:3DFFABAB.9000909_at_syrrx.com...
>
>>When I try that I get this error: >> >>SVRMGR> alter database recover until cancel >> 2> ; >>alter database recover until cancel >>* >>ORA-00283: recovery session canceled due to errors >>ORA-01610: recovery using the BACKUP CONTROLFILE option must be done >>SVRMGR>
>>The control being used was backup using 'alter database backup control >>file to /some/path' >> >>Is this correct? >>
>>What I am doing is taking a hotbackup and putting on an entirely >>different server and testing a restore. >>
>>Thx, >>CC >> >>Howard J. Rogers wrote: >> >>>"Startup" on its own means 'startup open', so the command is attempting >>
>>>completely open the database. >>> >>>It would appear, however, that a previous incomplete recovery has been >>>performed, and this is still awaiting the 'alter database open >>
>>>command to terminate it. >>> >>>Incomplete recoveries are performed either (a) after a user stuff-up >>
>>>as 'Ooops. I just deleted the entire sales table and hit the commit >>
>>>instead of the rollback one') or (b) when there's a gap in your stream >>
>>>redo which prevents a complete recovery succeeding. >>> >>>In the case of (a), you beat the unfortunate employee around the head a >>
>>>until he confesses that he did the catastrophic delete at, say, 8.45am. >>
>>>then restore all datafiles from your last complete backup, startup >>
>>>and issue the command 'recover database until time >>
>>>That rolls the datafiles forward to time 8:44am. But that still leaves >>
>>>Control File at time 8:45, ahead of the datafiles. You therefore force >>>synchronisation by issuing the command 'alter database open resetlogs', >>>effectively setting the database back to time zero. >>> >>>In the case of (b), you issue the command 'recover database until >>
>>>meaning: 'when I type in the word cancel, I want you to permanently stop >>>applying redo to my datafiles'. So you restore from last night, roll >>
>>>forward by applying redo from archives (say) 105, 106, 107, 108 and 109. >>
>>>because archive 110 is missing, you can't go further, so you say >>
>>>Now your datafiles are at time 109, but again your controlfile is ahead >>
>>>the game at time 115. Time to force synchronisation to time zero with an >>>'alter database open resetlogs'. >>> >>>So someone (presumably you?) has previously done one or other of these >>>scenarios, the datafiles are consistent amongst themselves at one time, >>
>>>the controlfile is out of synch at a time in the future of that... so a >>>resetlogs is needed. >>> >>>Bear in mind that a resetlogs resets the database to time zero. Prior >>>backups at time (say) 100 are thus useless for recovering that database. >>
>>>prior archives are likewise equally useless. Your freshly opened >>
>>>thus completely vulnerable to another failure of some kind, and would be >>>unrecoverable unless you *immediately* start to take a new backup. >>> >>>Regards >>>HJR >>> >>> >>>"Chucky" <chuck.carson_at_syrrx.com> wrote in message >>>news:3DFF8A4F.2000302_at_syrrx.com... >>> >>> >>>>I am trying to restore from a hotbackup and am getting this problem: >>>> >>>>SVRMGR> connect internal; >>>>Connected. >>>>SVRMGR> startup >>>>ORACLE instance started. >>>>Total System Global Area 1979523232 bytes >>>>Fixed Size 73888 bytes >>>>Variable Size 368558080 bytes >>>>Database Buffers 1610612736 bytes >>>>Redo Buffers 278528 bytes >>>>Database mounted. >>>>ORA-01589: must use RESETLOGS or NORESETLOGS option for database open >>>> >>>> >>>>This is new to me, can anyone shed some light? >>>> >>>>Thx, >>>>CC >>>> >>>> >>>> >>>>-----------== Posted via Newsfeed.Com - Uncensored Usenet News >>> >>>==---------- >>> >>> >>>> http://www.newsfeed.com The #1 Newsgroup Service in the World! >>>>-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers >>> >>>=----- >>> >>> >> >> >> >>-----------== Posted via Newsfeed.Com - Uncensored Usenet News
>> http://www.newsfeed.com The #1 Newsgroup Service in the World! >>-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World! -----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =----- Received on Tue Dec 17 2002 - 18:09:11 CST