备份测试
来源:互联网 发布:淘宝秒杀无门槛券技巧 编辑:程序博客网 时间:2024/06/05 17:05
连接生产库后,计划以下操作!
1 清空以前的配置
select * from v$rman_configuration
rman target / debug trace =b:\backup\rmandebug_log.txt
configure channel device type disk clear --
configure CONTROLFILE AUTOBACKUP OFF; --停止控制文件备份自动
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 --修改成其他数 并行
2 查找文件大小
select file_name,trunc(bytes/1024/1024/1024) from dba_data_files order by 2 desc
3 看闪回区大小
select * from v$parameter where name like '%recovery%'
4 备份到闪回区(2g左右的文件),看看速度
backup datafile &1
select round(bytes / 1024 / 1024, 4) / ((sysdate - OPEN_TIME) * 3600 * 24),
filename,
round(EFFECTIVE_BYTES_PER_SECOND / 1024 / 1024, 4) "MB/S",
round(bytes / 1024 / 1024, 4) MB
from v$backup_async_io
where status = 'IN PROGRESS'
order by filename
查看速度后【获取备份需要的总的时间】,查看步骤5后,持续1分钟后删除备份程序
5 查看等待
select a.BLOCKING_session,a.* from v$session a where blocking_session is not null
select * from v$session where sid in (select BLOCKING_session from v$session a where blocking_session is not null)
6 发现严重等待 立即中止备份
7 备份到b盘同4
backup datafile &1 format 'b:\backup\f_%u_%p_%s'
8 归档备份
直接再生产上启动
rman 可以恢复失败的文件,数据库快,表空间
正常情况下恢复速度是备份的1.5倍
恢复一个表空间,一个快,一个文件和文件大小以及多少有关系
只备份归档日志,也可以防止数据库很多方面的损坏
现在的情况,以及开启归档模式,至少要备份归档日志,合理删除
测试库的备份大的文件是20-30m 每秒
现在生产库的exp 时间是2小时
imp 的时间估计2-4小时
分析跟踪文件,查找原因,结合exp,给出备份方案
1 清空以前的配置
select * from v$rman_configuration
rman target / debug trace =b:\backup\rmandebug_log.txt
configure channel device type disk clear --
configure CONTROLFILE AUTOBACKUP OFF; --停止控制文件备份自动
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 --修改成其他数 并行
2 查找文件大小
select file_name,trunc(bytes/1024/1024/1024) from dba_data_files order by 2 desc
3 看闪回区大小
select * from v$parameter where name like '%recovery%'
4 备份到闪回区(2g左右的文件),看看速度
backup datafile &1
select round(bytes / 1024 / 1024, 4) / ((sysdate - OPEN_TIME) * 3600 * 24),
filename,
round(EFFECTIVE_BYTES_PER_SECOND / 1024 / 1024, 4) "MB/S",
round(bytes / 1024 / 1024, 4) MB
from v$backup_async_io
where status = 'IN PROGRESS'
order by filename
查看速度后【获取备份需要的总的时间】,查看步骤5后,持续1分钟后删除备份程序
5 查看等待
select a.BLOCKING_session,a.* from v$session a where blocking_session is not null
select * from v$session where sid in (select BLOCKING_session from v$session a where blocking_session is not null)
6 发现严重等待 立即中止备份
7 备份到b盘同4
backup datafile &1 format 'b:\backup\f_%u_%p_%s'
8 归档备份
直接再生产上启动
rman 可以恢复失败的文件,数据库快,表空间
正常情况下恢复速度是备份的1.5倍
恢复一个表空间,一个快,一个文件和文件大小以及多少有关系
只备份归档日志,也可以防止数据库很多方面的损坏
现在的情况,以及开启归档模式,至少要备份归档日志,合理删除
测试库的备份大的文件是20-30m 每秒
现在生产库的exp 时间是2小时
imp 的时间估计2-4小时
分析跟踪文件,查找原因,结合exp,给出备份方案
- 备份测试
- 备份测试的测试点
- 测试邮件备份blog~~
- RMAN备份恢复测试
- 服务器定时备份测试
- oracle 热备份测试
- xtrabackup备份恢复测试
- RMAN备份测试
- MySql备份测试
- xtrabackup备份恢复测试
- postgresql pg_dump备份测试
- xtrabackup备份恢复测试
- xtrabackup备份恢复测试
- xfsdump备份测试
- 测试博客内容备份
- Mysql备份延迟测试
- Oracle备份与恢复测试
- DB2 备份 恢复 详细测试
- 数据库系统原理导图总结
- Eclipse this compilation is not on the build path of a java project
- 开发环境的建立:
- linux统一备份脚本
- SDRM/DDR 寻址
- 备份测试
- 用控件(CMSComm)进行串口编程
- App Store 审核指南(中文版)
- 全面解析Unity3D自动生成的脚本工程文件
- java Https 相关资料
- Linux驱动开发环境配置(内核源码树构造)
- 客户端写接口其中模拟post提交
- linux 下怎样查看网卡是否支持混杂(promisc)模式
- spring 事务配置五种方式