Home > Ask the Oracle Database / Applications Experts > Oracle database backup and recovery Questions & Answers > Taking hot, cold and RMAN backups on Linux and Windows
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Taking hot, cold and RMAN backups on Linux and Windows

Brian Peasland1 EXPERT RESPONSE FROM: Brian Peasland1

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


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 07 September 2005
How do I take the hot backup, cold backup and RMAN backup on Linux and Windows servers? Please tell me the exact steps.


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



RELATED CONTENT
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

Oracle on Linux
Oracle virtualization introduction guide
What Linux flavor should I use for my Linux proof of concept in Oracle?
Will Sun help Oracle eclipse IBM?
Oracle database in the cloud floated at Harvard lab
E-discovery firm swaps out Microsoft SQL for Oracle RAC
Oracle releases VM virtualization templates, boasts Linux momentum
What happened to Oracle's Red Hat challenge?
Oracle Database 11g makes waves at Burlington Coat Factory
Firm dumps MySQL on Red Hat for Oracle Database on Oracle Linux
Oracle and the rise of the virtual machine

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


The nice thing about RMAN is that you do not need different steps for different platforms. A hot backup is as simple (in Oracle 9i and above) as running the following command in RMAN:

backup database;

The above command assumes that you have configured default channels with the CONFIGURE command. To perform a cold backup, you will want to shut down the database, back it up and then start the database. My old RMAN script to perform a cold backup looks like the following:

run {
shutdown immediate
startup mount
allocate channel t1 type 'SBT_TAPE'
backup full format "%d_FULL_%U" (database) ; 
sql 'alter database open'; release channel t1; }

In the above, I shut down the database and start it in MOUNT mode. I then allocate a channel and back up the database. Once done, I open the database and release the channel.

My script was originally written for Oracle 8i and I have not used it since that version. Oracle 9i and 10g have newer options (such as specifying default channels) so your script may look a little different.




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