Professional Documents
Culture Documents
Oracles Data
Guard
skrueger@us.ibm.com
Take frequent backups of physical Data Files and store them in a safe place, multiple copies if possible Maintain multiple concurrent backups of the Control Files Multiplex the Online Redo Logs Enable ARCHIVELOG mode, archive redo logs to locations that are different than the database files
2009 IBM Corporation
3
Database level; most current point-in-time is the default option Tablespace point-in-time recovery (TSPITR)
A user level recover of one or more tablespaces to a point-in-time that is different from the rest of the database
User Managed: The database is backed up manually using Linux file system commands or shell scripts
Data Guard
Utilizes a set of services to create, maintain, manage, and monitor one or more standby databases to recover and restore from a disaster or data corruption Maintains standby databases as transaction-ally consistent copies of the production database
If the production database becomes unavailable, Data Guard can switch any standby database to the production role, minimizing outage downtime
Data Guard
Comprehensive data protection e.g. data corruptions dont propagate Failover in seconds standby is already synchronized Zero data loss over large distances advantage over array-based mirroring technologies (mirroring by the storage system, not the database)
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
8
As changes (I,U,D) are applied to the Primary database, redo data is generated and written to the local redo log Data Guard transmits that local redo log data to Standby database(s)
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
9
Standby databases: Type of Standby determines sync method w/Primary Like a Primary; can be an Oracle single-instance or Oracle RAC database Physical: On-disk Byte-for-Byte exact copy of the primary database structure. Rowids stay the same in the Physical Standby. Logical: Same logical information as the production, but the physical organization and structure of the data can be different
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
10
Failover
Standby database takes the primary role following a sudden outage Optional ways to execute failovers:
Configure Data Guard to automatically detect primary database failures and execute a failover to the standby database without manual intervention Manually
Once problem corrected, the failed primary can be quickly reinstated as a standby database for the new primary using a;
Oracle Flashback Database which provides database point in time recovery without requiring a backup of the database to first be restored
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
11
Data Guard automatically maintains the standby database from initial creation onward
Standby is a synchronized copy of the Primary database
Redo log records transmitted from primary, are then applied Synchronous or Asynchronous
12
The role of a database can be switched from Primary to Standby and vice versa.
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
13
SQL Apply
Used for Logical Standby Primary database Redo log records are read and SQL statements are constructed, and then applied/executed against the Logical Standby database(s) RW access to Logical Standby
15
continued
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
17
continued
18
Data Guard: Broker Component Configuration Client Side - Components of the Broker
The Data Guard Manager & Command Line Interface (DGMGRL) make up
the client side components of Data Guard Broker.
DGM is a graphical user interface integrated with OEM. It contains wizards to ease the management of a Data Guard configuration.
Example:
Transport Services archives redo data to the PRIMARY database while also transmitting to archived redo STANDBY redo log files at a standby database.
20
Maximum Availability - Similar to the maximum protection mode, including zero data loss, however;
If a standby database becomes unavailable, processing continues on the primary database When the fault is corrected, the standby database is automatically resynchronized with the primary database.
Maximum Performance Lowest level of data protection, but higher available performance mode
The primary database processes transactions, redo data is asynchronously shipped to the standby database. The commit operation of the primary database does not wait for the standby database to acknowledge completing write operations.
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
21
Data Guard
Functional & System Impact Considerations
22
24
Use of the same Oracle software release Same type of operating system, but not necessarily the same version Same hardware and OS architecture (32-bit to 32-bit, etc.) User accounts on both databases must have SYSDBA privileges
Data Guard generally deployed between CECs
2009 IBM Corporation
25
In 10gR2, you can open a physical standby database in read-only mode to allow read-only queries so that server resources are not wasted.
Logical standby used in read/write mode for development, reporting, or testing purposes, and flashed back to a point in the past if need to get a table.
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
26
Recovery Manager (RMAN) & Data Guard are well integrated, and provide:
RMAN DUPLICATE; create a standby from primary database backup Take backups on a physical standby, rather than production database Manage archived redo log files by automatically deleting the archived redo log files used for input after performing a backup
2009 IBM Corporation Oracle on Linux for System z Customer Workshop
27
28
Additional Slides
29
30
31