Summary of Backup Steps
----------------------------
1. Put the database in hot backup mode.
2. Copy all database datafiles to a backup location.
3. Take the database out of hot backup mode.
4. Force a log switch.
5. Backup the archived redo logs.
sqlplus / as sysdba
SQL> alter database begin backup;
SQL> host cp /u01/app/oracle/oradata/orcl1/*.dbf /u01/oracle/orabackup/orcl1/hot/*.*
SQL> alter database end backup;
SQL> alter system switch logfile;
optional -> SQL> alter system archive log all;
SQL > host cp /u01/oracle/arch/orcl1/* /u01/oracle/orabackup/orcl1/hot/*
SQL> alter database backup controlfile to trace;
SQL> alter database backup controlfile to '/u01/oracle/orabackup/orcl1/hot/control1.bak';
-------------------------------------------------------
- Suresh
Showing posts with label Summary of Steps for Oracle 11g Hot (Online) Backup. Show all posts
Showing posts with label Summary of Steps for Oracle 11g Hot (Online) Backup. Show all posts
Saturday, September 26, 2009
Subscribe to:
Posts (Atom)
