SlideShare a Scribd company logo
1 of 53
Download to read offline
Using Oracle Multitenant 
to efficiently manage development and test databases 
Marc Fielding 
Alex Gorbachev 
October 2014
About Marc 
•Principal Consultant with Pythian’s Advanced Technology Group 
•13+ years Oracle production systems experience starting with Oracle 7 
•Blogger and conference presenter pythian.com/news/author/fielding 
•Occasionally on twitter: @mfild 
2 
© 2014 Pythian
About Alex 
•CTO, The Pythian Group 
•Blogger 
•OakTable Network member 
•Oracle ACE Director 
•BattleAgainstAnyGuess.com 
© 2014 Pythian 
3
© 2014 Pythian 
4 
WHO IS PYTHIAN? 
•200+ leading brands trust us to keep their systems fast, up & secure 
•Utterly elite DBA & SysAdmin workforce, 9 Oracle ACEs, 2 ACE directors, 5 Microsoft MVPs, 1 Cloudera Champion of Big Data 
•Oracle, SQL Server, MySQL, Netezza, Cassandra, Hadoop and MongoDB plus UNIX SysAdmin and Apps DBA 
•Big Data Services counter includes architects, R&D, data science and operations capabilities in one easy to buy vehicle 
•Zero lock-in, utility billing model, easily blended into existing teams 
38% 
Pythian has grown an average of 38% every year for the past five years 
345 Pythian employs more than 345 leading minds in 26 countries worldwide.
The Problem 
© 2014 Pythian 
5 
Photo: J. McIntyre via Flickr
Database challenges 
© 2014 Pythian 
6 
Photo: lzee~by~the~Sea via Flickr
What we need 
•Higher density 
–Better use of infrastructure investment 
–Better use of software licenses 
•Less overhead 
–Automated, repeatable processes 
–Self-service 
•Better management 
–Usage tracking 
© 2014 Pythian 
7
Enabling technologies: Oracle Multitenant 
© 2014 Pythian 
8 
Oracle Instance 
PDB 
Shared SGA 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB 
PDB
The storage problem 
© 2014 Pythian 
9 
Photo: V. Matassa via Flickr
Enabling technologies: storage cloning 
© 2014 Pythian 
10 
Master “Golden” Image 
… 
Incremental Change Records 
… 
… 
… 
… 
…
Other resources 
•CPU time 
•Memory 
•I/O capacity 
•Network 
© 2014 Pythian 
11 
Photo: kc_jake via Flickr
Resource management 
•Database resource manager 
–CPU priority and limits 
–Parallel query restrictions 
–Restrict large, runaway queries 
•I/O restrictions 
–IORM in Exadata 
–Storage and OS-level 
•Oracle multitenant limits 
–Storage space 
–Temp space 
•Accounting and costing 
© 2014 Pythian 
12
Backup and recovery 
•Even if it’s dev/test, data matters 
•RMAN backups 
–At the PDB and CDB levels 
•Storage clones 
–Don’t forget I/O to move to other device 
•Back up after provisioning 
–Cloned PDBs are unrecoverable before backups 
© 2014 Pythian 
13
High availability 
© 2014 Pythian 
14 
Photo: Ben Short via Flickr
Self service 
•Obvious next step in reducing overhead 
•Developers managing their own DB 
•OEM implementation exists 
•Business logic = custom 
•Example Oracle APEX app 
–Multitenant Self-Service Provisioning 
© 2014 Pythian 
15 
Photo: D.Alves via flickr
Oracle MSSP application 
•Built using Oracle APEX 
•Currently in beta 
•Example only 
•Only two user types 
•Limited resource management 
–CPU priority 
–Maximum storage size 
•Cloning support (but not enforcement) 
© 2014 Pythian 
16
Data cloning methods 
•Single command: 
–create pluggable database db1_clone1 from db1 snapshot copy; 
•Actual actions depend on filesystem type 
–ZFS appliance and NetApp 
•Database-initiated SNMP calls with stored credentials 
–ACFS 
•Requires full clusterware stack 
–CloneDB on NFS or local filesystem 
© 2014 Pythian 
17
Cloning via CloneDB 
•Existed since 11.2.0.2 for non-PDB 
•In 11gR2: direct NFS only, backed by a full RMAN backup 
•In 12.1.0.2: supports local (non-NFS) filesystems, and RMAN backup not required 
•Uses filesystem-level sparse files 
•Just one DB change 
–alter system set clonedb=true; 
© 2014 Pythian 
18
Cloning with ACFS 
•Lots of sanity checks (good!) 
•Put source DB into read-only mode if not already 
–Sessions doing data changes get ORA-16000 error 
•Invokes acfsutil via oradism shadow process 
acfsutil snap create -w YYYYYYYY /acfsmounts/snapclones 
•Creates symbolic links for each file 
ln –s /acfsmounts/snapclones/.ACFS/snaps/XXXXX/datafile/o1_mf_system_xxxx_.dbf /acfsmounts/snapclones/DEMOCDB/YYYYY/datafile/o1_mf_system_yyyy_.dbf 
•Recreates the tempfile 
•Creates the new pluggable database 
•Enable writes to source DB (if enabled before) 
© 2014 Pythian 
19
Manual ACFS cloning 
•Close and reopen source database read only 
•Run clone command manually 
acfsutil snap create -w testclone1 /acfsmounts/snapclones 
mkdir -p /acfsmounts/snapclones/DEMOCDB/testclone1/datafile 
•Set up symbolic links 
for datafile in /acfsmounts/snapclones/.ACFS/snaps/XXXXX//datafile/*; 
do ln -s $datafile /acfsmounts/snapclones/DEMOCDB/testclone1/datafile/$(basename $datafile); 
done 
•Plug back in as a clone using new location 
create pluggable database newpdb from mypdb file_name_convert=('mypdb', 'newpdb') nocopy; 
•Close and reopen source database 
•Open cloned database 
© 2014 Pythian 
20
Issues and recommendations 
•Oracle managed files 
•ACFS clones entire mountpoints 
•Error messages are very generic 
ORA-65169: error encountered while attempting to copy file 
ORA-17517: Database cloning using storage snapshot failed on file 
Check tracefile, and ACFS log at $CRS_HOME/log/(hostname)/acfs/commands/acfscmds.log 
•Issues with oradism process 
© 2014 Pythian 
21
Data refreshes 
© 2014 Pythian 
22 
Photo: Rob Antill via Flickr
Data masking 
© 2014 Pythian 
23 
Photo: Mary Harrsh via Flickr
A sample implementation 
•VirtualBox VM running Oracle Linux 6 
•Oracle Grid Infrastructure 12.1.0.2 with 1 node 
•ACFS filesystem mounted at /acfsmounts/snapclones 
•Oracle 12.1.0.2 (non-RAC) 
•CDB called DEMOCDB 
•Oracle REST Data Services 2.0.9 (aka APEX listener) in standalone mode 
•Oracle Multitenant Self-Service Provisioning, beta 2 
© 2014 Pythian 
24
Demo time 
© 2014 Pythian 
25 
Photo: Tom Coates via Flickr
Trying it out yourself 
•VM or dedicated hardware 
•OS: Oracle Linux 6 recommended 
•Latest Oracle 12c software 
•CloneDB or ACFS storage 
•In the cloud: ACFS clusterware complications 
© 2014 Pythian 
26
Wrapping up 
•More databases = need a smarter approach 
–Less infrastructure 
–Less administrative effort 
•Key enabling technologies 
–Oracle Multitenant 
–Storage cloning 
–Self-service 
•Tailored to business requirements 
•Download and try it out yourself 
© 2014 Pythian 
27
Thanks and Q&A 
© 2014 Pythian 
28 
fielding@pythian.com gorbachev@pythian.com 
1-877-PYTHIAN 
pythian.com/blog 
http://is.gd/PythianFacebook 
@mfild @alexgorbachev @pythian 
http://linkedin.com/company/pythian 
We’re hiring! 
pythian.com/careers 
Self-service provisioning app download on OTN: tinyurl.com/otndownload
© 2014 Pythian 
29
© 2014 Pythian 
30
© 2014 Pythian 
31
© 2014 Pythian 
32
© 2014 Pythian 
33
© 2014 Pythian 
34
© 2014 Pythian 
35
© 2014 Pythian 
36
© 2014 Pythian 
37
© 2014 Pythian 
38
© 2014 Pythian 
39
© 2014 Pythian 
40
© 2014 Pythian 
41
© 2014 Pythian 
42
© 2014 Pythian 
43
© 2014 Pythian 
44
© 2014 Pythian 
45
© 2014 Pythian 
46
© 2014 Pythian 
47
© 2014 Pythian 
48
© 2014 Pythian 
49
© 2014 Pythian 
50
© 2014 Pythian 
51
© 2014 Pythian 
52
© 2014 Pythian 
53

More Related Content

What's hot

Aman sharma hyd_12crac High Availability Day 2015
Aman sharma hyd_12crac High Availability Day 2015Aman sharma hyd_12crac High Availability Day 2015
Aman sharma hyd_12crac High Availability Day 2015aioughydchapter
 
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...Lucas Jellema
 
Using ACFS as a Storage for EBS
Using ACFS as a Storage for EBSUsing ACFS as a Storage for EBS
Using ACFS as a Storage for EBSAndrejs Karpovs
 
Fontys Lecture - The Evolution of the Oracle Database 2016
Fontys Lecture -  The Evolution of the Oracle Database 2016Fontys Lecture -  The Evolution of the Oracle Database 2016
Fontys Lecture - The Evolution of the Oracle Database 2016Lucas Jellema
 
Optimizing E-Business Suite Storage Using Oracle Advanced Compression
Optimizing E-Business Suite Storage Using Oracle Advanced CompressionOptimizing E-Business Suite Storage Using Oracle Advanced Compression
Optimizing E-Business Suite Storage Using Oracle Advanced CompressionAndrejs Karpovs
 
[Citrix] Perforce Standardisation at Citrix
[Citrix] Perforce Standardisation at Citrix[Citrix] Perforce Standardisation at Citrix
[Citrix] Perforce Standardisation at CitrixPerforce
 
What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...
What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...
What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...Lucas Jellema
 
DevOps Supercharged with Docker on Exadata
DevOps Supercharged with Docker on ExadataDevOps Supercharged with Docker on Exadata
DevOps Supercharged with Docker on ExadataMarketingArrowECS_CZ
 
Turning OpenStack Swift into a VM storage platform
Turning OpenStack Swift into a VM storage platformTurning OpenStack Swift into a VM storage platform
Turning OpenStack Swift into a VM storage platformOpenStack_Online
 
A Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12cA Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12cLeighton Nelson
 
Db2 family and v11.1.4.4
Db2 family and v11.1.4.4Db2 family and v11.1.4.4
Db2 family and v11.1.4.4ModusOptimum
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data centerHoward Marks
 
4. buc od-solaris virtualization-final daw short
4. buc od-solaris virtualization-final daw short4. buc od-solaris virtualization-final daw short
4. buc od-solaris virtualization-final daw shortDoina Draganescu
 
Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...
Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...
Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...DevOpsDays Tel Aviv
 
Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...
Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...
Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...Cloud Native Day Tel Aviv
 
SQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionSQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionTravis Wright
 

What's hot (20)

Highlights of OpenStack Mitaka and the OpenStack Summit
Highlights of OpenStack Mitaka and the OpenStack SummitHighlights of OpenStack Mitaka and the OpenStack Summit
Highlights of OpenStack Mitaka and the OpenStack Summit
 
Aman sharma hyd_12crac High Availability Day 2015
Aman sharma hyd_12crac High Availability Day 2015Aman sharma hyd_12crac High Availability Day 2015
Aman sharma hyd_12crac High Availability Day 2015
 
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
Event Bus as Backbone for Decoupled Microservice Choreography (Oracle Code, A...
 
Using ACFS as a Storage for EBS
Using ACFS as a Storage for EBSUsing ACFS as a Storage for EBS
Using ACFS as a Storage for EBS
 
Fontys Lecture - The Evolution of the Oracle Database 2016
Fontys Lecture -  The Evolution of the Oracle Database 2016Fontys Lecture -  The Evolution of the Oracle Database 2016
Fontys Lecture - The Evolution of the Oracle Database 2016
 
Oracle dba rac 11g training
Oracle dba rac 11g trainingOracle dba rac 11g training
Oracle dba rac 11g training
 
Optimizing E-Business Suite Storage Using Oracle Advanced Compression
Optimizing E-Business Suite Storage Using Oracle Advanced CompressionOptimizing E-Business Suite Storage Using Oracle Advanced Compression
Optimizing E-Business Suite Storage Using Oracle Advanced Compression
 
[Citrix] Perforce Standardisation at Citrix
[Citrix] Perforce Standardisation at Citrix[Citrix] Perforce Standardisation at Citrix
[Citrix] Perforce Standardisation at Citrix
 
What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...
What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...
What is the Oracle PaaS Cloud for Developers (Oracle Cloud Day, The Netherlan...
 
DevOps Supercharged with Docker on Exadata
DevOps Supercharged with Docker on ExadataDevOps Supercharged with Docker on Exadata
DevOps Supercharged with Docker on Exadata
 
Top aos services v 2.0.1
Top aos services v 2.0.1Top aos services v 2.0.1
Top aos services v 2.0.1
 
Turning OpenStack Swift into a VM storage platform
Turning OpenStack Swift into a VM storage platformTurning OpenStack Swift into a VM storage platform
Turning OpenStack Swift into a VM storage platform
 
CloudStackFinalProject
CloudStackFinalProjectCloudStackFinalProject
CloudStackFinalProject
 
A Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12cA Second Look at Oracle RAC 12c
A Second Look at Oracle RAC 12c
 
Db2 family and v11.1.4.4
Db2 family and v11.1.4.4Db2 family and v11.1.4.4
Db2 family and v11.1.4.4
 
2015 deploying flash in the data center
2015 deploying flash in the data center2015 deploying flash in the data center
2015 deploying flash in the data center
 
4. buc od-solaris virtualization-final daw short
4. buc od-solaris virtualization-final daw short4. buc od-solaris virtualization-final daw short
4. buc od-solaris virtualization-final daw short
 
Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...
Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...
Developing the Stratoscale System at Scale - Muli Ben-Yehuda, Stratoscale - D...
 
Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...
Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...
Muli Ben-Yehuda, Stratoscale - The Road to a Hyper-Converged OpenStack, OpenS...
 
SQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux IntroductionSQL Server 2017 on Linux Introduction
SQL Server 2017 on Linux Introduction
 

Similar to Using Oracle Multitenant to efficiently manage dev and test databases

Simplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cSimplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cMaris Elsins
 
Vijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresVijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresmkorremans
 
OOW13: Accelerate your Exadata deployment with the DBA skills you already have
OOW13: Accelerate your Exadata deployment with the DBA skills you already haveOOW13: Accelerate your Exadata deployment with the DBA skills you already have
OOW13: Accelerate your Exadata deployment with the DBA skills you already haveMarc Fielding
 
Exadata 12c New Features RMOUG
Exadata 12c New Features RMOUGExadata 12c New Features RMOUG
Exadata 12c New Features RMOUGFuad Arshad
 
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISPOptimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISPSecure-24
 
Oracle cloud storage and file system
Oracle cloud storage and file systemOracle cloud storage and file system
Oracle cloud storage and file systemAndrejs Karpovs
 
Using Docker in production: Get started today!
Using Docker in production: Get started today!Using Docker in production: Get started today!
Using Docker in production: Get started today!Clarence Bakirtzidis
 
Get the Facts: Oracle's Unbreakable Enterprise Kernel
Get the Facts: Oracle's Unbreakable Enterprise KernelGet the Facts: Oracle's Unbreakable Enterprise Kernel
Get the Facts: Oracle's Unbreakable Enterprise KernelTerry Wang
 
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...VMworld
 
Using oracle cloud to speed up e business suite 12.2 upgrade
Using oracle cloud to speed up e business suite 12.2 upgradeUsing oracle cloud to speed up e business suite 12.2 upgrade
Using oracle cloud to speed up e business suite 12.2 upgradevasuballa
 
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...avanttic Consultoría Tecnológica
 
Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale NetApp
 
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...Citrix
 
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"Fwdays
 
Citrix Synergy 2014: Going the CloudPlatform Way
Citrix Synergy 2014: Going the CloudPlatform WayCitrix Synergy 2014: Going the CloudPlatform Way
Citrix Synergy 2014: Going the CloudPlatform WayIliyas Shirol
 
There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...
There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...
There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...DataStax
 
GWAVACon 2013: Novell Open Enterprise Server - Roadmap and Future
GWAVACon 2013: Novell Open Enterprise Server - Roadmap and FutureGWAVACon 2013: Novell Open Enterprise Server - Roadmap and Future
GWAVACon 2013: Novell Open Enterprise Server - Roadmap and FutureGWAVA
 
Practical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environmentsPractical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environmentsNelson Calero
 
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016Dylan Butler
 

Similar to Using Oracle Multitenant to efficiently manage dev and test databases (20)

Simplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cSimplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12c
 
Vijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-featuresVijfhart thema-avond-oracle-12c-new-features
Vijfhart thema-avond-oracle-12c-new-features
 
OOW13: Accelerate your Exadata deployment with the DBA skills you already have
OOW13: Accelerate your Exadata deployment with the DBA skills you already haveOOW13: Accelerate your Exadata deployment with the DBA skills you already have
OOW13: Accelerate your Exadata deployment with the DBA skills you already have
 
Exadata 12c New Features RMOUG
Exadata 12c New Features RMOUGExadata 12c New Features RMOUG
Exadata 12c New Features RMOUG
 
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISPOptimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
Optimize and Simplify Oracle 12C RAC using dNFS, ZFS and OISP
 
Oracle cloud storage and file system
Oracle cloud storage and file systemOracle cloud storage and file system
Oracle cloud storage and file system
 
Using Docker in production: Get started today!
Using Docker in production: Get started today!Using Docker in production: Get started today!
Using Docker in production: Get started today!
 
Get the Facts: Oracle's Unbreakable Enterprise Kernel
Get the Facts: Oracle's Unbreakable Enterprise KernelGet the Facts: Oracle's Unbreakable Enterprise Kernel
Get the Facts: Oracle's Unbreakable Enterprise Kernel
 
dbaas-clone
dbaas-clonedbaas-clone
dbaas-clone
 
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
VMworld 2013: Three Advantages of Running Cloud Foundry in a VMware Private C...
 
Using oracle cloud to speed up e business suite 12.2 upgrade
Using oracle cloud to speed up e business suite 12.2 upgradeUsing oracle cloud to speed up e business suite 12.2 upgrade
Using oracle cloud to speed up e business suite 12.2 upgrade
 
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
Meetup Oracle Database: 3 Analizar, Aconsejar, Automatizar… las nuevas funcio...
 
Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale
 
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...
Citrix Synergy 2014 - Syn233 Building and operating a Dev Ops cloud: best pra...
 
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
Sergey Dzyuban "To Build My Own Cloud with Blackjack…"
 
Citrix Synergy 2014: Going the CloudPlatform Way
Citrix Synergy 2014: Going the CloudPlatform WayCitrix Synergy 2014: Going the CloudPlatform Way
Citrix Synergy 2014: Going the CloudPlatform Way
 
There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...
There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...
There are More Clouds! Azure and Cassandra (Carlos Rolo, Pythian) | C* Summit...
 
GWAVACon 2013: Novell Open Enterprise Server - Roadmap and Future
GWAVACon 2013: Novell Open Enterprise Server - Roadmap and FutureGWAVACon 2013: Novell Open Enterprise Server - Roadmap and Future
GWAVACon 2013: Novell Open Enterprise Server - Roadmap and Future
 
Practical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environmentsPractical guide to Oracle Virtual environments
Practical guide to Oracle Virtual environments
 
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
Transitioning From SQL Server to MySQL - Presentation from Percona Live 2016
 

Recently uploaded

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 

Recently uploaded (20)

Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 

Using Oracle Multitenant to efficiently manage dev and test databases

  • 1. Using Oracle Multitenant to efficiently manage development and test databases Marc Fielding Alex Gorbachev October 2014
  • 2. About Marc •Principal Consultant with Pythian’s Advanced Technology Group •13+ years Oracle production systems experience starting with Oracle 7 •Blogger and conference presenter pythian.com/news/author/fielding •Occasionally on twitter: @mfild 2 © 2014 Pythian
  • 3. About Alex •CTO, The Pythian Group •Blogger •OakTable Network member •Oracle ACE Director •BattleAgainstAnyGuess.com © 2014 Pythian 3
  • 4. © 2014 Pythian 4 WHO IS PYTHIAN? •200+ leading brands trust us to keep their systems fast, up & secure •Utterly elite DBA & SysAdmin workforce, 9 Oracle ACEs, 2 ACE directors, 5 Microsoft MVPs, 1 Cloudera Champion of Big Data •Oracle, SQL Server, MySQL, Netezza, Cassandra, Hadoop and MongoDB plus UNIX SysAdmin and Apps DBA •Big Data Services counter includes architects, R&D, data science and operations capabilities in one easy to buy vehicle •Zero lock-in, utility billing model, easily blended into existing teams 38% Pythian has grown an average of 38% every year for the past five years 345 Pythian employs more than 345 leading minds in 26 countries worldwide.
  • 5. The Problem © 2014 Pythian 5 Photo: J. McIntyre via Flickr
  • 6. Database challenges © 2014 Pythian 6 Photo: lzee~by~the~Sea via Flickr
  • 7. What we need •Higher density –Better use of infrastructure investment –Better use of software licenses •Less overhead –Automated, repeatable processes –Self-service •Better management –Usage tracking © 2014 Pythian 7
  • 8. Enabling technologies: Oracle Multitenant © 2014 Pythian 8 Oracle Instance PDB Shared SGA PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB PDB
  • 9. The storage problem © 2014 Pythian 9 Photo: V. Matassa via Flickr
  • 10. Enabling technologies: storage cloning © 2014 Pythian 10 Master “Golden” Image … Incremental Change Records … … … … …
  • 11. Other resources •CPU time •Memory •I/O capacity •Network © 2014 Pythian 11 Photo: kc_jake via Flickr
  • 12. Resource management •Database resource manager –CPU priority and limits –Parallel query restrictions –Restrict large, runaway queries •I/O restrictions –IORM in Exadata –Storage and OS-level •Oracle multitenant limits –Storage space –Temp space •Accounting and costing © 2014 Pythian 12
  • 13. Backup and recovery •Even if it’s dev/test, data matters •RMAN backups –At the PDB and CDB levels •Storage clones –Don’t forget I/O to move to other device •Back up after provisioning –Cloned PDBs are unrecoverable before backups © 2014 Pythian 13
  • 14. High availability © 2014 Pythian 14 Photo: Ben Short via Flickr
  • 15. Self service •Obvious next step in reducing overhead •Developers managing their own DB •OEM implementation exists •Business logic = custom •Example Oracle APEX app –Multitenant Self-Service Provisioning © 2014 Pythian 15 Photo: D.Alves via flickr
  • 16. Oracle MSSP application •Built using Oracle APEX •Currently in beta •Example only •Only two user types •Limited resource management –CPU priority –Maximum storage size •Cloning support (but not enforcement) © 2014 Pythian 16
  • 17. Data cloning methods •Single command: –create pluggable database db1_clone1 from db1 snapshot copy; •Actual actions depend on filesystem type –ZFS appliance and NetApp •Database-initiated SNMP calls with stored credentials –ACFS •Requires full clusterware stack –CloneDB on NFS or local filesystem © 2014 Pythian 17
  • 18. Cloning via CloneDB •Existed since 11.2.0.2 for non-PDB •In 11gR2: direct NFS only, backed by a full RMAN backup •In 12.1.0.2: supports local (non-NFS) filesystems, and RMAN backup not required •Uses filesystem-level sparse files •Just one DB change –alter system set clonedb=true; © 2014 Pythian 18
  • 19. Cloning with ACFS •Lots of sanity checks (good!) •Put source DB into read-only mode if not already –Sessions doing data changes get ORA-16000 error •Invokes acfsutil via oradism shadow process acfsutil snap create -w YYYYYYYY /acfsmounts/snapclones •Creates symbolic links for each file ln –s /acfsmounts/snapclones/.ACFS/snaps/XXXXX/datafile/o1_mf_system_xxxx_.dbf /acfsmounts/snapclones/DEMOCDB/YYYYY/datafile/o1_mf_system_yyyy_.dbf •Recreates the tempfile •Creates the new pluggable database •Enable writes to source DB (if enabled before) © 2014 Pythian 19
  • 20. Manual ACFS cloning •Close and reopen source database read only •Run clone command manually acfsutil snap create -w testclone1 /acfsmounts/snapclones mkdir -p /acfsmounts/snapclones/DEMOCDB/testclone1/datafile •Set up symbolic links for datafile in /acfsmounts/snapclones/.ACFS/snaps/XXXXX//datafile/*; do ln -s $datafile /acfsmounts/snapclones/DEMOCDB/testclone1/datafile/$(basename $datafile); done •Plug back in as a clone using new location create pluggable database newpdb from mypdb file_name_convert=('mypdb', 'newpdb') nocopy; •Close and reopen source database •Open cloned database © 2014 Pythian 20
  • 21. Issues and recommendations •Oracle managed files •ACFS clones entire mountpoints •Error messages are very generic ORA-65169: error encountered while attempting to copy file ORA-17517: Database cloning using storage snapshot failed on file Check tracefile, and ACFS log at $CRS_HOME/log/(hostname)/acfs/commands/acfscmds.log •Issues with oradism process © 2014 Pythian 21
  • 22. Data refreshes © 2014 Pythian 22 Photo: Rob Antill via Flickr
  • 23. Data masking © 2014 Pythian 23 Photo: Mary Harrsh via Flickr
  • 24. A sample implementation •VirtualBox VM running Oracle Linux 6 •Oracle Grid Infrastructure 12.1.0.2 with 1 node •ACFS filesystem mounted at /acfsmounts/snapclones •Oracle 12.1.0.2 (non-RAC) •CDB called DEMOCDB •Oracle REST Data Services 2.0.9 (aka APEX listener) in standalone mode •Oracle Multitenant Self-Service Provisioning, beta 2 © 2014 Pythian 24
  • 25. Demo time © 2014 Pythian 25 Photo: Tom Coates via Flickr
  • 26. Trying it out yourself •VM or dedicated hardware •OS: Oracle Linux 6 recommended •Latest Oracle 12c software •CloneDB or ACFS storage •In the cloud: ACFS clusterware complications © 2014 Pythian 26
  • 27. Wrapping up •More databases = need a smarter approach –Less infrastructure –Less administrative effort •Key enabling technologies –Oracle Multitenant –Storage cloning –Self-service •Tailored to business requirements •Download and try it out yourself © 2014 Pythian 27
  • 28. Thanks and Q&A © 2014 Pythian 28 fielding@pythian.com gorbachev@pythian.com 1-877-PYTHIAN pythian.com/blog http://is.gd/PythianFacebook @mfild @alexgorbachev @pythian http://linkedin.com/company/pythian We’re hiring! pythian.com/careers Self-service provisioning app download on OTN: tinyurl.com/otndownload