Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to set the WHOLE Database in backup mode
Rick Denoire <100.17706_at_germanynet.de> wrote in message news:<frg8avcq7pigvia1qt6jpni7mcm9skvnff_at_4ax.com>...
> Well we know the command "alter tablespace <tralala> begin backup",
> but if there are a dozen of tablespaces, and one has to make a hot
> Snapshot of the DB files, then I wonder if having to use this command
> a dozen of times (for each tablespace separately) will garantee that
> all tablespaces are in sync when the last of them is set in backup
> mode.
>
> So is there any other command to set the DB as a whole in the backup
> mode?
>
> Thanks
> Rick Denoire
sure -
sqlplus /nolog
alter system checkpoint;
alter system archive log current;
shutdown abort
startup restrict
shutdown immediate
<run your cold backup job>
startup
quit
you now have a consistent backup set - and you didn't even have to put any tablespaces in backup mode - and it won't require any recovery.
if that it not what you wanted, then you must change what you want. "hot" or "consistent" are mutually exclusive concepts.
Pd Received on Tue Apr 22 2003 - 19:33:54 CDT
![]() |
![]() |