Test the compression ratio of rman compressed backup in Oracle11g Database

Source: Internet
Author: User
This test does not compare data from the time dimension, but simply compares data from the bucket dimension. -- Operating System Environment [Oracle @ 11grac1 ~] $ Uname-aLinux11grac12.6.32-300.10.1.el5uek #1SMPWedFeb2217: 22: 40EST2012i686i686i386GNULinux -- database environment SQLsetpagesize200-SQLcol

This test does not compare data from the time dimension, but simply compares data from the bucket dimension. -- Operating System Environment [Oracle @ 11grac1 ~] $ Uname-a Linux 11grac1 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:22:40 EST 2012 i686 i686 i386 GNU/Linux -- database environment SQL set pagesize 200-SQL col

This test does not compare data from the time dimension, but simply compares data from the bucket dimension.
-- Operating System Environment
[Oracle @ 11grac1 ~] $ Uname-
Linux 11grac1 2.6.32-300.10.1.el5uek #1 SMP Wed Feb 22 17:22:40 EST 2012 i686 i686 i386 GNU/Linux
-- Database environment
SQL> set pagesize: 200-


SQL> col BANNER for a60
SQL> select * from gv $ version where rownumOracle Database 11g Enterprise Edition Release 11.2.0.1.0-
Production
1 PL/SQL Release 11.2.0.1.0-Production
1 CORE 11.2.0.1.0 Production
1 TNS for Linux: Version 11.2.0.1.0-Production
1 NLSRTL Version 11.2.0.1.0-Production
2 Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-
Production
2 PL/SQL Release 11.2.0.1.0-Production
2 CORE 11.2.0.1.0 Production
2 TNS for Linux: Version 11.2.0.1.0-Production
2 NLSRTL Version 11.2.0.1.0-Production
-- Database Archiving
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 2
Next log sequence to archive 3
Current log sequence 3
SQL> show parameter cluster_database;
NAME TYPE VALUE
-----------------------------------------------------------------------------
Cluster_database boolean TRUE
Cluster_database_instances integer 2
-- Current database size
SQL> select sum (bytes)/1024/1024 m from dba_data_files;
M
----------
1195
-- Rman parameter configuration
RMAN> show all;
Using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name RACDB are:
Configure retention policy to redundancy 1; # default
Configure backup optimization off; # default
Configure default device type to disk; # default
Configure controlfile autobackup on;
Configure controlfile autobackup format for device type disk to '% F'; # default
Configure device type disk parallelism 2 backup type to backupset;
Configure datafile backup copies for device type disk to 1; # default
Configure archivelog backup copies for device type disk to 1; # default
Configure maxsetsize to unlimited; # default
Configure encryption for database off; # default
Configure encryption algorithm 'aes128 '; # default
Configure compression algorithm 'basic 'as of release 'default' optimize for load true; # DEFAULT
Configure archivelog deletion policy to none; # default
Configure snapshot controlfile name to '/u01/app/Oracle/product/11.2.0/db_1/dbs/snapcf_racdb1.f'; # default
-- Execute the compressed backup script (only backing up the database)
RMAN> run {
2> allocate channel c1 type disk maxpiecesize = 512 m;
3> allocate channel c2 type disk maxpiecesize = 512 m;
4> backup as compressed backupset database format'/u01/app/backup/db_full _ % U _ % p _ % T _ % s. bak 'tag 'db0 ';
5> backup current controlfile format '/u01/app/backup/contorlfile _ % T _ % U _ % s. ctlbak ';
Release channel c1;
6> 7> release channel c2;
8>}
Released channel: ORA_DISK_1
Released channel: ORA_DISK_2
Allocated channel: c1
Channel c1: SID = 32 instance = racdb1 device type = DISK
Allocated channel: c2
Channel c2: SID = 57 instance = racdb1 device type = DISK
Starting backup at 13-SEP-12
Channel c1: starting compressed full datafile backup set
Channel c1: specifying datafile (s) in backup set
Input datafile file number = 00001 name = + DATA/racdb/system01.dbf
Input datafile file number = 00004 name = + DATA/racdb/users01.dbf
Channel c1: starting piece 1 at 13-SEP-12
Channel c2: starting compressed full datafile backup set
Channel c2: specifying datafile (s) in backup set
Input datafile file number = 00002 name = + DATA/racdb/sysaux01.dbf
Input datafile file number = 00003 name = + DATA/racdb/undotbs01.dbf
Input datafile file number = 00005 name = + DATA/racdb/undotbs02.dbf
Channel c2: starting piece 1 at 13-SEP-12
Channel c2: finished piece 1 at 13-SEP-12
Piece handle =/u01/app/backup/db_full_08nl4lf6_0000000000001_20913_8.bak tag = DBL0 comment = NONE
Channel c2: backup set complete, elapsed time: 00:03:26
Channel c1: finished piece 1 at 13-SEP-12
Piece handle =/u01/app/backup/db_full_07nl4lf6_0000000000001_20913_7.bak tag = DBL0 comment = NONE
Channel c1: backup set complete, elapsed time: 00:04:27
Finished backup at 13-SEP-12
Starting backup at 13-SEP-12
Channel c1: starting full datafile backup set
Channel c1: specifying datafile (s) in backup set
Including current control file in backup set
Channel c1: starting piece 1 at 13-SEP-12
Channel c1: finished piece 1 at 13-SEP-12
Piece handle =/u01/app/backup/contorlfile_20120913_09nl4lnq_000000009.ctlbak tag = TAG20120913T224930 comment = NONE
Channel c1: backup set complete, elapsed time: 00:00:03
Finished backup at 13-SEP-12
Starting Control File and SPFILE Autobackup at 13-SEP-12
Piece handle = + DATA/racdb/autobackup/2012_09_13/s_793925381.271.793925387 comment = NONE
Finished Control File and SPFILE Autobackup at 13-SEP-12
Released channel: c1
Released channel: c2
-- View the backup size
[Oracle @ 11grac1 backup] $ pwd
/U01/app/backup
[Oracle @ 11grac1 backup] $ ls
Contorlfile_20120913_09nl4lnq_1_9.ctlbak db_full_08nl4lf6_1_1_1_1_20913_8.bak
Db_full_07nl4lf6_00000000000020120913_7.bak
[Oracle @ 11grac1 backup] $ du-sh
269 M.
-- Execute a non-compressed backup script (only backing up the database)
RMAN> run {
2> allocate channel c1 type disk maxpiecesize = 512 m;
3> allocate channel c2 type disk maxpiecesize = 512 m;
4> backup as backupset database format'/u01/app/backup/db_full _ % U _ % p _ % T _ % s. bak 'tag 'db0 ';
5> backup current controlfile format '/u01/app/backup/contorlfile _ % T _ % U _ % s. ctlbak ';
6> release channel c1;
7> release channel c2;
} 8>
Released channel: ORA_DISK_1
Released channel: ORA_DISK_2
Allocated channel: c1
Channel c1: SID = 32 instance = racdb1 device type = DISK
Allocated channel: c2
Channel c2: SID = 57 instance = racdb1 device type = DISK
Starting backup at 13-SEP-12
Channel c1: starting full datafile backup set
Channel c1: specifying datafile (s) in backup set
Input datafile file number = 00001 name = + DATA/racdb/system01.dbf
Input datafile file number = 00004 name = + DATA/racdb/users01.dbf
Channel c1: starting piece 1 at 13-SEP-12
Channel c2: starting full datafile backup set
Channel c2: specifying datafile (s) in backup set
Input datafile file number = 00002 name = + DATA/racdb/sysaux01.dbf
Input datafile file number = 00003 name = + DATA/racdb/undotbs01.dbf
Input datafile file number = 00005 name = + DATA/racdb/undotbs02.dbf
Channel c2: starting piece 1 at 13-SEP-12
Channel c1: finished piece 1 at 13-SEP-12
Piece handle =/u01/app/backup/db_full_0bnl4lsf_00000000000020120913_11.bak tag = DBL0 comment = NONE
Channel c1: starting piece 2 at 13-SEP-12
Channel c1: finished piece 2 at 13-SEP-12
Piece handle =/u01/app/backup/db_full_0bnl4lsf_2_1_2_20120913_11.bak tag = DBL0 comment = NONE
Channel c1: backup set complete, elapsed time: 00:02:42
Channel c2: finished piece 1 at 13-SEP-12
Piece handle =/u01/app/backup/db_full_0cnl4lsg_0000000000001_20913_12.bak tag = DBL0 comment = NONE
Channel c2: backup set complete, elapsed time: 00:02:51
Finished backup at 13-SEP-12
Starting backup at 13-SEP-12
Channel c1: starting full datafile backup set
Channel c1: specifying datafile (s) in backup set
Including current control file in backup set
Channel c1: starting piece 1 at 13-SEP-12
Channel c1: finished piece 1 at 13-SEP-12
Piece handle =/u01/app/backup/contorlfile_20120913_0dnl4m21_0000000013.ctlbak tag = TAG20120913T225456 comment = NONE
Channel c1: backup set complete, elapsed time: 00:00:03
Finished backup at 13-SEP-12
Starting Control File and SPFILE Autobackup at 13-SEP-12
Piece handle = + DATA/racdb/autobackup/2012_09_13/s_793925708.270.793925713 comment = NONE
Finished Control File and SPFILE Autobackup at 13-SEP-12
Released channel: c1
Released channel: c2
-- View the backup size
[Oracle @ 11grac1 backup] $ rm-rf *
[Oracle @ 11grac1 backup] $ du-sh
969 M.
-- 11 GB compression backup Efficiency Comparison
Whether to compress the backup (unit: MB) the ratio of non-compressed backup (unit: MB)
Library size 1195 1195 1
Backup File Size 269 969 3.6
Rate 0.23 0.81 3.52

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.