Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to set the WHOLE Database in backup mode

Re: How to set the WHOLE Database in backup mode

From: Paul Drake <drak0nian_at_yahoo.com>
Date: 22 Apr 2003 17:33:54 -0700
Message-ID: <1ac7c7b3.0304221633.67ee444e@posting.google.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US