case studies rman metrics · tuning the large pool for rman • carefully identify relationships...

44
LI SIG Fall 2008 Meeting Anthony D Noriega, MSCS, MBA, OCP Advanced Data Networks Case Studies in RMAN Metrics

Upload: others

Post on 29-Jul-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

LI SIG Fall 2008 Meeting

Anthony D Noriega, MSCS, MBA, OCPAdvanced Data Networks

Case Studies in

RMAN Metrics

Page 2: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Speaker Qualifications

• Independent Consultant, ADN• Speaker at NYOUG meetings• 24 years of IT experience• 18 years of Oracle experience, 13 as a DBA • RMAN experience with Oracle8i,9i, 10g, and

11g, since 1999. • MS Computer Science, NJIT, 1993• PhD CIS candidate, NJIT, 1997• MBA MIS, Montclair State University, 2006

Page 3: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Objectives

• Present an proven approach to RMAN time and storage space metrics that guarantees robustness in backup/recovery, disaster recovery (DR), and business continuity (BC) processes.

• Derive a series of technical arguments to support an DR/BC optimization methodology.

Page 4: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Best Practices• Determine the backup window of time and

related duration Establish the restore window of time and related duration

• Establish a process-related cost analysis• Create a policy framework in order to

consistently maintain archived redo log files in backup sets, or available accordingly in the file system.

• Discuss a tuning model for the large pool.

Page 5: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Best Practices

• Utilize available features and capabilities such as Block Change Tracking, control file auto-backup, native backup compression, or point-in-time recovery when appropriate.

• Establish DR/BC a historic log.

Page 6: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Experimenting with RMAN

• Production environments– With recovery Catalog

• Hitachi SAN• MPP (128-,32-processor logically

partitioned Solaris servers ).• Maximum Availability Architecture

(MAA) using Hardware Assisted Resilient Data (RAC plus Data Guard emulation).

Page 7: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Experimenting with RMAN

• Production environments– Without recovery Catalog

• Undisclosed SAN architecture• MPP (16 and 32-processor Solaris

servers, but comparable cohort architecture).

• Oracle Data Guard in place.

Page 8: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Tuning with Large Pool RMAN

• Production environments– Linux 4-node RACs, 9i and 10g

• Undisclosed SAN architecture• MPP (Linux Intel 64-bit 8/16 dual-core

processor RH Linux servers).• Oracle RAC and Data Guard in place

(MAA).

Page 9: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Architecture Environments

• Oracle9i• Oracle10g experimental projections• fast_start_mttr_target custom settings• Block Change Tracking (Oracle10g/11g)• Incremental backup level 0 mostly.

Page 10: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

The Shell

RMAN Backup shell for Oracle Instances Studied (Without a Recovery Catalog)

Page 11: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Backup Size and Duration

• RMAN Backup Duration for Oracle Instances Studied (With a Recovery Catalog)

Page 12: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

RMAN Backup Size and Duration

• RMAN Backup Duration for Oracle Instances Studied (without a Recovery Catalog)

Page 13: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

RMAN Backup Size and Duration

• RMAN Backup Duration for Oracle Instances Studied (NOCATALOG expanded view)

Page 14: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Backup Size Duration Line Chart

Page 15: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

NOCATALOG Restore Metrics

• RMAN Restore Duration for Oracle Instances Studied (Without a Recovery Catalog)

Page 16: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

The Shell

• RMAN Backup shell for Oracle Instances Studied (With a Recovery Catalog)

Page 17: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Backup Size and Duration

• RMAN Backup Duration for Oracle Instances Studied (With a Recovery Catalog)

Page 18: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Backup Size and Duration

• RMAN Backup Duration for Oracle Instances Studied (With Backup Validation Using the Recovery Catalog)

Page 19: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Backup Size and Duration

• RMAN Restore Duration for Oracle Instances Studied (With Backup Validation Using the Recovery Catalog)

Page 20: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Data Collected for Analysis

Page 21: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

A Simple RMAN Regression Model

Page 22: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Further Model Regression

Page 23: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Correlation (Variable Interaction)

Page 24: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Oracle10g Improved Adjustments• The number of blocks changed as a

percent of the total backup (incremental policies).

• Global block density being backed up.• The Global block density in the database

being backed up.• The combined effect of all previous

factors.• The settings of block change tracking.

Page 25: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Oracle10g Improved Adjustments• Settings for:

– Fast_start_mttr_target– Log_checkpoint_interval– Log_checkpoint_timeout– Large_pool_size

• V$MTTR_TARGET_ADVICE view

Page 26: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Some Oracle10g RMAN ObjectsOBJECT_TYPE OBJECT_NAME----------------- -----------------------------------PACKAGE CURSORMANAGERINTERFACEPACKAGE GENCURSORMANAGERINTERFACETYPE GENCURSORMANAGERSEQUENCEVIEW GV_$RMAN_CONFIGURATIONVIEW GV_$RMAN_OUTPUTVIEW V_$RMAN_BACKUP_JOB_DETAILSVIEW V_$RMAN_BACKUP_SUBJOB_DETAILSVIEW V_$RMAN_BACKUP_TYPEVIEW V_$RMAN_CONFIGURATIONVIEW V_$RMAN_OUTPUTVIEW V_$RMAN_STATUS

Page 27: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

RMAN NOCATALOG Configuration

Page 28: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

RMAN Session Long Operations

Page 29: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Listing the Backup Contents

Page 30: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Listing the Backup Contents

Page 31: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

DBPITR Tree Recovery Path

Page 32: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Model Implications on VLDBs

• Model Variable Correlation• Support for HARD, SAN-based, Dataguard,

and RAC solutions.• Proven metric correlation in Maximum

Availability Architecture (MAA).

Page 33: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Business Analysis Considerations

• Disaster Recovery (DR)• Business Continuity (BC)• Backup and Recovery (BR)• SDLC • Overall Preparedness for any RMAN

process.

Page 34: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Business Analysis Considerations• Quality Assurance

– Backupset approach– Archived redo log backup policy– Retention policy strategy.

• Shell Robustness throughout OS platform• Shell scheduling, deployment with

periodic validation and verification.

Page 35: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Tuning the Large Pool for RMAN• Carefully identify relationships

between the large pool size setting and the RMAN operation (backup/restore) duration, and the backup pieces size and the overall backup size.

• Large Pool Size’s Oracle recommended setting is 16M.

• Findings are preserve standalone or using third-party tools or utilities.

Page 36: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Tuning the Large Pool for RMAN

Page 37: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Tuning the Large Pool for RMAN

Page 38: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Tuning the Large Pool for RMAN

Page 39: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Concluding Remarks

• Correlation between database size/backup size and duration.

• Factors:– Environment– Backup Validity

• Preparedness.

Page 40: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Concluding Remarks

• DBPITR• Backup Restore/Recovery Time• Reliability=MTTF/(MTTF+MTTR)• Business Process Robustness

Page 41: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Concluding Remarks

• Oracle9i and Oracle10g congruent Metrics• Configuration Bottlenecks• Planning and Risk Analysis• Block Change Tracking• BR/DR/BC Business Process.• The large pool size is directly proportional

to the backup size and inversely proportional to the backup duration.

Page 42: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Concluding Remarks

Page 43: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Questions?

Page 44: Case Studies RMAN Metrics · Tuning the Large Pool for RMAN • Carefully identify relationships between the large pool size setting and the RMAN operation (backup/restore) duration,

Long Island SIG (Fall 2008)

Thank You• Please complete your evaluation form!• Speaker: Anthony D. Noriega• Title: Case Studies in RMAN Metrics• Special Session• Contact information: • [email protected]