Академический Документы
Профессиональный Документы
Культура Документы
2 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXADATA MIGRATION RECIPES
……SECRET SAUCE FOR A TESTY MIGRATION
Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
Migration methods
Pre-migration tasks
Success stories
Q&A
4 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
14 EXCELLENCE AWARDS
IN THE LAST 5 YEARS
Oracle Partner of the Year 2015
Oracle FMW Innovation Award 2014, Worldwide
Oracle Partner of the Year 2014
Oracle Industry Partner of the Year 2014, MEA
European Startup of the year 2014
Oracle Partner of the Year 2013
Oracle FMW Partner of the Year 2012, 2011 and 2010
Oracle FMW Innovation Award 2010, Worldwide
Oracle Benelux Industry Partner of the Year 2010
5 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
SYED JAFFER HUSSAIN
6 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
7 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
OVERVIEW OF EXADATA DATABASE MACHINE
Engineered System : Tightly integrated with Smart
Hardware and Software
Delivers the best performance to all database
workloads
High performance storage + unique/smart Storage
Software + hardware
Tuned for all database workloads (OLTP, DW, IN-
MEMORY DBS & DB CONSOLIDATION /DBaaS)
Pre-installed : OS + Exadata software
Available in
8 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXADATA HARDWARE ARCHITECTURE
9 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXADATA DATABASE MACHINE TIME TRAVEL
10 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXADATA SOFTWARE UPDATES
11 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
ELASTIC CONFIGURATION – SCALE-OUT AS YOU GROW
12 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
13 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXADATA CORE FEATURES
Hybrid Columnar
I/O Resource
Smart Features Compression Storage Indexes
Manager (IORM)
(HCC)
Smart Scan
(SQL
Offloading)
Smart Flash
Cache
Smart Flash
Cache Log
14 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
15 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
MIGRATION GOAL AND ITS DEMANDS
16 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
MIGRATION GOAL AND ITS DEMANDS
Best Practices
17 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
18 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
MIGRATION METHODS
Physical
RMAN
PHYSICAL STANDBY
HP TTS/XTTS
TRANSPORTABLE DATABASE
ASM ONLINE MIGRATION
Logical
IBM Data Pumps
Logical Standby
Oracle Golden Gate(OGG)
CTAS / IAS
Traditional
Server Hybrid
Storage Physical + Logical
19 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
MIGRATION METHODS
Service interruption
HP Minimal downtime
Source & Target platform
What is important to
choose a best method?
DB Size
IBM Resource availability (HW, SOFTWARE, DBA exp level)
Fallback plan
Can we archive Exa features, like (HCC)?
Traditional Non-RAC to RAC & Non-ASM to ASM
Server Unknown risks
Storage
20 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
21 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
PRE-MIGRATION TASKS
Strong Network Staging Area PATCHING
o 10Gb/s o SAN local filesystem o PATCH Exadata and RDMS
with the latest patch set
o InfiniBand
o NFS
o Large MUT
o DBFS
o Parallelism Exachk
o Run Exachk report to assess
the overall health report
Server Resources RAT
o Good I/O o Capture the workload
o CPU
22 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
23 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
POST MIGRATION STEPS
TUNE/ADJUST
QUERIES TO GATHER EXADATA
SUPPORT SMART SYSTEM STATS
FEATURES
DATA
GATHER
COMPRESSION
OPTIMIZER STATS
(HCC)
24 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
AGENDA
25 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
SUCCESS STORIES
26 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
SUCCESS STORIES - 1
Minimize Downtime of business critical databases
o XTTS with incremental backups
o Migrated 50TB database, with 8-10 hours of downtime
o ZFS storage used to place backups on Source
o Applied parallelism with multiple xtts directories by modifying the Perl script
27 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
SUCCESS STORIES - 2
NEAR ZERO DOWNTIME WITH BACKOUT PLAN
o Used Oracle Golden Gate (OGG) to migrate 70TB telecom DB
o PLANNING IS VERY CRUCIAL
o For Initial Load, Data Pumps and Informatics Fast Clone used
o With bi-directional, fall back plan is used
28 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
SUCCESS STORIES - 3
DW with limited resources, nearly zero downtime
o Migrated 6TB using Data pumps and ETL
o Took almost couple of weeks to sync the data
o Had one month parallel job runs
o Daily job reduced to 1.45m from 6 hrs.
ETL
NON- EXADATA
EXADATA
Local FS NFS
29 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
53 DATABASES TO MIGRATE FROM AIX TO EXADATA
Different teams, different business concerns. One customer, one dead line.
From different migration paths discussed earlier we had three winners.
o Data Pump ( simplicity, small sizes, no downtime constraints )
o RMAN restore ( one source was Linux, no downtime constraints )
o XTTS + incr backups ( larger volume, gain on downtime)
Other challenge reproducibility. We took all the steps to an excel sheet for command
generation
30 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EBS AIX DB ( 30T ) TO MIGRATE TO EXADATA
Heavily used database, growing more than 1T each month
More requirements for EBS interoperability.
XTTS + incr backups ( larger volume, gain on downtime)
Other challenge reproducibility. We took all the steps to an excel sheet for command
generation
31 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
XTTS + INCR. BACKUP
Do not forget to align time zone file version to the target’s ( 12.1 = 18 )
If the source has no columns using TSWTZ or column is empty (as of 11.2.0.4), not required.
Enable block change tracking. (check bug 16850197 for your platform)
This method is simplified with the help of xttdriver.pl from note 1389592.1
Less control, but as always, scripting gives you higher reproducibility and lowers risks.
Does not allow to add data files during the process
check the tablespace growing rate
Add data files upfront
32 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
XTTSDRIVER REQUIRES TO CHANGE RMAN’S DEFAULT
CONFIGURATION – WORKAROUND.
o From the note 1389592.1 you will notice from the prerequisistes that you should alter
RMAN’s default device type should be configured to DISK.
o What if the customer is running a periodic archivelog script assuming default device type is
tape.
o You can modify the script to actually set it to disk for your command. It will override the
default.
33 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
RUNNING XTTSDRIVER.PL IN PARALLEL
o xttsdriver.pl will pickup parameters in a property file in the current directory. ($TMPDIR, -F)
o You can prepare multiple directories with a different set of tablespaces.
o They can be launched in parallel.
o You should modify the script to prevent the target database from bouncing in the roll forward
step.
o If the I/Os and network bandwidth sustain high throughput this is a huge time saver.
34 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
DBCA FLAWS DISCOVERED – DB_FILES IS NOT APPLIED TO
TARGET.
o When creating a database from a generated template from dbca, the parameter db_files is
stuck at 200.
o Was not expected and we noticed at the import step.
o To avoid restarting from the beginning and losing 1 week worth of work, we decided to look
for an alternative.
o Increase db_files
o Drop tablespace keep datafiles ( for the one that were already imported )
o Restart import.
o You can read the full story at https://goo.gl/nt52ZK ( Jaffar’s blog on toadworld)
35 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXCEL TO THE RESCUE
o You will soon realize that the amount of commands to execute becomes daunting.
o I have seen a lot fo DBAs trying to take notes, remember commands, execute cut and paste,
changing where required.
o This can only lead to very stupid mistakes, typo’s, you name it!
o I built at some customers a complete scripted perl solution. This is often rejected, just
because of obstruction. People tend to refuse to use what they cannot master or at least
understand.
o So I started to use Excel to leave the customers and DBA’s with something they already know.
The response was totally different. Smiles and happy faces.
o Let me show you.
36 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXCEL TO THE RESCUE
o I use a first worksheet as the “configuration page”, where you can use all your parameters.
o The usage of label makes it easier to manage formulas in further pages.
37 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
EXCEL TO THE RESCUE
o Then on other worksheets I organize the steps chronologically with concatenation
38 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
QUESTIONS & ANSWERS
sjaffarhussain@gmail.com
Jaffardba.blogspot.com
+966 554816316
39 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential
REFERENCES
• https://www.oracle.com/engineered-systems/exadata/database-machine-x6-2/resources.html#white-papers
• https://blogs.oracle.com/imc/entry/oracle_exadata_database_machine_x5
40 Copyright © 2016, eProseed and/or its affiliates. All rights reserved. | Confidential