In-depth analysis of mongolerman backup-online backup

Source: Internet
Author: User
Mongolerman backup in-depth analysis-online backup, start to execute the actual database backup operation, at this time a log switch (altersystemarchivelogcurrent

Oracle RMAN backup in-depth analysis-online backup, start to execute the actual database backup operation, this will happen a log switch (alter system archivelog current

RMAN> backup database plus archivelog;

This command will trigger the following operations:

1. The process uses the alter system archivelog current command to complete log switching.

2. The process backs up all existing archived and redone logs

3. Start the actual database backup operation. At this time, a log switch (alter system archivelog current) occurs, and RMAN backs up the remaining archived redo logs (use the backup archivelog all command ).

4. Perform automatic backup of control files and server parameter files.

--------------------------------------------------------------------------------

RMAN: Configure an archive log deletion policy

Basic Oracle tutorial-copying a database through RMAN

Reference for RMAN backup policy formulation

RMAN backup learning notes

Oracle Database Backup encryption RMAN Encryption

Installing Oracle 12C in Linux-6-64

Install Oracle 11gR2 (x64) in CentOS 6.4)

Steps for installing Oracle 11gR2 in vmwarevm

Install Oracle 11g XE R2 In Debian

--------------------------------------------------------------------------------

Case:

1. view the log information before backup

17:13:50 SYS @ prod> select group #, sequence #, thread #, status from v $ log;

GROUP # SEQUENCE # THREAD # STATUS

----------------------------------------------

1 16 1 CURRENT

2 14 1 INACTIVE

3 15 1 INACTIVE

Elapsed: 00:00:00. 05

2. perform backup

RMAN> backup database plus archivelog;

Starting backup at 03-jul14

Current log archived

Using channel ORA_DISK_1

Channel ORA_DISK_1: starting archived log backup set

Channel ORA_DISK_1: specifying archived log (s) in backup set

Input archived log thread = 1 sequence = 13 RECID = 41 STAMP = 851966028

Input archived log thread = 1 sequence = 14 RECID = 42 STAMP = 851966028

Input archived log thread = 1 sequence = 15 RECID = 43 STAMP = 851966030

Input archived log thread = 1 sequence = 16 RECID = 44 STAMP = 851966141

Channel ORA_DISK_1: starting piece 1 at 03-JUL-14

Channel ORA_DISK_1: finished piece 1 at 03-JUL-14

Piece handle =/u01/app/oracle/product/11.2.0/db_1/dbs/0kpcfu5t_1_1 tag = TAG20140703T171541 comment = NONE

Channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04

Finished backup at 03-jul14

Starting backup at 03-jul14

Using channel ORA_DISK_1

Channel ORA_DISK_1: starting full datafile backup set

Channel ORA_DISK_1: specifying datafile (s) in backup set

Input datafile file number = 00001 name =/u01/app/oracle/oradata/prod/system01.dbf

Input datafile file number = 00002 name =/u01/app/oracle/oradata/prod/sysaux01.dbf

Input datafile file number = 00008 name =/u01/app/oracle/oradata/prod/perftbs01.dbf

Input datafile file number = 00004 name =/u01/app/oracle/oradata/prod/users01.dbf

Input datafile file number = 00005 name =/u01/app/oracle/oradata/prod/example01.dbf

Input datafile file number = 00007 name =/u01/app/oracle/oradata/prod/undotbs2.dbf

Input datafile file number = 00006 name =/u01/app/oracle/oradata/prod/tbs1.dbf

Input datafile file number = 00003 name =/u01/app/oracle/oradata/prod/undotbs1.dbf

Channel ORA_DISK_1: starting piece 1 at 03-JUL-14

Channel ORA_DISK_1: finished piece 1 at 03-JUL-14

Piece handle =/u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1 tag = TAG20140703T171545 comment = NONE

Channel ORA_DISK_1: backup set complete, elapsed time: 00:01:26

Finished backup at 03-jul14

Starting backup at 03-jul14

Current log archived

Using channel ORA_DISK_1

Channel ORA_DISK_1: starting archived log backup set

Channel ORA_DISK_1: specifying archived log (s) in backup set

Input archived log thread = 1 sequence = 17 RECID = 45 STAMP = 851966231

Channel ORA_DISK_1: starting piece 1 at 03-JUL-14

Channel ORA_DISK_1: finished piece 1 at 03-JUL-14

Piece handle =/u01/app/oracle/product/11.2.0/db_1/dbs/0mpcfu8o_1_1 tag = TAG20140703T171712 comment = NONE

Channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

Finished backup at 03-jul14

Starting Control File and SPFILE Autobackup at 03-JUL-14

Piece handle =/u01/app/oracle/product/11.2.0/db_1/dbs/c-239333010-20140703-00 comment = NONE

Finished Control File and SPFILE Autobackup at 03-JUL-14


3. View alarm logs

[Oracle @ rh6 ~] $ Tail-f/u01/app/oracle/diag/rdbms/prod/trace/alert_prod.log

Current log #1 seq #16 mem #1:/dsk2/oradata/prod/redo01b. log

Thu Jul 03 17:13:50 2014

Archived Log entry 43 added for thread 1 sequence 15 ID 0xfaf1e60 dest 2:

Thu Jul 03 17:15:41 2014

ALTER SYSTEM ARCHIVE LOG

Thu Jul 03 17:15:41 2014

Thread 1 advanced to log sequence 17 (LGWR switch)

Current log #2 seq #17 mem #0:/dsk1/oradata/prod/redo02a. log

Current log #2 seq #17 mem #1:/dsk2/oradata/prod/redo02b. log

Archived Log entry 44 added for thread 1 sequence 16 ID 0xfaf1e60 dest 2:

Thu Jul 03 17:17:11 2014

ALTER SYSTEM ARCHIVE LOG

Thu Jul 03 17:17:11 2014

Thread 1 advanced to log sequence 18 (LGWR switch)

Current log #3 seq #18 mem #0:/dsk1/oradata/prod/redo03a. log

Current log #3 seq #18 mem #1:/dsk2/oradata/prod/redo03b. log

Archived Log entry 45 added for thread 1 sequence 17 ID 0xfaf1e60 dest 2:

4. Log switching information after backup

17:13:56 SYS @ prod> select group #, sequence #, thread #, status from v $ log;

GROUP # SEQUENCE # THREAD # STATUS

----------------------------------------------

1 16 1 INACTIVE

2 17 1 ACTIVE

3 18 1 CURRENT

Elapsed: 00:00:00. 01

5. View backup information

RMAN> list backup of database;

List of Backup Sets

==============================

BS Key Type LV Size Device Type Elapsed Time Completion Time

-------------------------------------------------------------

17 Full 1.13g disk 00:01:21 03-jul14

BP Key: 17 Status: AVAILABLE Compressed: NO Tag: TAG20140703T171545

Piece Name:/u01/app/oracle/product/11.2.0/db_1/dbs/0lpcfu61_1_1

List of Datafiles in backup set 17

File LV Type Ckp SCN Ckp Time Name

---------------------------------

1 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/system01.dbf

2 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/sysaux01.dbf

3 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/undotbs1.dbf

4 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/users01.dbf

5 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/example01.dbf

6 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/tbs1.dbf

7 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/undotbs2.dbf

8 Full 2066885 03-jul14/u01/app/oracle/oradata/prod/perftbs01.dbf

RMAN> list backup of archivelog all;

List of Backup Sets

==============================

BS Key Size Device Type Elapsed Time Completion Time

-------------------------------------------------------

16 31.11 m disk 00:00:01 03-jul14

BP Key: 16 Status: AVAILABLE Compressed: NO Tag: TAG20140703T171541

Piece Name:/u01/app/oracle/product/11.2.0/db_1/dbs/0kpcfu5t_1_1

List of Archived Logs in backup set 16

Thrd Seq Low SCN Low Time Next SCN Next Time

-------------------------------------------------

1 13 2051289 03-jul14 2066660 03-jul14

1 14 2066660 03-jul14 2066663 03-jul14

1 15 2066663 03-jul14 2066666 03-jul14

1 16 2066666 03-jul14 2066878 03-jul14

BS Key Size Device Type Elapsed Time Completion Time

-------------------------------------------------------

18 104.00 k disk 00:00:00 03-jul14

BP Key: 18 Status: AVAILABLE Compressed: NO Tag: TAG20140703T171712

Piece Name:/u01/app/oracle/product/11.2.0/db_1/dbs/0mpcfu8o_1_1

List of Archived Logs in backup set 18

Thrd Seq Low SCN Low Time Next SCN Next Time

-------------------------------------------------

1 17 2066878 03-jul14 2066956 03-jul14

,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.