41
1

1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

Embed Size (px)

Citation preview

Page 1: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

1

Page 2: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

2

Agenda

• Sneak Peek at Oracle Database 11g• Management Enhancements• Availability Enhancements• Performance Enhancements• 11g New Features Summary

Page 3: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

3

Oracle Database 11g Change Assurance Capabilities

Capture &Replay

Workload

Set Up TestEnvironments

PerformOnline

Application Upgrades

Detect &Tune

PerformanceChanges

ManageExecution

PlanEvolution

PackageIncidents

forSupport

OnlineHot

Patching

Page 4: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

4

Snapshot Standbysfor Test Environments

• Convert Physical Standby to Snapshot Standby and open for writes by testing applications

• ALTER DATABASE CONVERT TO SNAPSHOT STANDBY;

• Discard testing writes and catch-up to primary by applying logs

• ALTER DATABASE CONVERT TO PHYSICAL STANDBY;

• Preserves zero data loss • But no real time query or fast

failover• Similar to storage snapshots, but:

• Provides DR at the same time• Single copy of storage

Physical Standby Apply Logs

Snapshot Standby Perform Testing

Open Database

Back out Changes

Continuous Redo Shipping

Page 5: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

5

Database Replay

• Capture Workload in Production• Capture production workload with actual load & concurrency• Move the captured workload to test system

• Replay Workload in Test• Make the desired changes in test system• Replay workload with production load & concurrency

• Analyze & Report• Errors• Data divergence • Performance divergence

• Use ADDM, AWR for further performance analysis

Page 6: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

6

Pre-Change Production System

ClientClient

App ServerApp ServerApp Server

Client

Backup

Captured WorkloadProcess Process Process…

Capture Workload

Changes Unsupporte

d

Changes Supported

•Database Upgrades, Patches

•Schema, Parameters

•RAC nodes, Interconnect

•OS Platforms, OS Upgrades

•CPU, Memory

•Storage

•Etc.

Page 7: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

7

Post-Change Test System

…Replay Driver

………

App ServerApp ServerApp Server

Process Process Process… Process Process Process…

Can use Snapshot Standby as test system

Replay Driver

ClientClient

…Client

Pre-Change Production System

Processed Captured Workload

Backup

Capture Workload

Page 8: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

8

Capturing the SQL Workload

Page 9: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

9

SQL Replay

• Focus on impact of change on SQL query workload• Capture SQL in Production

• Automatically capture SQL workload over a specified period• Capture SQL text, plans, bind variables, execution statistics• Can capture 10.2 SQL workload• Move captured SQL workload to test system

• Replay SQL in Test• Replay SQL in pre and post-change configurations• Compare and analyze performance• For regressed SQL, use SQL Tuning Advisor (10g) to improve

performance with SQL Profiles• Changes supported

• Major & minor database releases, patches, parameters, schema, optimizer statistics, tuning recommendations

Page 10: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

10

SQL Replay Performance Analysis

Page 11: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

14

Automatic SQL Tuning Configuration

Page 12: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

17

Automatic SQL Tuning Results Recommendations

Page 13: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

20

New Change Assurance Capabilities in Oracle Database 11g

Capture &Replay

Workload

Set Up TestEnvironments

PerformOnline

Application Upgrades

Detect &Tune

PerformanceChanges

ManageExecution

PlanEvolution

PackageIncidents

forSupport

OnlineHot

Patching

Page 14: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

21

Online Application Upgrade

• Large, mission critical applications are often unavailable for tens of hours while a patch or an upgrade is installed

• Oracle Database 11g introduces revolutionary new capabilities that allow online application upgrade with uninterrupted availability of the application

• The pre-upgrade application and the post-upgrade application can be used at the same time

• End-user sessions therefore enjoy hot rollover

Page 15: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

22

Online Application Upgrade The challenge

• The installation of the upgrade into the production database must not perturb live users of thepre-upgrade application

• The changes must be made in privacy

• Transactions done by the users of the pre-upgrade application must by reflected in the post-upgrade application

• For hot rollover, we also need the reverse of this:

• Transactions done by the users of the post-upgrade application must by reflected in the pre-upgrade application

Page 16: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

23

Online Application Upgrade How did we do it?

• Evolutionary capability improvements

• Some table DDLs that used to fail if another session had outstanding DML now always succeed

• Others, that cannot succeed while there’s outstanding DML, are now governed by a timeout parameter

• Online index creation and rebuild now never wait

• The dependency model is now fine-grained:e.g. adding a new column to a table, or a new subprogram to a package spec, no longer invalidates the dependants

Page 17: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

24

Online Application Upgrade Revolutionary new capabilities

• 11.1 brings the edition, the editioning view, and the crossedition trigger

• Code changes are installed in the privacy of a new edition.

• Data changes are made safely by writing only to new columns or new tables not seen by the old edition

• An editioning view exposes a different projection of a table into each edition to allow each to see just its own columns

• A crossedition trigger propagates data changes made by the old edition into the new edition’s columns, or (in hot-rollover) vice-versa

Page 18: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

25

New Change Assurance Capabilities in Oracle Database 11g

Capture &Replay

Workload

Set Up TestEnvironments

PerformOnline

Application Upgrades

Detect &Tune

PerformanceChanges

ManageExecution

PlanEvolution

PackageIncidents

forSupport

OnlineHot

Patching

Page 19: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

26

SQL Plan Managementcontrolled plan evolution

Business Requirement• Data is changing over time

• Statistics and execution plans become suboptimal

• Statistics have to be updated• Possibly unpredictable changes of execution plans

• Today you have ‘freeze’ critical plans or statistics

Solution• Optimizer automatically manages SQL Plan Baselines

• Only known and verified plans are used

• Plan changes are automatically verified in maintenance window• Only comparable or better plans are used going forward

• Can pre-seed critical SQL with baselines from SQL Replay

Page 20: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

Automatic Diagnostic Repository

Automatic Diagnostic WorkflowReduce Time to Problem Resolution

Duplicate Bug?

Yes

EM Support Workbench: Apply Patch or Workaround Guided Repair

No

EM Support Workbench: Package Incident information

including CCR info Guided Repair

Incident Packaging Service First-failure Capture

Critical

Error

Alert DBA Targeted assessments Assisted SR Filing

Auto Bug Matching (post 11gR1)

1 2 3

45

Page 21: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

28

New Change Assurance Capabilities in Oracle Database 11g

Capture &Replay

Workload

Set Up TestEnvironments

PerformOnline

Application Upgrades

Detect &Tune

PerformanceChanges

ManageExecution

PlanEvolution

PackageIncidents

forSupport

OnlineHot

Patching

Page 22: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

29

Incident Packaging Service

Page 23: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

30

New Change Assurance Capabilities in Oracle Database 11g

Capture &Replay

Workload

Set Up TestEnvironments

PerformOnline

Application Upgrades

Detect &Tune

PerformanceChanges

ManageExecution

PlanEvolution

PackageIncidents

forSupport

OnlineHot

Patching

Page 24: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

31

Feature-Based Patching

Automatic correlation against feature usages eliminates unnecessary downtime

Both ad-hoc searches and subscription supported

Yes

Proactively push metadata (version, feature relevance) for evaluation

Download patch

Customer Relevant

Patch Found?

Recommended interim patch becomes

available in Metalink

Database targets/groups

Features & versions collected

Apply patch

1 2

3

4

5

Grid/DB Control

Page 25: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

32

EM-driven Proactive Patching

Page 26: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

33

Database feature based Patching

Page 27: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

34

Online Patching of One-off Patches

• Patch a running Oracle instance with no downtime• Many one-off patches can be online patched

• Subset of RAC online upgradeable patches• Great for diagnostic patches

• Enable, disable and de-install one-off patches with no downtime• Integrated with OPatch and inventory

• Initially available on Linux and Solaris• Long term goal is online patching of Critical

Patch Updates (CPUs).

Page 28: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

35

Online Patch Upgrade using RAC

Initial RAC Configuration Clients on A, Patch B

EmergencyOne-offPatches

OperatingSystemUpgrades

Upgrade Complete

HardwareUpgrades

Clients Clients

Clients on B, Patch A

Patch

1 2

34

A

B PatchB

Critical Patch Updates

Page 29: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

36

Online Database Upgrades using SQL Apply

Major ReleaseUpgrades

Patch SetUpgrades

Cluster Software & Hardware Upgrades

Initial SQL Apply Config

ClientsRedo

Version X Version X

1

BA

Switchover to B, upgrade A

Redo

4

Upgrade

X+1X+1

BA

Run in mixed mode to test

Redo

3

X+1X

A B

Upgrade node B to X+1

Upgrade

LogsQueue

X

2

X+1

A B

Page 30: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

38

Automatic SQL Tuning

• Automatically chooses high-load SQL based on response time, throughput and frequency criteria

• Automatically tunes SQL by creating SQL Profiles

• Automatically test executes the tuned plans to verify improvement

• Automatically implements greatly (3X) improved plans (optional)

• Automatically reports missing access structures, stale stats, poorly structured SQL

• Automatically runs during maintenance window or manually triggered

Well-tuned SQL

PackagedApps

Customizable Apps

Advisor Report

Automatic SQL Tuning

Index, Stats,

Structure Analysis

Test Execute

SQL Profiles

Implement

Automatic

High-Load SQL

AWR

Nightly

SQL Profiling

Manual

Page 31: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

39

Index, MV Analysis

Partition Management Made Easy

Partition Advice from Access Advisor• Provide advice on Partitioning methods • Partitioning advice for tables,indexes, MVs• Consider entire query & DML workload to

improve query performance• Integrated, non-conflicting advice with Indexes,

MVs

Automatic Interval Partition Creation • On first insert• With constant width intervals for dates and

numbers• Existing RANGE partitioned tables can be

converted to INTERVAL• RANGE and INTERVAL can coexist in a single

tableWell-Designed Schema

SQL Workload

PackagedApps

Customizable Apps

Access Advisor

Index, MV Advice

PartitionAnalysis

Partition Advice

Page 32: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

40

Flashback Data Archive

• Long term retention - years• Automatically stores all

changes to selected tables in Flashback Data Archive• Archive cannot be modified• Old data purged per retention

policy• View table contents as of any

time using Flashback SQL• Uses

• Change Tracking• ILM• Long term history• Auditing• Compliance

ORDERS

User Tablespaces

Flashback Data Archive

ArchiveTables

Oracle Database

Changes

Total Recall

Select * from orders AS OF ‘Midnight 31-Dec-2004’

Page 33: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

41

Physical Standby with Real-Time Query

Physical Standby Database

Primary Database

Real-time Queries

Continuous Redo Shipment and Apply

Concurrent Real-Time

Query

• Read-only queries on physical standby concurrent with redo apply• Supports RAC on primary / standby• Queries see transactionally consistent results

• Immediate appeal to the many users of physical standby

• DR with real time query is unique in the industry – no idle resources

• Handles all data types, but not as flexible as logical standby

Page 34: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

43

PerformanceMajor New Performance Innovations

• Automatic “native” PL/SQL and Java compilation• Now fully transparent, no C compiler required

• SecureFiles• New generation LOBs just as fast as files

• Query Results caches • Fast caching of query/function results for read-mostly data

• Table Compression• Now for OLTP as well as DW applications

• And much more …• RAC optimizations, TimesTen enhancements, faster

triggers, Auto NFS, faster upgrades, faster Streams, faster Data Guard, …

Page 35: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

44

Oracle SecureFilesUnified Storage

• SecureFiles is a new database feature designed to break the performance barrier keeping file data out of databases

• Similar to LOBs but much faster, and with more capabilities• Transparent encryption, compression, deduplication, etc.

• Preserves the security, reliability, and scalability of database

• Superset of LOB interfaces allows easy migration from LOBs

• Enables consolidation of file data with associated relational data• Single security model

• Single view of data

• Single management of data

Page 36: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

45

Server Results Cachetaking the buffer cache to the next level

join

join

T1 GBY

join

T2 T3

GBY

join

T4 join

T5 T6

join

join

T1 GBY

join

T2 T3

GBY

join

T4 join

T5 T6

Q1: build query cachejoin

join

T1 GBY

join

T2 T3

GBYQ2: Use it transparently

cache

• Automatically Caches results of queries, query blocks, or pl/sql function calls

• Cache is shared across statements and sessions on server

• Significant speed up for read-only / read-mostly data

Page 37: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

46

OCI Consistent Client Cachelike cache fusion between server and client

• Caches query results on client• Improves performance for read-mostly tables

• Faster response time - eliminates network round trips• Saves server CPU

• Consistent with server• Cache proactively refreshed when result set changes• Maximum age of consistency info can be set

Application Server

Database

Consistent Caching

Page 38: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

49

Information Management

• Complete• Integrated• Robust• Scalable• Secure• Available on all platforms

Oracle interMediaDICOM Medical Image support

Oracle Locator & SpatialImproved maps, 3D support, traffic updates

XML DBBinary XML, Schema Evolution

Information RetrievalInformation RetrievalText Improvements, Semantic Processing

RelationalSecure Files

Oracle Content and Records DB11g Feature Refresh

Page 39: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

50

Addt’l Oracle Database 11g Highlights• High Availability

• Logminer, Physical Standby, Streams support for XMLType, TDE

• Fast Start Failover with Async Propagation• Faster Logical Standby Apply• Flashback Transaction• Data Repair Advisor

• Integration• Faster Gateways• Gateways to Legacy Databases• Streams Synchronous Capture• Streams Faster Apply

• Performance and Scalability• RAC Scalability Enhancements• Faster PL/SQL Triggers

• Security• Tablespace and LOB Encryption• Secure By Default• Enterprise Manager support for TDE, OLS, VPD, EUS• TDE works with LOBS, log miner

• Windows• VSS Writer for Point In Time Copies

• Manageability and Diagnosability• Unified Automatic Memory Management• Scheduler supports remote jobs• Automatic Health Monitoring• Faster Database Upgrades

• ASM• Variable extent sizes, Fast resync, Preferred reads

• RAC• Highly optimized protocols• ADDM for RAC

• Content Management Infrastructure• Binary XML storage• Enhanced XML indexing• Combined Text and Relational Indexes• DICOM Medical Imaging Support• Storage & Query of Semantic Content (RDF, OWL)

• Business Intelligence• Next generation OLAP• Supermodels for Data Mining• Enterprise Manager is DW aware• PIVOT/UNPIVOT operators

Page 40: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

AQ&Q U E S T I O N SQ U E S T I O N S

A N S W E R SA N S W E R S

Page 41: 1. 2 Agenda Sneak Peek at Oracle Database 11g Management Enhancements Availability Enhancements Performance Enhancements 11g New Features Summary

56