Oracle 10G Data Guard

Unni Kirandumkara Virginia Community College Systems, ITS 1-(804)-423-5634 ukirandumkara@vccs.edu

Track
• • • • • • • • • • • • Business continuity Data Guard Scalability Data Guard Options Data Guard Layout Physical Standby Protection Modes Logical Standby & Rolling Update Network Bandwidth Role Transitions Fast-Start Fail Over Data Dictionary Physical Standby Setup using OEM 10g Grid. Q&A

Business Continuity
• • • • • Uninterrupted access to Critical Data Reduced Revenue losses Less downtime and Better Productivity Quicker, more cost-effective business resumption following an interruption Peace of mind

Data Guard offers all of the above and a cost effective solution.

Disaster Recovery
• Prepare for the worst.

Data Guard

Oracle Data Guard ensures high availability, data protection, and disaster recovery for enterprise data. Synchronized transactionally consistent copies of the primary database. Data Guard configuration is connected by Oracle Net.

Data Guard Scalability
Data guard broker controlled databases
Standby Database

Up to 9 Standby databases

Primary Database

Data Guard Options
Physical Standby
Redo Apply technology, which applies redo data on the standby database.

Logical Standby
SQL Apply technology, which first transforms the received redo data into SQL statements and then executes the generated SQL statements on the logical standby database.

Data Guard Services
Log Transport Services Control the automated transfer of redo log or archive log data from the primary database to one or more standby database destinations. Also resolves any gaps in the archived redo log files due to network failure

Data Guard Services
Log Apply Services Physical: Apply of redo data on the standby database to maintain transactional synchronization with the primary database. Logical: SQL stream is generated from redo or archive log files and applied to the standby database.

Data Guard Services
Role Management Services Change of role from primary to standby using switch over or failover.

Protection Modes
Maximum Protection
Synchronized Redo write. Primary database shuts down if a fault occurs at write at the standby.

Maximum Availability
Synchronized Redo write. Protection mode temporarily switches over to Maximum performance if write fails at the standby.

Maximum Performance
Asynchronized Redo write.

Max Protection & Max Availability
Online Redo Log files Standby Redo log files

Synchronous Oracle Net Primary Database ARCn RFS
Re al L o t im A pr p p g e o c ly es Standby s Database

ARCn

Redo Logs

Archived redo log files

Archived redo log files

Maximum Performance
Online Redo Log files Standby Redo log files

Asynchronous Oracle Net Primary Database ARCn RFS Standby Database

ly pp s A s og oce L r p

ARCn

Redo Logs

Archived redo log files

Standby Archived redo log files

Logical Standby
Logical standby database is an excellent choice for performing queries, summations, and reporting activities, thereby reducing the load from primary database. SQL Apply supports real-time apply when standby redo log files are present. Integration with Flashback Database to Resolve Logical Failure. Supports Index-organized tables without LOBs or overflow segments. Supports LONG, LONG RAW, and NCLOB columns. Rolling Upgrades with Logical Standby, Metalink doc# 300479.1

Logical Standby : Rolling Upgrade
Supports Database release 10.1.0.3 or later. Database protection mode must be max availability or Max performance. Stop the SQL Apply & Upgrade standby database. Restart SQL Apply & Monitor Database. Role Switch over and repeat the processes.

Network Bandwidth
OLTP redo vs. OLAP redo. How to find peak redo?
Load Profile ~~~~~~~~~~~~ Redo size: Per Second --------------51,944.64 Per Transaction --------------5,177.09

Bandwidth in MBPS = (redo bytes per sec /0.7)8)/1,000,000 T3/DS3 =44.74MBPS or OC3=155 MBPS

Role Transitions

Switch Over
A switchover ensures no data loss. This is typically done for planned maintenance of the primary system.

Fail Over
Failover is performed only in the event of a catastrophic failure of the primary database, and the failover results in a transition of a standby database to the primary role.

Fast-Start Fail Over

Observer Server

IDC

IDC

Primary

Standby

Primary Database

Standby Database

Fast-Start fail over
A feature of Oracle Database Enterprise Edition. Only supports to Maximum Availability Mode. Requires 3rd server. Install DGMGRL client part of Oracle client administrator software. Observer process continuously monitors primary and standby databases. Primary and standby must be running 10.2 database. If the listener is not running on port 1521, local_listener must be set in the spfile.

Fast-Start Failover
• • Observer detects failure. Observer automatically executes database failover once threshold has been exceeded. DB_ROLE_CHANGE trigger fires: enables primary service. This trigger can be customized to restart JDBC mid-tier clients and calls any other OCI enabled application.

Fast-Start Fail Over
Fast
Site failover time measured in seconds, not minutes Failover is automatic, no manual intervention Reliable Eliminates human error Zero data loss failover

Simple
Automatically determines if failover criteria met Original primary database is automatically reinstated as a new standby database following failover

Data Dictionary
• V$DATABASE PROTECTION_LEVEL: current protection mode setting. FS_FAILOVER_STATUS: synchronization status DBA_LOGSTDBY_UNSUPPORTED: unsupported tables. DBA_LOGSTDBY_EVENTS: monitor transaction activity. V$LOG: Redo log changed. V$MANAGED_STANDBY : Recovery progress.

• • • •

Physical Standby Setup

Physical Standby Setup

Physical Standby Setup

Physical Standby Setup

Physical Standby Setup

Physical Standby Setup

Physical Standby Setup

Physical Standby Setup

Physical Standby Setup

Physical Standby

Physical Standby Setup

Physical Standby Setup

Questions & Answers

Unni Kirandumkara Virginia Community College Systems ukirandumkara@vccs.edu

Sign up to vote on this title
UsefulNot useful