合 Oracle DBA面试笔试之高可用DG灾备系列
- 在Oracle中,什么是DG?DG有哪些优缺点?
- 在Oracle中,请简单描述DG的架构。
- 在Oracle中,有哪几种类型的DG?
- 在Oracle中,搭建物理DG需要注意的地方有哪些?
- 在Oracle中,将一个物理DG转换为逻辑DG有哪些步骤呢?
- 在Oracle中,物理DG和快照DG相互转换的步骤有哪些?
- 在Oracle的DG中,RFS、LNSn、MRP、LSP进程的作用分别是什么?
- 在Oracle的DG中,有哪些重要的参数,它们分别代表什么含义?
- 在Oracle中,DG有哪3种保护模式?
- 在Oracle的DG中,Switchover和Failover的区别有哪些?
- 在Oracle中,如果主库丢失归档文件,那么物理DG如何恢复?
- 在Oracle中,备库数据文件异常,物理DG如何恢复?
- 在Oracle中,DG中GAP有几种解决方案?
- 在Oracle中,DG中常常用到的比较有用的性能视图有哪些?
- 在Oracle中,物理DG维护中常用到的SQL语句有哪些?
- 在Oracle中,逻辑DG维护中常用到的SQL语句有哪些?
- 在Oracle中,RAC、DG和OGG的区别有哪些?
- 其它DG基础知识
- 一:请描述Oracle Data Guard优点有哪些
- 二:请描述DG备库类型和特点
- 三:请描述如何将物理备用数据库转换为快照备用数据库;
- 四:请描述如何将快照备用数据库转换为物理备用数据库;
- 五:请描述DG环境需要配置哪些参数;
- 六:请描述如果DG备库服务器要回收,如何关闭DG同步关系;
- 七:请描述在DG执行SWITCHOVER前需要注意什么;
- 八:请描述在DG主、备库都是二节点RAC的场景下,执行SWITCHOVER的过程;
- 九:请描述Oracle DG FAILOVER过程;
- 十:请描述Oracle DG GAP问题处理方法;
- 十一:请描述Oracle DG有哪些进程;
- 十二:请描述Oracle DG常用命令。
- 参考
在Oracle中,什么是DG?DG有哪些优缺点?
在Oracle中,请简单描述DG的架构。
在Oracle中,有哪几种类型的DG?
在Oracle中,搭建物理DG需要注意的地方有哪些?
在Oracle中,将一个物理DG转换为逻辑DG有哪些步骤呢?
⊙ 在Oracle中,将一个物理DG转换为逻辑DG有哪些步骤呢?
在Oracle中,物理DG和快照DG相互转换的步骤有哪些?
⊙ 在Oracle中,物理DG和快照DG相互转换的步骤有哪些?
在Oracle的DG中,RFS、LNSn、MRP、LSP进程的作用分别是什么?
⊙ 在Oracle的DG中,RFS、LNSn、MRP、LSP进程的作用分别是什么?
在Oracle的DG中,有哪些重要的参数,它们分别代表什么含义?
⊙ 在Oracle的DG中,有哪些重要的参数,它们分别代表什么含义?
在Oracle中,DG有哪3种保护模式?
在Oracle的DG中,Switchover和Failover的区别有哪些?
⊙ 在Oracle的DG中,Switchover和Failover的区别有哪些?
在Oracle中,如果主库丢失归档文件,那么物理DG如何恢复?
⊙ 在Oracle中,如果主库丢失归档文件,那么物理DG如何恢复?
在Oracle中,备库数据文件异常,物理DG如何恢复?
在Oracle中,DG中GAP有几种解决方案?
在Oracle中,DG中常常用到的比较有用的性能视图有哪些?
⊙ 在Oracle中,DG中常常用到的比较有用的性能视图有哪些?
在Oracle中,物理DG维护中常用到的SQL语句有哪些?
⊙ 在Oracle中,物理DG维护中常用到的SQL语句有哪些?
在Oracle中,逻辑DG维护中常用到的SQL语句有哪些?
⊙ 在Oracle中,逻辑DG维护中常用到的SQL语句有哪些?
在Oracle中,RAC、DG和OGG的区别有哪些?
其它DG基础知识
https://www.xmmup.com/oracle-11g-dataguardjichuzhishi.html
1 2 3 4 5 6 7 8 9 10 11 12 | 一:请描述Oracle Data Guard优点有哪些; 二:请描述DG备库类型和特点; 三:请描述如何将物理备用数据库转换为快照备用数据库; 四:请描述如何将快照备用数据库转换为物理备用数据库; 五:请描述DG环境需要配置哪些参数; 六:请描述如果DG备库服务器要回收,如何关闭DG同步关系; 七:请描述在DG执行SWITCHOVER前需要注意什么; 八:请描述在DG主、备库都是二节点RAC的场景下,执行SWITCHOVER的过程; 九:请描述Oracle DG FAILOVER过程; 十:请描述Oracle DG GAP问题处理方法; 十一:请描述Oracle DG有哪些进程; 十二:请描述Oracle DG常用命令。 |
一:请描述Oracle Data Guard优点有哪些
1 2 3 | Summary of Oracle Data Guard Benefits Oracle Data Guard提供了一个高效、全面的灾难恢复和高可用性解决方案。 Oracle Data Guard provides an efficient and comprehensive disaster recovery and high availability solution. |
Oracle Data Guard提供以下好处:
Oracle Data Guard offers these benefits:
1.高可用性
1 2 3 | High availability Oracle Data Guard易于管理的switchover和failover功能允许在主数据库和备用数据库之间进行角色转换,从而最大限度地减少主数据库在计划内和计划外停机时的停机时间。 Oracle Data Guard’s easy-to-manage switchover and failover capabilities allow role reversals between primary and standby databases, minimizing the downtime of the primary database for planned and unplanned outages. |
2.完整的数据保护
1 2 3 4 5 6 7 8 9 10 11 12 13 | Complete data protection Oracle Data Guard可以确保零数据丢失,即使在遇到意外情况时也是如此。 Oracle Data Guard can ensure zero data loss, even in the face of unforeseendisasters. 备用数据库可防止所有类型的计划外停机,包括数据损坏和管理错误。 A standby database provides a safeguard against unplanned outages of all types, including data corruption and administrative error. 因为从主数据库接收的重做数据在备用数据库中进行验证,所以主数据库中可能发生的物理损坏不会传播到备用数据库。 Because the redo data received from a primary database is validated at a standby database, physical corruptions that can occur at a primary database are not propagated to the standby database. 在备用数据库上执行的附加验证还可以防止逻辑块内损坏和丢失写入损坏传播到备用数据库。 Additional validation performed at a standby database also prevents logical intra-block corruptions and lost-write corruptions from propagating to the standby. 类似地,管理错误(如存储管理员意外删除文件)不会传播到备用数据库。 Similarly, administrative errors such as accidental file deletions by a storage administrator are not propagated to a standby database. 物理备用数据库也可用于防止用户错误,方法是延迟重做应用,或使用闪回数据库倒回备用数据库并提取数据的良好副本。 A physical standby database can also be used to protect against user errors either by delaying the redo apply or by using Flashback Database to rewind the standby and extract a good copy of the data. |
3.有效利用系统资源
1 2 3 | Efficient use of system resources 使用从主数据库接收的重做数据更新的备用数据库表可用于其他任务,如备份、报告、汇总和查询,从而减少执行这些任务所需的主数据库工作负载,节省宝贵的CPU和I/O周期。 The standby database tables that are updated with redo data received from the primary database can be used for other tasks such as backups, reporting,summations, and queries, thereby reducing the primary database workloadnecessary to perform these tasks, saving valuable CPU and I/O cycles. |
4.数据保护的灵活性,以平衡可用性和性能要求
1 2 3 | Flexibility in data protection to balance availability against performance requirements Oracle Data Guard提供了最大保护、最大可用性和最大性能模式,帮助企业平衡数据可用性和系统性能需求。 Oracle Data Guard offers maximum protection, maximum availability, and maximum performance modes to help enterprises balance data availability against system performance requirements. |
5.自动gap检测和解决
1 2 3 4 5 6 7 8 9 | Automatic gap detection and resolution 如果主数据库和一个或多个备用数据库之间的连接丢失(例如,由于网络问题), If connectivity is lost between the primary and one or more standby databases (for example, due to network problems), 这样,在主数据库上生成的重做数据就不能发送到那些备用数据库。 then redo data being generated on the primary database cannot be sent to those standby databases. 重新建立连接后,Oracle Data Guard会自动检测到丢失的存档重做日志文件(称为gap),然后将丢失的存档重做日志文件自动传输到备用数据库。 After a connection is reestablished, the missing archived redo log files (referred to as a gap) are automatically detected by Oracle Data Guard, which then automatically transmits the missing archived redo log files to the standby databases. 备用数据库与主数据库同步,无需DBA手动干预。 The standby databases are synchronized with the primary database, without manual intervention by the DBA. |
6.集中化、简单化管理
1 2 3 4 5 | Centralized and simple management Oracle Data Guard broker提供了图形用户界面和命令行界面,用于在DG配置中跨多个数据库自动化管理和操作任务。 代理还监视单个Oracle Data Guard配置中的所有系统。 The Oracle Data Guard broker provides a graphical user interface and a command-line interface to automate management and operational tasks across multiple databases in an Oracle Data Guard configuration. The broker also monitors all of the systems within a single Oracle Data Guard configuration. |
7.与Oracle数据库集成
1 2 3 | Integration with Oracle Database Oracle Data Guard是Oracle Database Enterprise Edition的一项功能,不需要单独安装。 Oracle Data Guard is a feature of Oracle Database Enterprise Edition and does not require separate installation. |
8.自动角色转换
1 2 3 | Automatic role transitions 启用快速启动故障切换后,如果主站点发生灾难,Oracle Data Guard broker将自动故障切换到同步备用站点,而无需DBA干预。此外,应用程序会自动通知角色转换。 When fast-start failover is enabled, the Oracle Data Guard broker automatically fails over to a synchronized standby site in the event of a disaster at the primary site, requiring no intervention by the DBA. In addition, applications are automatically notified of the role transition. |
二:请描述DG备库类型和特点
1 2 3 4 5 | Standby Database Types 备用数据库是Oracle生产数据库的事务一致性副本,它最初是从主数据库的备份副本创建的。 A standby database is a transactionally consistent copy of an Oracle production database that is initially created from a backup copy of the primary database. 一旦创建并配置了备用数据库,Oracle Data Guard就会通过将主数据库redo数据传输到备用系统来自动维护备用数据库,并将redo数据应用到备用数据库。 Once the standby database is created and configured, Oracle Data Guard automatically maintains the standby database by transmitting primary database redo data to the standby system, where the redo data is applied to the standby database. |
备用数据库可以是以下类型之一:物理备用数据库、逻辑备用数据库或快照备用数据库。