linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Klaus Strebel <klaus.strebel@gmx.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Using LVM to snapshot Oracle
Date: Tue, 21 Feb 2006 11:21:14 +0100	[thread overview]
Message-ID: <43FAE99A.4060609@gmx.net> (raw)
In-Reply-To: <20060220221114.GB16484@percy.comedia.it>

Luca Berra schrieb:
> On Mon, Feb 20, 2006 at 11:05:32PM +0100, Luca Berra wrote:
> to clarify:
>> you can do hot backup, but you will need to tell oracle you are doing
>> so:
>>
>> you will need to have oracle in archive log mode
>>
>> you will need to manually set all tablespaces in backup mode:
>> alter tablespace XXX begin backup; (for all tablespaces)
>> alter system switch logfile;
> the snapshot creation part goes here
> 
> NO >do your backup including the archive logs
> 
>> alter tablespace XXX end backup; (for all tablespaces)
> 
> do your backup here including the archive logs
> destroy the snapshot here.
> 
>> it is a simple sql script to code
>>
> 
Hi Mitchell, hi Luca,

well, despite i prefer using RMAN ( since 9iR2 it's once configured and 
then you can always do your backup with a simple 'backup database' ) but 
you need your database running in archived mode, which brings additional 
space and backup needs.

The way Luca describes for a online-backup is the usual way that's 
working since Oracle 7 ( or even 6, but just work with Oracle since 7.0 
;-) ), but i think, if all ( really all !) files are on the same 
snapshout and the snapshot is big enough( ;-) ), you should make a 
logswitch, create a readonly snapshot, copy all the files ( including 
control-files, and redo-logs ) and remove the snapshot. You can then 
carefully try to use these files to restore the database. If you have 
enough diskspace, you can shutdown your instance, rename all the files ( 
again incl. control-files and redo-logs ), restore the copies from the 
snapshot and start the database carefully ( startup nomount; alter 
database mount; select file#, name, status from v$datafile; -> all file 
should be in status system or online ; alter database open; -> up again ).
I have nither the time nor the resources to test this on my own. But you 
can share your results with us :-)

Ciao
Klaus


-- 
Mit freundlichen Gr�ssen / best regards

Klaus Strebel, Dipl.-Inform. (FH), mailto:klaus.strebel@gmx.net

/"\
\ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
/ \

  reply	other threads:[~2006-02-21 10:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-20 19:28 [linux-lvm] Using LVM to snapshot Oracle Mitchell Christensen
2006-02-20 22:05 ` Luca Berra
2006-02-20 22:11   ` Luca Berra
2006-02-21 10:21     ` Klaus Strebel [this message]
2006-02-21 18:00     ` [linux-lvm] Situation with PVRESIZE command Roger Lucas
2006-02-28 13:32       ` Roger Lucas
2006-02-28 13:53       ` Patrick Caulfield
2006-02-28 15:51         ` Roger Lucas
2006-02-28 16:04           ` Patrick Caulfield
2006-02-28 16:07             ` Roger Lucas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43FAE99A.4060609@gmx.net \
    --to=klaus.strebel@gmx.net \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).