key to a successful exadata poc - umair...

29
Key to A Successful Exadata POC BY UMAIR MANSOOB

Upload: hakhue

Post on 07-May-2018

223 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Key to A Successful Exadata POC

BY UMAIR MANSOOB

Page 2: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Who Am I Oracle Certified Administrator from Oracle 7 – 12c

Exadata Certified Implementation Specialist since 2011

Oracle Database Performance Tuning Certified Expert

Oracle Business Intelligence Foundation Suite 11g Certified Implementation Specialist

Oracle Database Data Warehousing Certified Implementation Specialist

Multiple Exadata Implementations / POC’s for large financial organizations

Migrate / Upgrade databases between various versions of Oracle

Capacity Planning for Oracle Engineered Systems

Database Consolidation to Exadata / 12c Platform

Architect Databases for OLTP and OLAP applications

Not an Oracle Employee or Nor I represent Oracle in any way

Umair MansoobKey to A Successful Exadata POC

Page 3: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Overview

Umair Mansoob

Plan AnalyzeOptimizeMigrate Test

Key to A Successful Exadata POC

Page 4: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Plan

Umair MansoobKey to A Successful Exadata POC

Start Early

Identify Targets

Capture Statistics

Data Migration

Success Criteria

Page 5: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Start Early

Most cases you will only get 2-3 weeks to do an EXADATA POC , sostart early

If you are not ready, you will end up losing very valuable time.

It is important for note that dedicated resources can play a key rolesin successful

If possible , test your scripts on NON EXADATA system before thePOC

Umair MansoobKey to A Successful Exadata POC

Page 6: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Identify Targets

You should identify all the process and sql’s, which will be part of your POC.

How you go about picking targets for your POC will depend on your target application

It is best to pick your targets based on criticality , elapse time and resource utilization

It is import to understand that you might not be able to test all the statements and process running on target system during your POC

Umair MansoobKey to A Successful Exadata POC

Page 7: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Capture Statistics

You will need captured statistics to declare your POC successful ornot

You can use many Oracle Native tools like AWR Report, ASH reportand SQL Tuning set

SQL performance analyzer can be used to compare resultsbetween non-Exadata and Exadata system

Make sure , you capture the baseline from target non-exadatasystem.

Umair MansoobKey to A Successful Exadata POC

Page 8: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Data Migration

You will be needing to migrate data to Exadata machine for your POC.

It will best if you choose same migration method that you are planning to use for actual migration.

Lot of customer run in issues during data migration and end up wasting valuable time during POC

You might have to get proper approval to migration data and may be following specific guidelines.

Umair MansoobKey to A Successful Exadata POC

Page 9: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Success Criteria

You should also clearly define a success criteria before the start your POC.

Success criteria should not be verbal or vague like 30% increase or 200% increase in performance.

Share your success criteria between all the parties involves in POC including Oracle folks.

A lot of customer seems to only care about elapse time, can be deceptive.

Umair MansoobKey to A Successful Exadata POC

Page 10: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Migrate

Umair MansoobKey to A Successful Exadata POC

• RMAN

• Data GuardPhysical

• Data Pump

• Insert as SelectLogical

Source Exadata

Page 11: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Migrate Each migration method has its own pros and cons, so analyze themcarefully based on your requirements

Data migration methods can be categorized as physical migrationor logical migration.

You should run exachk utility to review and implement Exadatabest practices.

Physical migration is a block by block copy of data, popularmethods are data guard and RMAN.

Popular logical methods are data pump or insert as select.

Umair MansoobKey to A Successful Exadata POC

Page 12: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Physical Migration Pro : Migrating data using physical methods can be very simple andstraight forward.

Pro : Support cross platform Migrations using RMAN transportabledatabase.

Con : Bring all the characteristics of target database, which mightnot be optimal.

Con : Will require extra effort to implement Exadata best practicesand enable features like compression.

Umair MansoobKey to A Successful Exadata POC

Page 13: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Logical Migration Pro : Exadata best practices will already be in place , if databasewas created using DBCA utility.

Pro : Can POC Exadata specific feature like compression and storageindexes

Con : Not simple , will require extra effort and time to bring dataover to Exadata machine

Con : Since its not a block by block copy , execution plans canchange.

Umair MansoobKey to A Successful Exadata POC

Page 14: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Transferring Data

It is important to mask or encrypt data before you move intoExadata POC Machine.

You might need to get proper approval for certain types of data.

Don’t pick something too small that you are not able to run longrunning queries during your POC

Don’t pick too big that it takes days to transfer database to POCmachine

Umair MansoobKey to A Successful Exadata POC

Page 15: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Optimize

Umair MansoobKey to A Successful Exadata POC

Optimize

Smart Scan

Partitioning

Compression

Page 16: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Optimize

You should look into testing following Exadata Features during yourPOC.

Compression not only reduces your storage footprint but alsoimprove performance.

Even though offloading and smart scan are enabled by default butmake sure they are turned on and performing as expected.

Test Storage indexes by making but selected non primary keyindexes invisible.

Umair MansoobKey to A Successful Exadata POC

Page 17: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Compression

Regardless of Exadata, Oracle has two native compression types,basic table compression and OLTP Compression

You can get reasonable compression ratio with OLTP compressionand it will also support DML operations.

Please note that there will be some overhead and you will needadvance compression license to use OLTP compression.

You can get extremely good compression ratio with HybridColumnar compression but OLTP operations are not supported

Umair MansoobKey to A Successful Exadata POC

Page 18: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Smart Flash Cache

Exadata smart flash cache has an ability to move data in and outfrom cache based on usage.

It is enabled by default, you don’t have to configure anything toenable it.

if enable , Write back flash cache provides the ability to write I/Osdirectly to PCI flash

Write-back cache can help reduce “"free buffer waits" waits forwrite intensive applications.

Umair MansoobKey to A Successful Exadata POC

Page 19: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Offloading / Smart Scan Exadata extreme performance is archive through offloading andsmart scan.

Offloading means some of Oracle processes are offloaded toExadata Storage node.

Oracle processes that can be offloaded to storage nodes areincremental backups, Data File creation, decompression anddecryption

There are some pre-requisites for smart scan like direct path readand full table scan.

Umair MansoobKey to A Successful Exadata POC

Page 20: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Storage Indexes

Storage indexes are memory structure at storage level.

they reduce Disk I/O by maintaining an entry for minimum andmaximum value for data per 1 MB by default.

You can drop most non-primary key indexes and force queries touse Storage indexes.

Usually BITMAP indexes are ideal candidates for offloading queriesto Storage Indexes.

Umair MansoobKey to A Successful Exadata POC

Page 21: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Test

Umair MansoobKey to A Successful Exadata POC

Start Testing

Testing Methodologies

Testing Variation

Page 22: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Start Testing

Testing should include should include all the variation you want to test during your POC.

You can a test like for like, which means you are not planning to make any changes to your database architecture like compression, partition or encryption

There are different type of tests you can run during your POC, like Performance test, load test, break test.

Don’t forget to capture statistics during test phase of POC.

Umair MansoobKey to A Successful Exadata POC

Page 23: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Testing Methodologies

Remember you are moving your application to new hardware

You might be changing underline hardware system for your database

You might be moving from NON-RAC to RAC database system

Performance testing provides most important statistics for your POC

Some customer like to perform failover and break test for their critical applications

Umair MansoobKey to A Successful Exadata POC

Page 24: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Testing Variation Test Like for Like, No changes to database architecture.

Test compression , Compress only selected tables.

Without Indexes , make non-primary key indexes invisible.

Test Write Back-Cache feature, for write intensive applications.

Test Exadata IORM feature , if you are planning to consolidatemultiple databases to target Exadata Machine.

Umair MansoobKey to A Successful Exadata POC

Page 25: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Analyze

• AWR

• ASH

• STS

Compile

• Elapse time

• CPU

• SPA

Compare• Success

Criteria

• Next Steps

Conclude

Page 26: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Compile

Collect AWR reports from source system & target system to compression

Collect ASH report for important SQL and critical processes

If you have install OS watcher, collect logs

Run and collect exachk report for POC Exadata machine

Umair MansoobKey to A Successful Exadata POC

Page 27: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Compare

Compare AWR reports between source and target Exadata system

Compare Resource utilization between source and target Exadata system

Compare Elapse time for all the critical processes and sqlstatements

If possible , run SQL performance analyzer to compare sqlperformances between source and target system

Umair MansoobKey to A Successful Exadata POC

Page 28: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Conclude

Now it is time to conclude your POC

Check if POC meet your success criteria fully or partially

Part of POC might not meet your success criteria

You might have to spend some cycle to improve slow running sql orprocess

Next steps

Umair MansoobKey to A Successful Exadata POC

Page 29: Key to A Successful Exadata POC - Umair Mansoobblog.umairmansoob.com/wp-content/uploads/2016/05/... · Who Am I Oracle Certified Administrator from Oracle 7 –12c Exadata Certified

Thank You

Umair MansoobKey to A Successful Exadata POC

Umair Mansoob

773-297-2061

[email protected]

http://blog.umairmansoob.com/