* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download ORACLE DATABASE HIGH AVAILABILITY
Survey
Document related concepts
Serializability wikipedia , lookup
Entity–attribute–value model wikipedia , lookup
Open Database Connectivity wikipedia , lookup
Extensible Storage Engine wikipedia , lookup
Ingres (database) wikipedia , lookup
Microsoft Jet Database Engine wikipedia , lookup
Functional Database Model wikipedia , lookup
Relational model wikipedia , lookup
Concurrency control wikipedia , lookup
Clusterpoint wikipedia , lookup
Database model wikipedia , lookup
Transcript
ORACLE DATABASE HIGH AVAILABILITY 1 OUTLINE I. II. III. Overview Of High Availability Oracle Database High Availability Architecture Determining Your High Availability Requirements 2 OVERVIEW OF HIGH AVAILABILITY What is Availability ? Availability is the degree to which an application, service, or functionality is available upon user demand. Main characteristics of Availability: Reliability: system must have less errors in both hardware and software – including database, web servers, and application. 3 OVERVIEW OF HIGH AVAILABILITY Recoverability: there may have many choices in recovering from a failure. Hence, the most appropriate action is also to satisfy business requirements most Timely error detection: although a system can be recovered from an outage in time manner, time to monitor corrupt components can be costly and cause your SLA (service level agreement) not met. Continuous operation: maintenance activities should be allowed to perform continuous data access with little or no downtime and transparent to end users. 4 OVERVIEW OF HIGH AVAILABILITY • • Importance Of High Availability Support enterprises to gain their competitive advantages by providing capability of continuously accessing to critical business data. Much downtime (surpass the threshold) can cause Direct cost: lost productivity, lost revenue. Indirect cost: damaged customer relationships, bad publicity, and lawsuits. 5 OVERVIEW OF HIGH AVAILABILITY Causes Of Downtime Unplanned: Computer failure Storage failure Human error Data corruption Site failure Planned: System changes Data changes 6 OVERVIEW OF HIGH AVAILABILITY Causes Of Downtime Unplanned: Computer failure A computer failure outage occurs when the system running the database becomes unavailable because it has shut down or is no longer accessible. Example: Database system hardware failure Operating system failure Oracle instance failure Network interface failure 7 OVERVIEW OF HIGH AVAILABILITY Causes Of Downtime Unplanned: Storage failure A storage failure outage occurs when the storage holding some or all of the database contents becomes unavailable because it has shut down or is no longer accessible. Example: Disk drive failure Disk controller failure Storage array failure 8 OVERVIEW OF HIGH AVAILABILITY Causes Of Downtime Unplanned: Human error A human error outage occurs when unintentional or malicious actions are committed that cause data within the database to become logically corrupt or unusable. Example: Dropped database object Inadvertent data changes Malicious data changes 9 OVERVIEW OF HIGH AVAILABILITY Causes Of Downtime Unplanned: Site failure A site failure outage occurs when an event causes all or a significant portion of an application to stop processing or slow to an unusable service level Example: Site-wide network failure Natural disaster Terrorist or malicious attack on operations or the site 10 OVERVIEW OF HIGH AVAILABILITY Causes Of Downtime Planned: System changes Planned system changes occur when performing routine and periodic maintenance operations and new deployments. Example: Adding/removing processors to/from an SMP server Adding/removing nodes to/from a cluster 11 OVERVIEW OF HIGH AVAILABILITY Causes Of Downtime Planned: Data changes Planned data changes occur when there are changes to the logical structure or physical organization of Oracle database objects. Example: Table definition changes Creating and rebuilding indexes 12 ORACLE DATABASE HIGH AVAILABILITY ARCHITECTURE Oracle Database 10g Oracle Flashback Technology Automatic Storage Management Recovery Manager Flash Recovery Area Online Reorganization and Redefinition Oracle Database 10g with RAC Oracle Database 10g with Data Guard Oracle Database 10g with RAC and Data Guard – MAA Oracle Database 10g with Streams 13 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY Oracle Flashback Technology *The flashback features offer the capability to query past versions of schema objects, query historical data, perform change analysis. *Flashback technology includes the following features: Oracle Flashback Query Oracle Flashback Versions Query Oracle Flashback Transaction Query Oracle Flashback Table Oracle Flashback Drop Oracle Flashback Database Oracle Flashback Restore Points 14 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY Automatic Storage Management (ASM) ASM spreads files across all available storage and mirror at the database file level rather than the entire disk level. ASM simplifies the processes of setting up mirroring, adding disks, and removing disks Instead of managing hundreds and possibly thousands of files (as in a large data warehouse), DBAs using ASM create and administer a larger-grained object— the disk group—which identifies the set of disks that will be managed as a logical unit. 15 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY Automatic Storage Management (ASM) With ASM mirroring, an additional level of data protection can be provided with the use of failures groups. 16 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY ASM Mirroring Options Mirroring Option Description 2-way mirroring Each extent has 1 mirrored copy. 3-way mirroring Each extent has 2 mirrored copies. Unprotected ASM provides no mirroring. Used when mirroring is provided by the disk subsystem itself. 17 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY Mirroring Options for Each Disk Group Type Disk Group Type Supported Mirroring Levels Normal redundancy Default Mirroring Level 2-way 2-way 3-way Unprotected (none) High redundancy 3-way 3-way External redundancy Unprotected (none) Unprotected 18 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY Recovery Manager • • Recovery Manager is an Oracle utility to manage the backup and, more importantly, the recovery of the database. RMAN provides the following benefits: • Automatic failover to a previous backup when the restore operation discovers a missing or corrupt backup. • Automated recovery through a previous point-in-time recovery. • Fast incremental backups using block change tracking. • Retention policy ensures that relevant backups are retained 19 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY Flash Recovery Area The flash recovery area is a unified storage location for all recovery-related files and activities in an Oracle database. All RMAN backups, archive logs, control file autobackups, and datafile copies are automatically written to a specified file system or ASM disk group. 20 STANDARD ORACLE DATABASE 10G HIGH AVAILABILITY Online Reorganization and Redefinition One way to enhance availability and manageability is to allow users full access to the database during a data reorganization operation. Online architecture provides the following benefits: Tables can be reorganized and redefined online: any physical or logical attribute of the table can be changed online. All index operation can be performed online Online move of a partitioned table. 21 ORACLE DATABASE 10G WITH RAC Oracle Database 10g with RAC architecture uses Real Application Clusters and is an inherently high availability system 22 ORACLE DATABASE 10G WITH RAC This architecture provides the following benefits: • • • Fast node (measured in minutes) and instance failover (measured in seconds) Rolling patch upgrades Multiple active instance availability and scalability across multiple nodes 23 ORACLE DATABASE 10G WITH DATA GUARD Data Guard provides a comprehensive set of services that create, maintain, manage, and monitor one or more standby databases to enable Oracle databases to survive disasters and data corruption. Two type of standby databases: • • Physical standby database Logical standby database 24 ORACLE DATABASE 10G WITH DATA GUARD • Physical standby database provide these advantages: Protection from user errors and logical corruption Protection from disasters and site failures if located remotely Standby database can diverge for reporting or testing purposes and resynchronize with its primary database once complete Backups can be taken from the physical standby database instead of the production database, relieving the load on the production database 25 ORACLE DATABASE 10G WITH DATA GUARD • Logical standby database provide these advantages: A logical standby database can be used for other business purposes in addition to disaster recovery. Users can access a logical standby database for queries and reporting purposes. Enable rolling database upgrades of the production database 26 ORACLE DATABASE 10G WITH DATA GUARD 27 ORACLE DATABASE 10G WITH RAC AND DATA GUARD – MAA • • RAC and Data Guard provide the basis of Oracle Database 10g – Maximum Availability Architecture (MAA). Symmetric sites also enable processes and procedures to be kept the same between sites, making operational tasks easier to maintain and execute. 28 ORACLE DATABASE 10G WITH RAC AND DATA GUARD – MAA 29 ORACLE DATABASE 10G WITH STREAMS • • • Oracle Database 10g with Streams provides granularity and control over what is replicated and how it is replicated. It supports bidirectional replication, data transformations, custom apply functions, and heterogeneous platforms It supports different character sets between the primary database and its replicas. 30 ORACLE DATABASE 10G WITH STREAMS 31 DETERMINING YOUR HIGH AVAILABILITY REQUIREMENTS Analysis Framework for Determining High Availability Requirements • • • • Business Impact Analysis Cost of Downtime Recovery Time Objective (RPO) Recovery Point Objective (RTO) 32 DETERMINING YOUR HIGH AVAILABILITY REQUIREMENTS High Availability Architecture Requirements • Service level agreements (SLAs) can categorize businesses into several high availability tiers: Tier 1 business processes have maximum business impact. They have the most stringent high availability requirements, with RTO and RPO close to zero. Tier 2 business processes can have slightly relaxed high availability and RTO/RPO requirements. Tier 3 business processes may be related to internal development and quality assurance processes. 33 DETERMINING YOUR HIGH AVAILABILITY REQUIREMENTS • Planning and Implementing a Highly Available Enterprise 34 ORACLE HIGH AVAILABILITY SOLUTIONS FOR UNPLANNED DOWNTIME Outage Type Oracle Solution Computer failures Fast-Start Fault Recovery RAC Data Guard Oracle Streams Storage failures ASM RMAN with flash recovery area Data Guard Oracle Streams Human errors Oracle security features Oracle Flashback technology LogMiner 35 ORACLE HIGH AVAILABILITY SOLUTIONS FOR UNPLANNED DOWNTIME Outage Type Oracle Solution Data corruption HARD RMAN with flash recovery area Data Guard Oracle Streams Site failures RMAN Data Guard Oracle Streams 36 ORACLE HIGH AVAILABILITY SOLUTIONS FOR PLANNED DOWNTIME Outage Type Oracle Solution System changes – Dynamic Resource Provisioning, Rolling Upgrades Oracle Database 10g RAC Data Guard MAA Oracle Streams Data changes Online Reorganization and Redefinition Oracle Database 10g RAC Data Guard MAA Oracle Streams 37 38