Professional Documents
Culture Documents
Agenda
Oracle Data Guard a Quick Introduction Data Guard Features in Oracle Database 10g Customer Success Story Sun Microsystems Summary & Q/A
Production Database
Network
Broker
SQL Apply
Backup
DIGITAL DATA STORAGE
Physical Standby Database is a block-for-block copy of the primary database Uses the database recovery functionality to apply changes Can be opened in read-only mode for reporting/queries Can also be used for backups, offloading production database
Primary Database
Can be queried for reports while logs are being applied via SQL Can create additional indexes and materialized views for better query performance
Agenda
Oracle Data Guard a Quick Introduction Data Guard Features in Oracle Database 10g Customer Success Story Sun Microsystems Summary & Q/A
Overview of Objectives
Ease of use simplified SQL, easy to create, manage and administer standby databases, simplified GUI focused on best practices Low cost businesses can leverage existing resources to implement Data Guard, zero integration costs Comprehensive feature-rich and flexible Reliable a rock-solid solution for protection of mission critical business data
In Oracle9i Data Guard this apply has to wait till an archivelog is created on the standby database
When real time apply is enabled, RECOVERY_MODE column in V$ARCHIVE_DEST_STATUS displays MANAGED REAL TIME APPLY
Oracle Net
LGWR
RFS
ARCH
Standby Database
Delayed Apply
Log apply may be delayed to protect from user errors but: Switchover/Failover gets delayed Reports run on old data After failing over to standby, production DB must be rebuilt
Flashback Database
A new strategy for point in time recovery Eliminate the need to restore a whole database backup Integrated seamlessly with RMAN
Its fast - recover in minutes, not hours Its easy - single command restore
Standby Database
No Delay!
Flashback Log
Flashback Log
Flashback DB removes the need to delay application of logs Flashback DB removes the need to reinstantiate primary after failover Real-time apply enables real-time reporting on standby
Rolling Upgrades
Upgrade Redo
A B
Clients
Logs Queue
Version X 1
Version X 2
X+1
Redo Upgrade
A B A
Redo
B
X+1
X+1 3
X+1
4 Switchover to B, upgrade A
Multi-byte CLOB NCLOB LONG LONG RAW BINARY_FLOAT BINARY_DOUBLE IOT-s (without overflows and without LOB columns)
Allows logical standby databases to recover and protect a wider variety of data, thus increasing the overall database protection and recovery options for Data Guard
Ease of use Management based on best practices Pre-built integration with other HA features
RAC Primary
Instance specific
Switched!
Agenda
Oracle Data Guard a Quick Introduction Data Guard & Features in Oracle Database 10g Customer Success Story Sun Microsystems Summary & Q/A
Case Study
Oracle Data Guard at Sun Microsystems
Darl Kuhn Senior DBA, Staff Engineer
Business decision considerations Architecture Implementation Features we use
Project Requirements
Patch and Knowledge databases for Sun Support Services 7x24 High Availability
Disaster Recovery (DR) protection Do more with less resources Minimize costs Minimize complexity
Solutions We Investigated
Backup the database, restore from tape Operating System failover Remote Mirroring Quests SharePlex Oracle Advanced Replication (OAR) Oracle Real Application Clusters (RAC) Oracle Data Guard (Standby)
Implementation Decisions
Which data protection mode?
We chose Maximum Performance Two identical servers Directory structures the same Database name the same Introduce a delay in application of redo
Maximum Performance
Primary Database Production Site
.
Users
Primary Database
LGWR
Managed Recovery Process (MRP)
On-line Online Redo Redo
ARCn
Standby Database
Database Architecture
50M archive redo logs 1 Gig of redo per day Primary in Colorado Standbys in North Carolina, Holland and Singapore Database size currently 60 Gig Hardware Sun 6500, 280R, 4500 Storage T3 partner pair fiber channel
a) RMAN> backup database; b) Copy backup pieces to Standby c) Create a Standby controlfile and copy to Standby
Then on Standby: a) b) c) d) SQL> startup nomount; SQL> alter database mount standby database; RMAN> restore database; SQL> alter database recover managed standby database disconnect;
In Data Guard 10g, the startup will put the Standby into read-only mode
SQL> startup;
Troubleshooting
$ tail f alert_BRDSTN.log
To disable delay:
SQL> alter database recover managed standby database nodelay;
Create two (or more) Standby databases Shut down one at a time, apply redo
Oracle Net
Primary Database
Disaster Happens
Havent had a complete disaster yet We have had bad hardware cause failovers We were able to easily failover to Standby
SQL> alter database activate standby database;
In Data Guard 9i, we keep 9i Primary init.ora on Standby In Data Guard 10g, VALID_FOR eliminates this need
What if network or server is down? After failure resolution, how is the standby caught up?
Data Guard has automatic methods for gap resolution Fetch Archive Log (FAL) processes In our experience, very reliable
On standby the tablespace HRM_SALA will be automatically dropped and all datafiles will be deleted from disk Note: If you rename a datafile, DBA must intervene
Agenda
Oracle Data Guard a Quick Introduction Data Guard & Features in Oracle Database 10g Customer Success Story Sun Microsystems Summary & Q/A
General Data Guard configuration Redo data transport mechanisms Protection modes Switchover/Failover Media recovery SQL Apply configuration Network configuration Integration with other HA technologies
White papers1:
MAA detailed Media Recovery Site/Network configuration Fast-Start Checkpointing SQL Apply Best Practices Role Management
Government
Customer Testimonials
Data Guard automates disaster-recovery procedures and reduces Fidelity's exposure to data loss by an order of magnitude compared to previous approaches.
Jonathan Schapiro Vice President Data Architecture & Services Global Equity Trading & Technology
Customer Testimonials
We needed to consider the safe-keeping of our data, but we also needed to look at cost. Oracle Data Guard provides everything for a high availability solution at a lower cost than other alternatives
Customer Testimonials
We don't have to baby-sit it it just works!
Darl Kuhn Senior DBA & Staff Engineer Database Services Sun Services Global Engineering
2.
3.
4. 5. 6.
Of Course
Complete, out-of-the-box
integration with Oracle
database, at no extra
cost!
Resources
Maximum Availability Architecture white papers:
http://otn.oracle.com/deploy/availability/htdocs/maa.htm
Next Steps
High Availability Sessions from Oracle
Tuesday in Moscone Room 304
11:00 AM
How Oracle Database 10g Revolutionizes Availability and Enables the Grid
3:30 PM
Next Steps
High Availability Sessions from Oracle
Thursday
8:30 AM in Moscone Room 304
Database HA Demos All Four Days In The Oracle Demo Campground Real Application Clusters Data Guard Database Backup & Recovery Flashback Recovery
Oracle Database 10g Data Warehouse Backup and Recovery: Automatic, Simple, Reliable
8:30 AM in Moscone Room 104
Reminder please complete the OracleWorld online session survey Thank you.
QUESTIONS ANSWERS