1 / 18

面向 Web 的 Oracle 应用

面向 Web 的 Oracle 应用. 第 16 章 配置数据库的备份与恢复. 本章主要内容. Oracle 数据库备份、还原与恢复的基本知识 Oracle 数据库中可能出现的失败类型 实例恢复的调整方式 检查点、重做日志文件以及归档的日志文件的重要性 配置 archivelog 模式 配置数据库的可恢复性. 1 、备份与恢复问题. 服务级别协议 (service level aggrement) MTBF(Mean time between failures) MTTR(Mean time to recovery) 数据损失量 DBA 的目标 增加 MTBF

zea
Télécharger la présentation

面向 Web 的 Oracle 应用

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 面向Web的Oracle应用 第16章 配置数据库的备份与恢复

  2. 本章主要内容 • Oracle数据库备份、还原与恢复的基本知识 • Oracle数据库中可能出现的失败类型 • 实例恢复的调整方式 • 检查点、重做日志文件以及归档的日志文件的重要性 • 配置archivelog模式 • 配置数据库的可恢复性

  3. 1、备份与恢复问题 • 服务级别协议(service level aggrement) • MTBF(Mean time between failures) • MTTR(Mean time to recovery) • 数据损失量 • DBA的目标 • 增加MTBF • 降低MTTR和数据损失量

  4. MTBF的保证机制 • RAC:通过建立在不同机器上的多个实例以保证100%可用性 • Streams

  5. 数据损失量的保证机制 • Data Guard

  6. 2、失败类别 • 语句失败 • 无效数据 • 缺少权限 • 空间分配问题 • 逻辑错误

  7. 用户进程失败 • 用户非登出的异常退出 • 终端的重新启动 • 导致地址违规的程序 • 解决方法:PMON

  8. 网络失败 • 侦听器:工作量有限 • 网络接口卡:多个网卡,每个网卡配置侦听器 • 路由:多个路由器,甚至多条外网通道

  9. 用户错误 • 闪回(flashback):使用撤销数据 • Log miner:使用重做日志 • 不完全恢复或闪回:注意

  10. 介质失败 • 磁盘损坏 • 特殊用户失误

  11. 实例失败 • DBWn与LGWR的效果

  12. 3、实例恢复 • 实例恢复的过程 • 向前回滚 • 未提交事务回滚

  13. 实例恢复不可能导致数据库出现讹误 • 场景:两个会话操作同一组数据 • 1、2都未提交 • 1提交完未写入,2未提交 • 1提交时出现问题,2未提交

  14. 调整实例恢复 • SCN select checkpoint_change# from v$datafile;

  15. 4、MTTR顾问

  16. 5、配置数据库的可恢复性 • 保护控制文件 • 控制文件最多有8个副本 • 控制文件的设置在nomount模式下进行 • Alter system set control_files=“…” scope=spfile

  17. 保护联机重做日志文件 • 为了安全,每组联机重做日志文件组中总是存在至少两个成员 • Archivelog模式与归档器进程

  18. Thank You! 钱剑飞

More Related