- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "Hot-Backup" of Oracle DB using filesystem snapsho...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 01:15 AM
тАО05-15-2006 01:15 AM
Would this work?:
For each tablespace in my database {
put the tablespace in backup-mode
}
Create a snapshot of the entire "data" filesystem and mount it
For each tablespace in my database {
take the tablespace out of backup-mode
}
Copy all files from snapshot mount point to the "backup" mount point
Unmount and remove the snapshot
Do you have an example script that I could look at for particulars?:
Oracle says this: "Oracle will stop updating file headers, but will continue to write data to the database files even if a tablespace is in backup mode."
Still ok to use filesystem snapshots, correct? Since the Oracle recovery mechanism should handle the possibility of partially written blocks?
Thanks for any input.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 01:29 AM
тАО05-15-2006 01:29 AM
Re: "Hot-Backup" of Oracle DB using filesystem snapshot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 02:16 AM
тАО05-15-2006 02:16 AM
Re: "Hot-Backup" of Oracle DB using filesystem snapshot
So long as writes are cached somewhere, this should work.
You have another option to do this, called Online JFS. It permits you to freeze writes on an entire logical volume while you do a cold oracle backup.
This is somewhat superior to your methodology.
Down database
freeze lv, create temporary one for writes
start database (elapsed time usually very short)
begin cold backup of frozen logical volume.
close temporary logical volume (puts writes into the previously frozen logical volume)
Of course Online JFS costs money.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 02:25 AM
тАО05-15-2006 02:25 AM
Re: "Hot-Backup" of Oracle DB using filesystem snapshot
and Oracle Hot backup. You can
mark a tablespace as being backed up
with
alter tablespace tbs_name begin backup;
and end the backup with:
alter tablespace tbs_name end backup;
Roll forward will apply all changes from
the begining of the backup during recovery.
I don't use RMAN but I would expect that it
does it automatically.
I currently use a modified oracback.sh
script. We use hot backups exclusively
in developmnet with frequent rollbacks on
some databases, and occational clones.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 02:40 AM
тАО05-15-2006 02:40 AM
Re: "Hot-Backup" of Oracle DB using filesystem snapshot
Question, we have OnlineJFS, but I am unfamiliar with the "freeze" idea. I had actually posted a question about the ability to freeze/thaw filesystems on HP-UX in the past and was told that it wasn't implemented for VxFS on HP-UX (yet).
Can you point me toward documentation that describes this freeze/thaw mechanism (sounds more breakable then simple copy-on-write snapshot)--unless you were just explaining "snapof" in a different way.
Also, I seek to not shut down Oracle... that is the tricky part. If I could shutdown (even for two minutes) I would just do the snaps and not have bothered with my post.
Said another way, I am sure that if I shutdown Oracle, the snap technique will work great. I was wondering how legitimate my backups will be if I leave Oracle running, but ALTER the tablespaces into backup mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 06:27 AM
тАО05-15-2006 06:27 AM
Re: "Hot-Backup" of Oracle DB using filesystem snapshot
It looks to me that the VxFS freeze and thaw mechanism's are still only exposed as ioctl calls... no binary/scriptable utilities are included with the OS. I have example C code and could fortify it... but I wouldn't be able to get that past change control here.
Anyhow, previous posts had said it is all-good to do what I want; my concern was based on the oracle statement: "Oracle will stop updating file headers, but will continue to write data to the database files even if a tablespace is in backup mode"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 06:56 AM
тАО05-15-2006 06:56 AM
SolutionThat method should work just fine. I see no reason why that wouldn't work well, and you don't have to bring the database down to do it.
Essentially, instead of doing a single file at a time for backups, you'd essentially put the whole thing in a hotbackup state, snapshot, and then put it all back live. Good idea.
You're right about the fact that the data files still get written to, they do. Of course, from your snapshotted area you'd never see that type of activity, meaning that you'd have almost no data recovery (rolling forward archive logs) when copying or restoring that backup. The reason that it's OK that the data files get written to is that putting a tablespace in hotbackup mode primarily freezes that incrementation of the SCN number in each file until the file copies are finished and the backup mode is put back to normal. This means that a recovery would roll forward through all changes to the files until the scn number is caught up, even if the writes have taken place or not (it would just rewrite over the ones that have already taken place, plus anything else that hasn't).
Anyway, I like the idea, and think it could work great for you.