INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008.

Slides:



Advertisements
Similar presentations
ITEC474 INTRODUCTION.
Advertisements

Database Tuning. Objectives Describe the roles associated with database tuning. Describe the dependency between tuning in different development phases.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Backup and Recovery Copyright System Managers LLC 2008 all rights reserved.
4 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Oracle Architecture. Instances and Databases (1/2)
1 Chapter 15 Duplicating Databases and Transporting Data.
Backup The flip side of recovery. Types of Failures Transaction failure –Transaction must be aborted System failure –Hardware or software problem resulting.
Database Backup and Recovery
Configuring Recovery Manager
4 Copyright © 2008, Oracle. All rights reserved. Configuring Backup Specifications.
9 Copyright © Oracle Corporation, All rights reserved. Oracle Recovery Manager Overview and Configuration.
Module 14: Scalability and High Availability. Overview Key high availability features available in Oracle and SQL Server Key scalability features available.
Oracle Architecture. Database instance When a database is started the current state of the database is given by the data files, a set of background (BG)
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Log File Waits  Redo is written to disk when  User commits  Log Buffer.
Redo Waits Kyle Hailey #.2 Copyright 2006 Kyle Hailey Redo REDO Lib Cache Buffer Cache Locks Network I/O.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Data Guard for RAC migrations WLCG Service Reliability Workshop CERN, November.
Backup Concepts. Introduction Backup and recovery procedures protect your database against data loss and reconstruct the data, should loss occur. The.
Copyright © 2009 Rolta International, Inc., All Rights Reserved Oracle High Availability - A Case Study Rama Balaji Senior Oracle Consultant.
Introduction to Oracle Backup and Recovery
Using RMAN to Perform Recovery
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
13 Copyright © Oracle Corporation, All rights reserved. RMAN Complete Recovery.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
7 Copyright © 2006, Oracle. All rights reserved. Dealing with Database Corruption.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Client-Server – Lecture 4 Copyright System Managers LLC 2007 all rights reserved.
Oracle Database Administration
CHAPTER 2 Implementing a Database. Introduction to Creating Databases After you’ve installed the Oracle software, the next logical step is to create a.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
Basic Oracle Architecture
5 Copyright © 2004, Oracle. All rights reserved. Using Recovery Manager.
5 Copyright © 2008, Oracle. All rights reserved. Using RMAN to Create Backups.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Backup and Recovery Protects From Data Loss. Backup and Recovery Protects From Data Loss Provides for Media Recovery.
11 Copyright © Oracle Corporation, All rights reserved. RMAN Backups.
Backup & Recovery Backup and Recovery Strategies on Windows Server 2003.
By Lecturer / Aisha Dawood 1.  You can control the number of dispatcher processes in the instance. Unlike the number of shared servers, the number of.
11g(R1/R2) Data guard Enhancements Suresh Gandhi
15 Copyright © 2007, Oracle. All rights reserved. Performing Database Backups.
Copyright © Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
An Oracle server:  Is a database management system that provides an open, comprehensive, integrated approach to information management.  Consists.
A Guide to Oracle9i1 Database Instance startup and shutdown.
15 Copyright © Oracle Corporation, All rights reserved. RMAN Incomplete Recovery.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
Mark E. Fuller Senior Principal Instructor Oracle University Oracle Corporation.
ASM General Architecture
Donna C. Hamby Sr. Principal Instructor Oracle University Oracle Corporation.
3 Copyright © 2006, Oracle. All rights reserved. Using Recovery Manager.
10 Copyright © Oracle Corporation, All rights reserved. User-Managed Backups.
CERN - IT Department CH-1211 Genève 23 Switzerland t High Availability Databases based on Oracle 10g RAC on Linux WLCG Tier2 Tutorials, CERN,
CERN IT Department CH-1211 Genève 23 Switzerland t Using Data Guard for hardware migration.
Overview of Oracle Backup and Recovery Darl Kuhn, Regis University.
2 Copyright © 2007, Oracle. All rights reserved. Configuring for Recoverability.
2 Copyright © 2006, Oracle. All rights reserved. Configuring Recovery Manager.
8 Copyright © 2007, Oracle. All rights reserved. Using RMAN to Duplicate a Database.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
5 Copyright © Oracle Corporation, All rights reserved. Usage and Configuration of the Oracle Shared Server.
LHC Logging Cluster Nilo Segura IT/DB. Agenda ● Hardware Components ● Software Components ● Transparent Application Failover ● Service definition.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
9 Copyright © 2004, Oracle. All rights reserved. Incomplete Recovery.
CERN IT Department CH-1211 Genève 23 Switzerland t Using Data Guard for hardware migration UKOUG RAC & HA SIG, Feb 2008 Miguel Anjo, CERN.
Oracle Standby Implementation Tantra Invedy. Standby Database Introduction Fail over Solution Disaster Recovery Solution if remote Ease of implementation.
Oracle 11g Real Application Clusters Advanced Administration
Maximum Availability Architecture Enterprise Technology Centre.
Oracle10g RAC Service Architecture
Index Index.
Introduction.
Presentation transcript:

INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Oracle High Availability Solutions RAC and Standby Database Copyright System Managers LLC 2008 all rights reserved.

Oracle High Availability Solutions Oracle has two high availability solutions: Standby Database (Data Guard): A standby database provides a identical copy of the primary database. The Redo Apply technology applies redo data on the physical standby database using standard Oracle media recovery techniques. A standby database can be open read-only while it applies updates received from the primary database. This makes physical standby databases useful for offloading the primary database from the overhead of processing read-only queries and reports.

Oracle High Availability Solutions Real Application Cluster (RAC): Oracle RAC is a cluster database with a shared cache architecture. In a RAC environment there are two or more servers, where each server has its own “instance”. Each instance mounts and opens the same database files. In a RAC environment all instances are active Copyright System Managers LLC 2008 all rights reserved.

Oracle High Availability Solutions

Standby Database Implementation Create a backup of the database: RMAN> run 2> { 3> allocate channel c1 type disk; 4> backup database plus archivelog; 5> } Create backup of database control file: RMAN> run 2> { 3> allocate channel c1 type disk; 4> backup current controlfile for standby; 5> } Copyright System Managers LLC 2007 all rights reserved.

Standby Database Implementation Make a copy of the primary database init.ora file. The copy will be used as the init.ora file for the standby database. Add the following to the primary database init.ora file log_archive_dest_2='SERVICE=STANDBY' Add the following to the standby database init.ora file db_unique_name='standby' instance_name='standby'

Standby Database Implementation Transfer the backup pieces to the standby server Restore the database from the backup: RMAN> set dbid= ; RMAN> restore standby controlfile; RMAN> sql 'alter database mount standby database'; RMAN> restore database; Copyright System Managers LLC 2007 all rights reserved.

Standby Database Implementation Put the standby database in recover managed mode Log into the database instance as the SYSDBA user. SQL> alter database recover managed standby database disconnect from session; To activate the standby database: SQL > alter database open activate standby database;

Standby Database Views Copyright System Managers LLC 2008 all rights reserved. View NameServerFunction V$MANAGED_STANDBY StandbyDisplays current status information for Oracle database processes related to standby database. View NameServerFunction V$ARCHIVED_LOG Primary Standby Displays archive redo log information from the control file, including names of the archived redo log files.

Standby Database Views Copyright System Managers LLC 2008 all rights reserved. View NameServerFunction V$ARCHIVE_GAP Primary Standby Displays information to help you identify a gap in the archived redo log files. View NameServerFunction V$DATABASE Primary Standby Displays the current role of the database

RAC Implementation Global Cache Services: Process that implements “Cache Fusion”. It maintains the block mode for blocks in the global role. It is responsible for block transfers between instances. The Global Cache Service employs various background processes such as the Global Cache Service Processes (LMSn) and Global Enqueue Service Daemon (LMD). Copyright System Managers LLC 2008 all rights reserved.

RAC Implementation Global Enqueue Service: The GES is responsible for maintaining coherency in the dictionary and library caches. Any DDL committed from a requesting node needs to be synched and written across all data dictionaries in all nodes of the RAC environment. The GES makes sure that the changes remain consistent across the nodes and that there are no discrepancies. Copyright System Managers LLC 2008 all rights reserved.

RAC Implementation There are two software packages that must be installed. The first is the RDBMS software, the second id cluster ready services (CRS). Each package should be installed into its own ORACLE_HOME. ship_10g_crs_disk1.cpio ship_10g_db_disk1.cpio Copyright System Managers LLC 2008 all rights reserved.

RAC Implementation After installing the software the Net8 listener and the global services daemon must be started: $CRS_HOME/bin/gsdctl start $ORACLE_HOME/bin/lsnrctl start Copyright System Managers LLC 2008 all rights reserved.

RAC Implementation Creating a two-node cluster: Use the “srvctl” utility to add the database and the instances to the cluster: srvctl add database -d db10g -o /u01/app/oracle/product/10.1.0/db_1 srvctl add instance -d db10g -i db10g1 -n server01 srvctl add instance -d db10g -i db10g2 -n server02 Copyright System Managers LLC 2008 all rights reserved.

RAC Implementation Remove an instance from cluster srvctl remove instance -d db10g -i db10g2 Start and stop the cluster srvctl start database -d db10g srvctl stop database -d db10g Copyright System Managers LLC 2008 all rights reserved.

RAC Implementation Start and stop individual instance: srvctl start instance -d db10g -i db10g1 srvctl stop instance -d db10g -i db10g1 Get status of whole database or a specific instance: srvctl status database -d db10g srvctl status instance -d db10g -i db10g1 Copyright System Managers LLC 2008 all rights reserved.

RAC Load Balancing and Fail Over Client applications can take advantage of RACs load balancing and fail over features. A typical “tnsnames.ora” entry might look like: db10g = (DESCRIPTION= (LOAD_BALANCE=ON) (FAILOVER=ON) (ADDRESS=(PROTOCOL=TCP)(HOST=server01)(PORT=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=server02)(PORT=1521)) (CONNECT_DATA= (SERVICE_NAME=db10g) (FAILOVER_MODE= (TYPE=SELECT) (METHOD=BASIC) (RETRIES=20) (DELAY=15) ) Copyright System Managers LLC 2008 all rights reserved.

RAC Views A typical dynamic view for a Single Node installation starts with “ V$ ”. A RAC installation will have additional “ GV$ ” views also known as Global Views. The following query will identify V$ views that are not duplicated as GV$ views: SQL > SELECT object_name FROM dba_objects WHERE object_name LIKE 'V$%' AND object_name NOT IN ( SELECT SUBSTR(object_name, 2) FROM dba_objects WHERE object_name LIKE 'GV$%') ORDER BY 1; Copyright System Managers LLC 2008 all rights reserved.

RAC Views Oracle MetalLink provides the RAC diagnostic script “racdiag.sql”. Some of the information collected by the script includes: GES locks LOCAL ENQUEUES LATCH HOLDERS GLOBAL CACHE PERFORMANCE RESOURCE USAGE INITIALIZATION PARAMETERS TOP 10 WAIT EVENTS CURRENT SQL FOR WAITING SESSIONS Copyright System Managers LLC 2008 all rights reserved.