Home > Ask the Oracle Database / Applications Experts > Oracle database backup and recovery Questions & Answers > Step-by-step backup procedures
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Step-by-step backup procedures

Brian Peasland1 EXPERT RESPONSE FROM: Brian Peasland1

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 26 March 2004
I am comfortable with import/export procedures, but please respond as if I am a layman. I need some step-by-step backup procedures so I can gain practice and confidence.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Hot backups
Hot backups of Oracle E-Business Suite
Questions about user-managed hot backups
Taking a hot backup on Linux
Performing a hot backup with RMAN
Questions about backup and recovery
Advantages of using RMAN in a 24x7 environment
Try this simple hot backup script
Oracle backup and recovery scripts, part III: Backup and recovery under Windows NT
Oracle backup and recovery scripts, part II: Hot backup under Unix
Hot backup and recovery with Perl

Oracle database backup and recovery
How to perform Oracle database recovery with a corrupt online redo log
Can I create an Oracle Catalog Database with the Enterprise Console?
Do I need to recreate views after an Oracle table reorg?
Client-based apps vs. web-based apps in Developer 2000
How to perform an Oracle 8i to 10g migration
Can I move the tablespace online with missing datafiles in Oracle?
Oracle upgrade process vs. Oracle exp/imp for 9i to 10g migration
How to use RMAN CONVERT to migrate from Solaris to Oracle 11g RHEL
Why am I having trouble installing Oracle 10g on Vista?
Can I load Oracle 8 on Windows Server 2003?

Oracle database backup and recovery
How to perform Oracle database recovery with a corrupt online redo log
Can I create an Oracle Catalog Database with the Enterprise Console?
Do I need to recreate views after an Oracle table reorg?
Client-based apps vs. web-based apps in Developer 2000
Can I move the tablespace online with missing datafiles in Oracle?
How to perform an Oracle 8i to 10g migration
Oracle upgrade process vs. Oracle exp/imp for 9i to 10g migration
How to use RMAN CONVERT to migrate from Solaris to Oracle 11g RHEL
Why am I having trouble installing Oracle 10g on Vista?
Can I load Oracle 8 on Windows Server 2003?
Oracle database backup and recovery Research

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


Backups are nothing without good recovery as well. So I like to think of both backup and recovery in concert with each other. It is vital that every DBA practice the various backup and recovery methods and scenarios at their disposal. This is not an Oracle-specific way of thinking.

Basically, you have two types of backups, cold and hot. Cold backups require that the database be down. Hot backups can be performed while the database is up and running. A cold backup is the easiest, but has costly downtime. A hot backup is more complex, but lets you leave the database up and running.

A cold backup is real easy. You peform these basic steps:

1. Shutdown the database (IMMEDIATE or NORMAL option).
2. Use OS commands or utilities to copy the database datafiles and control files to your backup destination.
3. Startup the database.

The larger your database, the longer step 2 will take. Therefore, the more downtime you will require for a cold backup. For large databases, this can be too costly. So a hot backup must be performed.

A hot backup will still use OS command or utilities to copy the database datafiles and control files to the backup destination.

However, these files are "active". In the middle of copying a datafile, the database can make changes to that datafile. This results in a backup that is said to be "inconsistent". You will need a method to resolve the inconsistencies in order to be able to recover from your backup. The Oracle mechanism to resolve these inconsistencies is the archived redo logs. This is why your database must be in ArchiveLog mode in order to take a hot backup. To take a hot backup, the procedure is basically as follows:

1. Place your tablespaces in backup mode with the ALTER TABLESPACE BEGIN BACKUP command.
2. Use OS commands or utilities to copy the database datafiles and control files to your backup destination.
3. Take the tablespaces out of backup mode with the ALTER TABLESPACE END BACKUP command.

Those are the basics for hot and cold backups. Oracle has a nice utility called Recovery Manager (RMAN), which can handle both cold and hot backups. And you can use RMAN through Oracle's Enterprise Manager (OEM) for GUI-based backups.

I would highly recommend that you purchase a copy of the "Oracle Backup and Recovery Handbook" by Velpuri and Adkoli on Oracle Press. It contains lots of information on how to backup your Oracle databases, including many examples. Furthermore, it covers many recovery scenarios that you can encounter. You can follow along, simulate the same failures, and practice sound recovery techniques as well. I highly recommend this book for Oracle DBAs.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts