SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Question on DB online backups
Author Message
Post Question on DB online backups 
Hi, this is really for anyone doing online Oracle Backups?
Trying to create a new policy for this. Got agent installed (licensed). Environment all Windows 2003.
All I want is to do an online Oracle Backup. But I am struggling with this, as I have no DB Support.
Being told that backing up Oracle is huge excercise and needs time. Trouble is, I wasnt expecting this sort of response.
Does anyone have advise or a script or something I could try and use to perform an Oracle Backup?
At the moment, I stop services, then do backup & start services. But Im not sure that is good practice. while Oracle Down, application is down. Hence, no one works!!!
Any input appreciated. I have and am still using Admin guide, but I wanted real world advice here. I got a sample Hot Oracle DB Backup from the goodies directory, but not sure if this is right way to do it.
Goal is to get a backup while application online. I do tons of online SQL, and no issues with backups..... Yet apparantly Oracle is more complex !!!
News to me... But feedback welcome
Thanks
Regards
Simon

Post Question on DB online backups 
You might want to call your local “Suits-R-Us” and buy a few hours with an Oracle DBA. I can give you our script which is based on the “goodies” script, but you really need a DBA. The database needs to be in archive log mode, and you have to configure RMAN. We use a dedicated RMAN database here, but I think you can configure backups without it. Other non-RMAN options include snapshots and off-host, but I’d definitely want to test those thoroughly before relying on them for DR.

-Jonathan

From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto:veritas-bu-bounces < at > mailman.eng.auburn.edu] On Behalf Of WEAVER, Simon (external)
Sent: Monday, September 26, 2011 1:33 PM
To: veritas-bu < at > mailman.eng.auburn.edu
Subject: [Veritas-bu] Question on DB online backups



Hi, this is really for anyone doing online Oracle Backups?
Trying to create a new policy for this. Got agent installed (licensed). Environment all Windows 2003.
All I want is to do an online Oracle Backup. But I am struggling with this, as I have no DB Support.
Being told that backing up Oracle is huge excercise and needs time. Trouble is, I wasnt expecting this sort of response.
Does anyone have advise or a script or something I could try and use to perform an Oracle Backup?
At the moment, I stop services, then do backup & start services. But Im not sure that is good practice. while Oracle Down, application is down. Hence, no one works!!!
Any input appreciated. I have and am still using Admin guide, but I wanted real world advice here. I got a sample Hot Oracle DB Backup from the goodies directory, but not sure if this is right way to do it.
Goal is to get a backup while application online. I do tons of online SQL, and no issues with backups..... Yet apparantly Oracle is more complex !!!
News to me... But feedback welcome
Thanks
Regards
Simon

Post Question on DB online backups 
I don’t do it on Windows but on UNIX/Linux there are a few options:

<![if !supportLists]>1) <![endif]>Oracle Recovery Manager (RMAN) – Requires NBU Oracle client – This essentially puts RMAN in charge of the backups – fairly complicated setup requiring an RMAN repository and backup/restore scripts for RMAN. We only do this for a couple of small DBs that are on Oracle ASM so require it.
<![if !supportLists]>2) <![endif]>Cold backup. We stop the Database and backup the filesystems on which the data files live.
<![if !supportLists]>3) <![endif]>Hot backup. This is a special mode you can put Oracle in that prevents it from committing changes (it logs them instead) while the backup is running so it is a point in time. After the backup completes you take the DB out of this mode and it commits the changes it previously logged.
For large databases with lots of activity this can be a problem. One work around many people do is disk mirroring built into many disk arrays (different names – e.g. BCV/SRDF on EMC, Shadow Image on Hitachi etc…) One can establish the mirror before the time of hot backup then put DB in hot backup mode just to split the mirrors. One then mounts the mirrors in another location and does a backup of the data files.
<![if !supportLists]>4) <![endif]>Dump the data and backup the dumped data. Not pretty.









From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto:veritas-bu-bounces < at > mailman.eng.auburn.edu] On Behalf Of WEAVER, Simon (external)
Sent: Monday, September 26, 2011 1:33 PM
To: veritas-bu < at > mailman.eng.auburn.edu
Subject: [Veritas-bu] Question on DB online backups


Hi, this is really for anyone doing online Oracle Backups?
Trying to create a new policy for this. Got agent installed (licensed). Environment all Windows 2003.
All I want is to do an online Oracle Backup. But I am struggling with this, as I have no DB Support.
Being told that backing up Oracle is huge excercise and needs time. Trouble is, I wasnt expecting this sort of response.
Does anyone have advise or a script or something I could try and use to perform an Oracle Backup?
At the moment, I stop services, then do backup & start services. But Im not sure that is good practice. while Oracle Down, application is down. Hence, no one works!!!
Any input appreciated. I have and am still using Admin guide, but I wanted real world advice here. I got a sample Hot Oracle DB Backup from the goodies directory, but not sure if this is right way to do it.
Goal is to get a backup while application online. I do tons of online SQL, and no issues with backups..... Yet apparantly Oracle is more complex !!!
News to me... But feedback welcome
Thanks
Regards
Simon




Athena®, Created for the Cause™
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------

Post Question on DB online backups 
Hi Simon
 
We are doing a lot of Oracle backups on windows both online & offline
You should be aware that the oracle service starting is not the same as the oracle database starting up
 
Yes Oracle is more complex as it gives a lot more options
 
The hot backup script is probably a good place to start, but requires the Oracle in question comes with rman
 
Regards
Michael


 
2011/9/26 WEAVER, Simon (external) <simon.weaver < at > astrium.eads.net ([email]simon.weaver < at > astrium.eads.net[/email])>

Hi, this is really for anyone doing online Oracle Backups?
Trying to create a new policy for this. Got agent installed (licensed). Environment all Windows 2003.
All I want is to do an online Oracle Backup. But I am struggling with this, as I have no DB Support.
Being told that backing up Oracle is huge excercise and needs time. Trouble is, I wasnt expecting this sort of response.
Does anyone have advise or a script or something I could try and use to perform an Oracle Backup?
At the moment, I stop services, then do backup & start services. But Im not sure that is good practice. while Oracle Down, application is down. Hence, no one works!!!
Any input appreciated. I have and am still using Admin guide, but I wanted real world advice here. I got a sample Hot Oracle DB Backup from the goodies directory, but not sure if this is right way to do it.
Goal is to get a backup while application online. I do tons of online SQL, and no issues with backups..... Yet apparantly Oracle is more complex !!!
News to me... But feedback welcome
Thanks
Regards
Simon

_______________________________________________
Veritas-bu maillist  -  Veritas-bu < at > mailman.eng.auburn.edu ([email]Veritas-bu < at > mailman.eng.auburn.edu[/email])
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



View user's profile Send private message
Post Question on DB online backups 
Ouch, having an Oracle database without a DBA is like having NetBackup without anyone that knows NetBackup.

There are several ways to do backups of Oracle databases.  These include
  • Cold, full.  You take down the database and backup all associated disk space (data, redolog, and perhaps other types). 
    • Cold backups do not require Oracle archivelog mode.
    • Restoration requires database down or restore to essentially identical setup on a like machine.
    • Restoration is to back to the time of your backup.
    • Note for all backup types: Your file system backups will exclude Oracle managed, as a file system backup of an online Oracle database is insufficient for recovery.  Your file system backup should include the Oracle software home and certain other objects (control files, inventory, oraInst.loc, etc) ... not sure where these are on Windows.
  • Cold, RMAN level 0 and 1.   You write a script that brings the database down, use RMAN to back it up, then start the database again.
    • Note for all RMAN backup types: RMAN is simply the Oracle utility to do backup and restore. 
      • Whereas the above backups were simply of file system disk spaces while the database is down (perhaps using NetBackup or a disk copy utility), RMAN decides what data to copy, where to put it and keeps track where it has put the backup files. 
      • RMAN writes its backups to disk or tape. While it is possible to have RMAN write to disk and then have NetBackup backup the file system data, this is awkward and restoration goes from a simple, automatic process to a time-consuming very difficult process if NetBackup has the data. 
      • The Netbackup solution is to purchase a license that includes the Oracle Agent.  This is a shim that gets installed in the Oracle software home.  RMAN thinks it is backing up to tape (device type "sbt_tape"), but the shim captures the RMAN data and sends it on to your backup server.  It doesn't matter if your backup server uses disk or tape ... everything back at the backup server is transparent to RMAN ... just like NetBackup file system backups.
      • Just like file system cold backups, you need to verify and practice various restore scenarios.  RMAN gives you a much better chance to do the restore you need (and have the necessary backup objects available).
      • RMAN keeps track of the stuff it backs up.  It has two methods.  RMAN will put information about its backups in the Oracle database control files.  RMAN also has a "catalog" feature, which means its backup information is stored in a database someplace.  If you use the RMAN catalog, your restore scenarios are substantially enhanced.  Using an RMAN catalog is NOT required by RMAN nor the Oracle Agent.
      • RMAN has its own retention schemes.  Now you have 2 retentions to worry about ... if either the RMAN retention or the NetBackup retention period expires, your backup data is lost.
    • Hot - Hot backups are taken with the database online.  Hot backups require archivelog mode set in the database, which means that changes to the database, as recorded in the redologs that any Oracle database has, are copied to archive redo logs.  Archivelog mode along with database backups allow one to restore/recover to a point in time of your choice (that is, all committed changes at any point in time).  Depending on your requirements, these archive redo logs must be saved for as far back as you might wish to do a restore.
      • Hot backups do not require RMAN.  One may put an Oracle tablespace (collection of related data files) in backup mode, backup (by disk copy, NetBackup user backup, or whatever) and then remove backup mode.  While this can be done I strongly suggest you don't, for I predict you will not be able to do the restore you want one day.
      • RMAN is the tool of choice for hot backups.  Again, backup may be to RMAN disk or tape. 
        • I backup many databases using the NetBackup Oracle Agent.  With an appropriately written script to control the backups, once can invoke a backup on the client as well as having scheduled Netbackup backups.  These backups have several setups you must perform:
          • Write or find a working script
          • setup RMAN configuration
          • setup NetBackup server configuration
          • In addition, depending on your NetBackup version/platform, you may have to install the Oracle Agent separately from the NetBackup client (older versions only, I think) and you may have a configuration step to link the Oracle Agent into the Oracle software home (one does on Linux and Solaris)
        • I backup many database directly to disk, where the disk is an NFS (CIFS in your case) share on a de-dup disk storage appliance.  This is also my future direction.  Pros include no Oracle Agent install and licensing (nor NetBackup, for that matter!) and simpler problem resolution(NetBackup status codes are not sufficient for backup success); cons include no NetBackup scheduling and NetBackup or StorageScape reporting.  One must script or periodically manually check that backups are being done.
So, if you have an Oracle DBA, you really want her intimately involved in backups.

The above describes the case with database on standard disk.  If you use oracle ASM, you really need a DBA, IMHO.

The above does not discuss the flashback, formerly fast recover area and its relationship to more comprehensive backup and recovery ... something that can be very useful to quick database recovery.

The above does not discuss the export/import and data dump utilities that may have a place in backup and recovery of your database.

I hope it helps, though!    Wink

Cheers, Wayne

On Mon, Sep 26, 2011 at 1:33 PM, WEAVER, Simon (external) <simon.weaver < at > astrium.eads.net ([email]simon.weaver < at > astrium.eads.net[/email])> wrote:

Hi, this is really for anyone doing online Oracle Backups?
Trying to create a new policy for this. Got agent installed (licensed). Environment all Windows 2003.
All I want is to do an online Oracle Backup. But I am struggling with this, as I have no DB Support.
Being told that backing up Oracle is huge excercise and needs time. Trouble is, I wasnt expecting this sort of response.
Does anyone have advise or a script or something I could try and use to perform an Oracle Backup?
At the moment, I stop services, then do backup & start services. But Im not sure that is good practice. while Oracle Down, application is down. Hence, no one works!!!
Any input appreciated. I have and am still using Admin guide, but I wanted real world advice here. I got a sample Hot Oracle DB Backup from the goodies directory, but not sure if this is right way to do it.
Goal is to get a backup while application online. I do tons of online SQL, and no issues with backups..... Yet apparantly Oracle is more complex !!!
News to me... But feedback welcome
Thanks
Regards
Simon

_______________________________________________
Veritas-bu maillist  -  Veritas-bu < at > mailman.eng.auburn.edu ([email]Veritas-bu < at > mailman.eng.auburn.edu[/email])
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



Post Question on DB online backups 
Wayne - you are right - I totally misread the message thread, my comments were addressed to the original questioner.
Your comments were an excellent summation of the options to backup the data.

My comments were basically meant to indicate that how you want to restore the data, and where, will direct your backup plan. Also, the hardware and application limitations impact it.

Mea culpa


Date: Thu, 29 Sep 2011 13:37:00 -0400
From: Wayne T Smith <WTSmith < at > maine.edu>
Subject: Re: [Veritas-bu] Question on DB online backups (Wayne T
Smith)
To: veritas-bu < at > mailman.eng.auburn.edu
Message-ID:
<CAEgY-F5dXOck8OuxRjB93k_e4cmTDkGJvVbuA2DcSiZEVa3Xdw < at > mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I respectfully disagree in all respects.

- Refusing to get a database backed up until management hires a DBA could
be a "resume generating event".
- Like it or not, the questioner appears to be the Oracle DBA, albeit one
very early in his DBA career and learning on his own!
- [redacted]
- Someone using NetBackup for as long as the questioner knows that a
successful backup is not the same as being able to restore or meet
expectations for recovery.
- My post started with and ended with, essentially, "you need a DBA".
- My intended perspective was that if management leaves the DBA job to
the questioner, then a little high level knowledge will let him focus on
getting the database protected at an appropriate level as quickly as
possible.
- What I wrote may be right or wrong, the perspective may be right or
wrong for various circumstances, but for how I read this circumstance, the
comment is off-base and helpful only in giving me pause before again
"helping" in this forum. If this was the commenter's purpose, it worked.
- If the commenter wrote "Wayne" when he meant the questioner ... never
mind.

Wayne
NetBackup administrator
Oracle database administrator
thin-skinned today, apparently


_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

View user's profile Send private message
Post Question on DB online backups 
Cant even remember what you wrote dave as I deleted it !

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu
[mailto:veritas-bu-bounces < at > mailman.eng.auburn.edu] On Behalf Of David
McMullin
Sent: Thursday, September 29, 2011 10:09 PM
To: veritas-bu < at > mailman.eng.auburn.edu
Cc: WTSmith < at > maine.edu
Subject: Re: [Veritas-bu] Question on DB online backups

Wayne - you are right - I totally misread the message thread, my
comments were addressed to the original questioner.
Your comments were an excellent summation of the options to backup the
data.

My comments were basically meant to indicate that how you want to
restore the data, and where, will direct your backup plan. Also, the
hardware and application limitations impact it.

Mea culpa


Date: Thu, 29 Sep 2011 13:37:00 -0400
From: Wayne T Smith <WTSmith < at > maine.edu>
Subject: Re: [Veritas-bu] Question on DB online backups (Wayne T
Smith)
To: veritas-bu < at > mailman.eng.auburn.edu
Message-ID:

<CAEgY-F5dXOck8OuxRjB93k_e4cmTDkGJvVbuA2DcSiZEVa3Xdw < at > mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I respectfully disagree in all respects.

- Refusing to get a database backed up until management hires a DBA
could
be a "resume generating event".
- Like it or not, the questioner appears to be the Oracle DBA, albeit
one
very early in his DBA career and learning on his own!
- [redacted]
- Someone using NetBackup for as long as the questioner knows that a
successful backup is not the same as being able to restore or meet
expectations for recovery.
- My post started with and ended with, essentially, "you need a DBA".
- My intended perspective was that if management leaves the DBA job
to
the questioner, then a little high level knowledge will let him focus
on
getting the database protected at an appropriate level as quickly as
possible.
- What I wrote may be right or wrong, the perspective may be right or
wrong for various circumstances, but for how I read this
circumstance, the
comment is off-base and helpful only in giving me pause before again
"helping" in this forum. If this was the commenter's purpose, it
worked.
- If the commenter wrote "Wayne" when he meant the questioner ...
never
mind.

Wayne
NetBackup administrator
Oracle database administrator
thin-skinned today, apparently


_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB