the self-diagnosing database: strategies and directions · business challenges yoracle database is...

32

Upload: others

Post on 21-Sep-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,
Page 2: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

The Self-Healing Database: Strategies and Directions

Richard SarwalVice President, Server Technologies

Oracle Corporation

Page 3: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Business Challenges

Oracle Database is the default choice for running mission critical applications

– Web Store Front, Banking Backbone, Stock Exchange, Credit Card Sales, Airline Reservations, etc.

The cost of failure is unacceptably high– Up to $6+ million per hour*

Product stability is, therefore, of paramount importance

– Fewer software defects out of box– Faster bug diagnostics and resolution

Source: Gartner Group & Contingency Planning Research, Inc.

Page 4: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Technical Challenges

“There are no more easy bugs”

Increase in application complexityIncrease in system complexityIncrease in database sizeIncrease in workload

Page 5: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Oracle Responds to the Challenges

DesignCost = x

Code/Unit TestCost = 10x

StressTesting

In Production

CustomersIn the Field

Cost = 1,000XTesting

Integration Testing

Cost = 100X

Code Renovation

Prod - 32 %

Introduce fewer bugs

Test Renovation catch bugs before productionSelf-Healing Database

Diagnose & resolve bugs quickly

Page 6: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Goal #1

Highest Quality

Page 7: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Continuous Code Renovation

Refresh and update code baseFocus renovation on more problematic areasEase further code development and maintenanceEase problem diagnosis

Page 8: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Even More Comprehensive QA

More stringent release exit criteriaSignificant enhanced testing

– Oracle 10g was subjected to approx. 145000 tests ( 3x compared to 9i, 30x compared to 7.3)

– Development Grid– More automated tests to allow more frequent and rigorous

testing– Dynamic tests to simulate unpredictable customer

environments– Test suites based on real customer workloads– All tests are being made RAC enabled

Widespread internal deployments during alpha and beta test phases

Page 9: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Goal #2

Self-Healing Database

Page 10: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Self-Healing Database

Aim to reduce business interruptions due to bugsA key development focus area for next database release

– Close interaction with support– Extensive customer, partner feedback

Wide-spread effort across entire Oracle technology stack

Page 11: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Self-Healing Database

GoalsDetect problem proactivelyLimit damage & interruptionsReduce problem diagnosis timeSimplify problem resolution and repairImprove solution delivery

Page 12: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution Lifecycle

Diagnosis

• Data Collection• Knowledge Search• Diagnostic Execution• Analysis• Problem Description

Refinement

Time to Resolution

DeliverySolutionPrevention

• Early Change Impact Analysis• Early Detection• Limit Damage

• Identification of Work Around• Identification of

Repair Method• Identification of

Code Fix

• Creation /Delivery ofAcceptable Solution• Customer

Acceptance

Page 13: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution Lifecycle

Diagnosis

• Data Collection• Knowledge Search• Diagnostic Execution• Analysis• Problem Description

Refinement

Time to Resolution

DeliverySolutionPrevention

• Early Change Impact Analysis• Early Detection• Limit Damage

• Identification of Work Around• Identification of

Repair Method• Identification of

Code Fix

• Creation /Delivery ofAcceptable Solution• Customer

Acceptance

Page 14: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem PreventionEarly Change Impact Analysis

– Identify, analyze and correct impact due to changes, e.g. database upgrade

– SQL Workload Comparison– On production system, before upgrade

Automatically capture SQL statements, SQL plans, execution statistics

– On test system, after upgradeRe-issue SQL statementsAutomatically identify SQL plans changes and performance regression For regressed SQLs, use SQL Tuning Advisor to analyze and improve the plans

– Correct impact before upgrading the production system

Page 15: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Prevention

Early Detection– Automatically & periodically check database

health– When potential problems are detected,

Notify administratorRecommend corrective actionsPerform more thorough checksLimit damage by quarantine

Page 16: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution Lifecycle

Diagnosis

• Data Collection• Knowledge Search• Diagnostic Execution• Analysis• Problem Description

Refinement

Time to Resolution

Delivery

• Creation /Delivery ofAcceptable Solution• Customer

Acceptance

SolutionPrevention

• Early Change Impact Analysis• Early Detection• Limit Damage

• Identification of Work Around• Identification of

Repair Method• Identification of

Code Fix

Page 17: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem DiagnosisUnified Diagnostic Information Storage

– Single location for all database diagnostic information, e.g. alert log, dumps, trace, DDLs

DBA won’t have to manually collect information from different locations and compile them together manually

– Common format to allow co-relation across multiple tiers, products, instances, processes

RAC instances, client-server, CRS, ASMDB, Application Server, etc.Enable easy diagnosis of problems spanning across multiple components/products

– Available even when instance/database is down

Page 18: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Diagnosis

Automatic Information Capture– Goal is to collect enough information to achieve First-

Failure diagnosisTraces, Dumps, OS information, Patch Information, DB Configuration, DDL, etc.

– Information capture is automatically triggered by errors – Built-in intelligence to

Capture targeted, relevant information to reduce volumeDetect repeated occurrences of the same problem and avoid redundant data collection

– Captured information may also be packaged automatically to create reproducible test cases

Page 19: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Diagnosis

Automatic Analysis– Problems are automatically analyzed and

characterized into fully identifiable “Problem Identity”

– Oracle may automatically “Phone home” to match problems with already known issues/bugs

49% of bugs are duplicates or Not-a -bug

– Possible patches or workarounds may be automatically identified

Page 20: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution Lifecycle

Diagnosis

• Data Collection• Knowledge Search• Diagnostic Execution• Analysis• Problem Description

Refinement

Time to Resolution

DeliverySolution

• Identification of Work Around• Identification of

Repair Method• Identification of

Code Fix

Prevention

• Early Change Impact Analysis • Early Detection• Limit Damage

• Creation /Delivery ofAcceptable Solution• Customer

Acceptance

Page 21: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution

Faster resolution enabled by – Comprehensive diagnostic data

Automatically captured by the database– Flexible, dynamic infrastructure to collect

additional diagnostics information, if neededNo need to apply diagnostic patches

– Automatic test case generation– Diagnosability being made a key consideration

for all future development work

Page 22: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution

Automatic, Intelligent Data Repair– Automatic damage assessment

What? How extensive? How important?

– Recommendation of repair options with down time vs. data loss trade-offs

– In-depth feasibility check of customer chosen option– Automatic implementation of the repair operation, if

required RMAN recovery operations, patch data block, recreate index, etc.

Page 23: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution Lifecycle

Diagnosis

• Data Collection• Knowledge Search• Diagnostic Execution• Analysis• Problem Description

Refinement

Time to Resolution

SolutionPrevention

• Early Change Impact Analysis • Early Detection• Limit Damage

• Identification of Work Around• Identification of

Repair Method• Identification of

Code Fix

Delivery

• Creation /Delivery ofAcceptable Solution• Customer

Acceptance

Page 24: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Solution Delivery

Proactive Critical Bug Alerts– Enterprise Manager Grid Control automatically

notifies customers of known bugs and corresponding patch fixes

– Patch information downloaded automatically from MetaLink

– Patch application can also be automated, if desired– Allows customers to fix the problem before

encountering it– Only notify the sites with affected release, platform – This functionality is available today

Works with all supported database versions

Page 25: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Critical Patch advisory

Page 26: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Proactive Patch Notification

Page 27: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Problem Resolution Lifecycle

Diagnosis

• Data Collection• Knowledge Search• Diagnostic Execution• Analysis• Problem Description

Refinement

Time to Resolution

SolutionPrevention

• Early Change Impact Analysis • Early Detection• Limit Damage

• Identification of Work Around• Identification of

Repair Method• Identification of

Code Fix

Delivery

• Creation /Delivery ofAcceptable Solution• Customer

Acceptance

Page 28: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

The New, Automatic Diagnostic Workflow

ProblemEncountered

1

Database automatically

captures diagnostic data and send out an

alert

Unified Diagnostic Repository

2

DBA follows recommended steps, including looking up support knowledge

base

3

Known issue?

4

Yes

Apply Patch

5

NoNew issue reported

Diagnostic data automatically packaged and uploaded

6

Page 29: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

What does it mean to you?

Fewer “Surprises”– By anticipating problems and fixing them in advance

Faster problem resolutionReduced business interruption, higher availabilityEnhanced administrator productivity

– DBAs no longer need to collect diagnostic information manually

Better quality of service for end users

Page 30: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Conclusion

Oracle fully understands the customer needs and challenges

– Enhanced Manageability– Simplified Diagnosability

Responding to these challenges is the top development priority

– Oracle Database 10g took a giant strides in manageability, future releases to build on it

– Automatic, simplified Diagnosability is one of the key development focus area for the future

Oracle remains committed to providing customers most sophisticated, practical, and relevant solutions

Page 31: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,

Q U E S T I O N SQ U E S T I O N SA N S W E R SA N S W E R S

Page 32: The Self-diagnosing Database: Strategies and Directions · Business Challenges yOracle Database is the default choice for running mission critical applications – Web Store Front,