rman压缩比测试
来源:互联网 发布:膝盖伸直有响声 知乎 编辑:程序博客网 时间:2024/05/17 22:49
==>实验环境
10g R2
操作系统是redhat 5.5
数据文件全部存放在ASM下
==>查看数据数据占用的磁盘空间
SQL> select sum(bytes)/1024/1024/1024 "DATA_BYTES(GB)" from dba_segments;
DATA_BYTES(GB)
--------------
1.17108154
不做压缩的全库备份,不备归档
#!/bin/bash
. /etc/profile
. ~/.bash_profile
date
rman target / <<EOF
run
{
ALLOCATE CHANNEL 'ch00' TYPE DISK;
backup database format='/tmp/rman_backup/rman_backup_%s_%t.data';
RELEASE CHANNEL ch00;
}
EOF
date
==>备份后的备份集信息
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
16 Full 1.55G DISK 00:01:15 29-APR-14 ==>非压缩备份数据文件大小
BP Key: 16 Status: AVAILABLE Compressed: NO Tag: TAG20140429T103227==>Compressed: NO 说明是非压缩备份
Piece Name: /tmp/rman_backup/rman_backup_18_846153147.data
List of Datafiles in backup set 16
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/system.256.835611829
2 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/undotbs1.258.835611831
3 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/sysaux.257.835611829
4 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/users.259.835611833
5 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/example.269.835611969
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
17 Full 7.11M DISK 00:00:01 29-APR-14
BP Key: 17 Status: AVAILABLE Compressed: NO Tag: TAG20140429T103227
Piece Name: /tmp/rman_backup/rman_backup_19_846153223.data
Control File Included: Ckp SCN: 2632341 Ckp time: 29-APR-14
SPFILE Included: Modification time: 29-APR-14
做压缩的全库备份,不备归档
#!/bin/bash
. /etc/profile
. ~/.bash_profile
date
rman target / <<EOF
run
{
ALLOCATE CHANNEL 'ch00' TYPE DISK;
backup as compressed backupset database format='/tmp/rman_backup/rman_backup_compressed_%s_%t.data';
RELEASE CHANNEL ch00;
}
EOF
date
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
18 Full 328.38M DISK 00:00:53 29-APR-14 ==>压缩后的备份集大小
BP Key: 18 Status: AVAILABLE Compressed: YES Tag: TAG20140429T103607==>Compressed: YES说明是压缩备份
Piece Name: /tmp/rman_backup/rman_backup_compressed_20_846153367.data
List of Datafiles in backup set 18
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/system.256.835611829
2 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/undotbs1.258.835611831
3 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/sysaux.257.835611829
4 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/users.259.835611833
5 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/example.269.835611969
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
19 Full 1.06M DISK 00:00:01 29-APR-14
BP Key: 19 Status: AVAILABLE Compressed: YES Tag: TAG20140429T103607
Piece Name: /tmp/rman_backup/rman_backup_compressed_21_846153425.data
Control File Included: Ckp SCN: 2632477 Ckp time: 29-APR-14
SPFILE Included: Modification time: 29-APR-14
其备份集数据分析
非压缩rman备份集大小:1.55GB
压缩rman备份集大小:328.38MB
==>压缩比例:4.8:1,说明压缩比例很高
10g R2
操作系统是redhat 5.5
数据文件全部存放在ASM下
==>查看数据数据占用的磁盘空间
SQL> select sum(bytes)/1024/1024/1024 "DATA_BYTES(GB)" from dba_segments;
DATA_BYTES(GB)
--------------
1.17108154
不做压缩的全库备份,不备归档
#!/bin/bash
. /etc/profile
. ~/.bash_profile
date
rman target / <<EOF
run
{
ALLOCATE CHANNEL 'ch00' TYPE DISK;
backup database format='/tmp/rman_backup/rman_backup_%s_%t.data';
RELEASE CHANNEL ch00;
}
EOF
date
==>备份后的备份集信息
RMAN> list backup;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
16 Full 1.55G DISK 00:01:15 29-APR-14 ==>非压缩备份数据文件大小
BP Key: 16 Status: AVAILABLE Compressed: NO Tag: TAG20140429T103227==>Compressed: NO 说明是非压缩备份
Piece Name: /tmp/rman_backup/rman_backup_18_846153147.data
List of Datafiles in backup set 16
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/system.256.835611829
2 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/undotbs1.258.835611831
3 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/sysaux.257.835611829
4 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/users.259.835611833
5 Full 2632311 29-APR-14 +DATA_DG/orcl/datafile/example.269.835611969
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
17 Full 7.11M DISK 00:00:01 29-APR-14
BP Key: 17 Status: AVAILABLE Compressed: NO Tag: TAG20140429T103227
Piece Name: /tmp/rman_backup/rman_backup_19_846153223.data
Control File Included: Ckp SCN: 2632341 Ckp time: 29-APR-14
SPFILE Included: Modification time: 29-APR-14
做压缩的全库备份,不备归档
#!/bin/bash
. /etc/profile
. ~/.bash_profile
date
rman target / <<EOF
run
{
ALLOCATE CHANNEL 'ch00' TYPE DISK;
backup as compressed backupset database format='/tmp/rman_backup/rman_backup_compressed_%s_%t.data';
RELEASE CHANNEL ch00;
}
EOF
date
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
18 Full 328.38M DISK 00:00:53 29-APR-14 ==>压缩后的备份集大小
BP Key: 18 Status: AVAILABLE Compressed: YES Tag: TAG20140429T103607==>Compressed: YES说明是压缩备份
Piece Name: /tmp/rman_backup/rman_backup_compressed_20_846153367.data
List of Datafiles in backup set 18
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/system.256.835611829
2 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/undotbs1.258.835611831
3 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/sysaux.257.835611829
4 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/users.259.835611833
5 Full 2632443 29-APR-14 +DATA_DG/orcl/datafile/example.269.835611969
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
19 Full 1.06M DISK 00:00:01 29-APR-14
BP Key: 19 Status: AVAILABLE Compressed: YES Tag: TAG20140429T103607
Piece Name: /tmp/rman_backup/rman_backup_compressed_21_846153425.data
Control File Included: Ckp SCN: 2632477 Ckp time: 29-APR-14
SPFILE Included: Modification time: 29-APR-14
其备份集数据分析
非压缩rman备份集大小:1.55GB
压缩rman备份集大小:328.38MB
==>压缩比例:4.8:1,说明压缩比例很高
0 0
- rman压缩比测试
- 哈夫曼编码压缩解压缩实现&不同类型文件压缩比的测试
- iLBC 压缩比
- 图像压缩比
- Oracle RMAN测试
- RMAN备份恢复测试
- RMAN兼容性测试
- rman测试系列一
- RMAN备份测试
- rman备份本地测试可用性
- ORACLE RMAN恢复测试脚本
- linux常用压缩比测评
- linux常用压缩比测评
- phpzip压缩,指定压缩比
- RMAN研究之测试时间点恢复
- ORACLE RMAN 增量备份完整恢复测试
- RMAN 增量备份 的 对象测试
- 130506rman恢复测试,四种场景
- 第五章
- java读取TXT文件的方法
- Ubuntu14.04下谷歌浏览器安装Flash插件
- 创建或修改配置文件
- Android中layout_gravity与gravity及layout_weight的使用
- rman压缩比测试
- Linux下的实时流媒体编程
- 【教程】【多图详解】如何在Eclipse中离线安装ADT(Android Development Tools)
- IOS开发之所有类型的UIKeyboardType图片展示
- Ubuntu下安装JDK1.8并配置开发环境
- 一个简单的HTML病毒分析
- “不愧第一” 彩妆巨头盛赞FineReport
- 通过XShell链接虚拟机的CentOS
- RTP/RTCP流媒体服务器技术研究