SlideShare uma empresa Scribd logo
1 de 44
Baixar para ler offline
Under the Hood of
Pluggable Databases
Alex Gorbachev
San Francisco, CA
September 2013
Alex Gorbachev
• 
• 
• 
• 
• 
• 
• 
• 
• 

Chief Technology Officer at Pythian
Blogger
Cloudera Champion of Big Data
OakTable Network member
Oracle ACE Director
Founder of BattleAgainstAnyGuess.com
Founder of Sydney Oracle Meetup
IOUG Director of Communities
EVP, Ottawa Oracle User Group
Who is Pythian?
• 
• 
• 
• 
• 
• 

© 20133Pythian

15 Years of Data
infrastructure
management consulting
170+ Top brands
6000+ databases under
management
Over 200 DBA’s, in 26
countries
Top 5% of DBA work
force, 9 Oracle ACE’s, 2
Microsoft MVP’s
Oracle, Microsoft, MySQL
partners, Netezza,
Hadoop and MongoDB
plus UNIX Sysadmin and
Oracle apps
When to engage Pythian?
LOVE YOUR DATA
Strategic upside value
from data

Profit

Value of Data

Loss

Tier 3 Data
Local Retailer

Tier 2 Data
eCommerce

© 20134Pythian

Tier 1 Data
Health Care

Impact of an incident,
whether it be data loss,
security, human error,
etc.
Agenda
• 
• 
• 
• 

PDB introduction & use cases
How PDB works
Manipulating PDBs
Wrapping up
Consolidation options pre-12c
• 
• 
• 
• 

Multiple physical machines
Multiple virtual machines
Multiple databases
Multiple schemas

Flexibility

Efficiency
Consolidation options today
• 
• 
• 
• 
• 

Multiple physical machines
Multiple virtual machines
Multiple databases
Multiple pluggable databases
Multiple schemas

Flexibility

Efficiency
Like a single database
• 
• 
• 
• 
• 

One buffer cache and shared pool
One set of background processes
Can be backed up and data guard all at once
Single RAC cluster
Supports hundreds of fully isolated applications
in one DB
•  Global resource management
Like separate databases
•  Full isolation of each application
•  No application changes required for
consolidation
•  Support for public synonyms without conflicts
•  Granular resource management
•  Per-database startup/shutdown/recovery
•  Internal PDB resource management
New Capabilities
• 
• 
• 
• 
• 
• 

Plug/unplug entire PDB database
Rapid PDB cloning
Separation of roles (PDB admin vs CDB admin)
Resource management
Recovery of individual PDBs
Saving resources
Use cases
Database consolidation
•  The obvious one
•  Increase efficiencies and drive down costs
•  Simplify maintenance
Development and testing
environments
•  Simple clones and refreshes
Cloud and SaaS hosting
•  Host multiple environments efficiently
Simplified patches and upgrades
•  Upgrade a whole set of databases at once
•  Plug/unplug databases to upgrade to future
database versions
How it works
The technical part
Terminology

PDB$SEED

CDB$ROOT

CDB

PDB3

PDB4

PDB1

PDB2
Data Dictionary and PDBs
•  DD metadata is stored in root only
–  Like TAB$ and its columns definitions
–  PDB links to that metadata in the root
–  Cannot be changed from PDB

•  DD content is stored in both root and PDBs
–  Root contains rows about common entries
–  PDB inherits data from root (read-only) + add its own

•  Some objects are visible from both root and
PDBs
The split data dictionary
•  PDB and CDB both have SYSTEM/SYSAUX
tablespaces
•  Metadata Links and object links expose common
data and metadata to PDBs
–  Built-in PL/SQL objects for example

•  PDB sessions see a combination of common
and private data
–  Think UNION
Changes to data dictionary views
•  DBA_ views in a CDB root only show common
objects
•  CDB_ views: show all objects, common and for
all PDBs
•  CDB_PDBS: PDB associated with a given CDB
•  CDB_PDB_HISTORY: history of plug/unplug
operations
•  CON_ID column added to most data dictionary
and performance view; identifies container DB
Oracle database kernel for PDB
•  Memory structures are instrumented
–  Every entry gets con_id
–  All X$ tables expose con_id
–  V$ views on top of these X$ views utilize con_id filter
–  PDB level views and tables filter records only for that
container

•  Data dictionary becomes a merge of common
and PDB objects
–  OBJ$, TAB$ and etc.
So what about:
• 
• 
• 
• 
• 
• 
• 
• 
• 
• 

Table SCOTT.TAB1
Database links
Controlfiles
Package DBMS_SHARED_POOL
Package SCOTT.PKG1
Redo logs
Undo tablespaces
Flashback logs
TDE encryption keys
Temp tablespace
More complex cases
•  Table SYS.OBJ$
•  Has metadata for both common and local
objects
•  Remember: we must maintain application
transparency, even when querying the data
dictionary
Network Connectivity
•  Separate service names
–  Within CDB
–  Within listeners
Separation of duties
•  Local and common users
Resource management
•  Making sure one PDB doesn’t monopolize
shared resources
•  Database resource manager has been
enhanced with PDB awareness
•  Can manage resources inside a PDB and
between PDBs
•  I/O resource manager (Exadata) has too
•  Storage limits can be applied to PDB objects.
Examples: total DB size, max shared temp
usage
Management tools
•  Plain old SQL works 
•  OEM 12c has
pluggable database
awareness – dropdown
box to select a PDB
•  SQL developer works
with pluggable
databases too
Backup and restore
•  PDBs and CDBs have their own datafiles
•  RMAN runs from the root CDB
•  Can do operations on entire CDB, or individual
PDBs
•  Remember undo and redo are common, so PDB
backups include this common data too
Four ways to get a PDB (1)
•  From PDB$SEED
–  Creates a blank database
–  Can also create a local admin user, default tablespace,
local tempspace

•  From an existing local PDB
–  Like TTS, must be opened read-only
–  Inherits attributed unless overridden
–  file_name_convert for example

•  From an existing remote PDB
–  The source PDB can be on another CDB
–  Metadata transferred using a database link
–  Character set and endian format must match
Four ways to get a PDB (2)
•  From an unplugged PDB
–  Metadata saved in an XML file as part of the unplug
process
–  Use dbms_pdb.check_plug_compatibility to
verify compatibility: character set, endian format

•  File transfers
–  Use either built-in Oracle copy or external transfer like
copy-on-write snapshots
–  Oracle copy can run in parallel, but COW snapshots
are almost always faster
–  file_name_convert option to change file location
pointers, or use OMF
Cloning a PDB: preparation
•  File name conversion options:
–  file_name_convert clause in plug operation
–  Use Oracle managed files to guarantee uniqueness
–  Set PDB_FILE_NAME_CONVERT initialization
parameter for default values

•  Choose file copy method: use Oracle to copy
files (COPY clause), or externally like a copy-onwrite snapshot (NOCOPY clause)
Cloning a PDB
• 
• 
• 
• 

Connect to CDB root as an admin user
Reopen source pdb in read-only mode
alter pluggable database pdb1 close;
alter pluggable database pdb1 open
read only;
•  create pluggable database pdb3 from
pdb1 admin user adm identified by
secret file_name_convert = (‘/u01/
oradata/pdb1’,’/u01/oradata/pdb3’);
•  Open the database
•  alter pluggable database pdb3 open;
Cloning a remote PDB
•  You clone directly from another CDB
•  Communication happens through a database link
•  CDBs must be binary compatible (endian format,
character set, etc)
•  file_name_convert and other parameters work
the same way
•  create pluggable database pdb4 from
pdb1@remote_site admin user adm
identified by secret;
•  alter pluggable database pdb4 open;
Creating an empty PDB
•  Just like cloning, but you clone the Seed
database
•  Seed database is initially empty
•  Use regular create database syntax to create
additional users and tablespaces
•  create pluggable database pdb5 admin
user adm identified by secret
default tablespace users datafile ‘/
u01/oradata/pdb5/users_01.dbf’ size
500m;
•  alter pluggable database pdb5 open;
Unplugging and re-plugging
•  Similar to transportable tablespaces
•  XML file has PDB metadata
•  Connect to source CDB as an administrative
user
•  Shut down PDB
•  alter pluggable database pdb2 close;
•  alter pluggable database pdb2 unplug
into ‘/u01/oradata/pdb2/pdb2.xml’;
•  drop pluggable database pdb2 keep
datafiles;
Unplugging and re-plugging (2)
•  Like transportable tablespaces, you can check
compatibility
•  Run from destination CDB
•  select
dbms_pdb.check_plug_compatibility
( pdb_descr_file=>’/u01/oradata/
pdb2/pdb2.xml’, store_report=>true)
from dual;
•  Errors are logged in the
pdb_plug_in_violations table
Unplugging and re-plugging (3)
•  We’re now ready to plug in the PDB
•  Use AS CLONE to create new unique IDs, if a
local clone already exists
•  If files have been moved externally, use nocopy
source_file_convert
•  create plugggable database pdb2
using ‘/u01/oradata/pdb2/pdb2.xml’
nocopy;
Migrating to pluggable databases
•  Convert non-CDB 12c into a PDB by generating
PDB XML file
•  Create a blank PDB and use logical replication
tools (data pump, GoldenGate, CTAS over DB
link) to bring data over from pre-12c
•  Upgrade as a standalone database to 12c, and
then plug in as a PDB
•  For future releases and patches, simply unplug
and plug into new-version CDB directly
Lessons learned
•  Copy-on-write snapshots rock with PDBs
–  They save storage space too

•  PDBs do not open automatically on startup;
–  use alter pluggable database all open;

•  Naming: don’t prefix PDB names with CDB
•  Avoid PDB names conflicts – moving between
CDBs is an issue + potential service names
conflict in listener registrations
Watch for
•  More workload to shared processes and resources –
might require more efforts to make sure they don’t
become bottlenecks
– 
– 
– 
– 
– 
– 
– 
– 

LGWR process
DBWR processes
LMS processes
SQL Area
Data Dictionary
Audit trail
Buffer cache
Data Guard log shipment

•  Not based on experience but just a simple thought
experiment
Is it worth extra cost?
•  Single PDB deployment is free
–  Plug/unplug upgrade use case

•  Extra option costs 37% list on top of
pure EE
–  Take in account other options you
have and it might only be around 10%
of incremental cost
–  Easy to save more resources
(including licensed CPU capacity)
when consolidating at scale
Wrapping up
•  PDB is a major improvement in Oracle database
functionality
–  Main benefits – improved agility and reduce
consolidated resource usage

•  PDBs give benefits of both multi-database and
multi-schema consolidation
•  Transparent to applications
•  Might require more attention to individual
components administration
Thanks and Q&A
Contact info
gorbachev@pythian.com
+1-877-PYTHIAN

To follow us
pythian.com/blog
@alexgorbachev
@pythian
linkedin.com/company/pythian

Mais conteúdo relacionado

Mais procurados

Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databasesJames Serra
 
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 Database
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 DatabaseeProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 Database
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 DatabaseMarco Gralike
 
SQL on Hadoop
SQL on HadoopSQL on Hadoop
SQL on Hadoopnvvrajesh
 
Oracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsOracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsMaria Colgan
 
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahTurning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahData Con LA
 
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...Charlie Berger
 
EDB's Migration Portal - Migrate from Oracle to Postgres
EDB's Migration Portal - Migrate from Oracle to PostgresEDB's Migration Portal - Migrate from Oracle to Postgres
EDB's Migration Portal - Migrate from Oracle to PostgresEDB
 
Big Data Introduction - Solix empower
Big Data Introduction - Solix empowerBig Data Introduction - Solix empower
Big Data Introduction - Solix empowerDurga Gadiraju
 
Big Data Developers Moscow Meetup 1 - sql on hadoop
Big Data Developers Moscow Meetup 1  - sql on hadoopBig Data Developers Moscow Meetup 1  - sql on hadoop
Big Data Developers Moscow Meetup 1 - sql on hadoopbddmoscow
 
Tame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationTame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationMichael Rainey
 
Jethro for tableau webinar (11 15)
Jethro for tableau webinar (11 15)Jethro for tableau webinar (11 15)
Jethro for tableau webinar (11 15)Remy Rosenbaum
 
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021Sandesh Rao
 
Migrating from Oracle to Postgres
Migrating from Oracle to PostgresMigrating from Oracle to Postgres
Migrating from Oracle to PostgresEDB
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnikbiz
 
Oracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration HustleOracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration HustleEDB
 
Hadoop and IDW - When_to_use_which
Hadoop and IDW - When_to_use_whichHadoop and IDW - When_to_use_which
Hadoop and IDW - When_to_use_whichDan TheMan
 
JethroData technical white paper
JethroData technical white paperJethroData technical white paper
JethroData technical white paperJethroData
 
Intro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with sparkIntro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with sparkAlex Zeltov
 
Migration from Oracle to PostgreSQL: NEED vs REALITY
Migration from Oracle to PostgreSQL: NEED vs REALITYMigration from Oracle to PostgreSQL: NEED vs REALITY
Migration from Oracle to PostgreSQL: NEED vs REALITYAshnikbiz
 

Mais procurados (20)

Relational databases vs Non-relational databases
Relational databases vs Non-relational databasesRelational databases vs Non-relational databases
Relational databases vs Non-relational databases
 
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 Database
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 DatabaseeProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 Database
eProseed Oracle Open World 2016 debrief - Oracle 12.2.0.1 Database
 
SQL On Hadoop
SQL On HadoopSQL On Hadoop
SQL On Hadoop
 
SQL on Hadoop
SQL on HadoopSQL on Hadoop
SQL on Hadoop
 
Oracle database 12c_and_DevOps
Oracle database 12c_and_DevOpsOracle database 12c_and_DevOps
Oracle database 12c_and_DevOps
 
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahTurning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
 
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
Oracle’s Advanced Analytics & Machine Learning 12.2c New Features & Road Map;...
 
EDB's Migration Portal - Migrate from Oracle to Postgres
EDB's Migration Portal - Migrate from Oracle to PostgresEDB's Migration Portal - Migrate from Oracle to Postgres
EDB's Migration Portal - Migrate from Oracle to Postgres
 
Big Data Introduction - Solix empower
Big Data Introduction - Solix empowerBig Data Introduction - Solix empower
Big Data Introduction - Solix empower
 
Big Data Developers Moscow Meetup 1 - sql on hadoop
Big Data Developers Moscow Meetup 1  - sql on hadoopBig Data Developers Moscow Meetup 1  - sql on hadoop
Big Data Developers Moscow Meetup 1 - sql on hadoop
 
Tame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationTame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data Integration
 
Jethro for tableau webinar (11 15)
Jethro for tableau webinar (11 15)Jethro for tableau webinar (11 15)
Jethro for tableau webinar (11 15)
 
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
AutoML - Heralding a New Era of Machine Learning - CASOUG Oct 2021
 
Migrating from Oracle to Postgres
Migrating from Oracle to PostgresMigrating from Oracle to Postgres
Migrating from Oracle to Postgres
 
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
Ashnik EnterpriseDB PostgreSQL - A real alternative to Oracle
 
Oracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration HustleOracle to Postgres Schema Migration Hustle
Oracle to Postgres Schema Migration Hustle
 
Hadoop and IDW - When_to_use_which
Hadoop and IDW - When_to_use_whichHadoop and IDW - When_to_use_which
Hadoop and IDW - When_to_use_which
 
JethroData technical white paper
JethroData technical white paperJethroData technical white paper
JethroData technical white paper
 
Intro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with sparkIntro to big data analytics using microsoft machine learning server with spark
Intro to big data analytics using microsoft machine learning server with spark
 
Migration from Oracle to PostgreSQL: NEED vs REALITY
Migration from Oracle to PostgreSQL: NEED vs REALITYMigration from Oracle to PostgreSQL: NEED vs REALITY
Migration from Oracle to PostgreSQL: NEED vs REALITY
 

Semelhante a Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeWorld 2013 UTHPDB

Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insightsKirill Loifman
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudipasalapudi123
 
Simplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cSimplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cMaris Elsins
 
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Clouddyahalom
 
SOUG PDB Security, Isolation and DB Nest 20c
SOUG PDB Security, Isolation and DB Nest 20cSOUG PDB Security, Isolation and DB Nest 20c
SOUG PDB Security, Isolation and DB Nest 20cStefan Oehrli
 
Exploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cExploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cZohar Elkayam
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intropasalapudi
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecturePini Dibask
 
TechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - Trivadis
TechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - TrivadisTechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - Trivadis
TechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - TrivadisTrivadis
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantPini Dibask
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best PracticesMark Ginnebaugh
 
Gloc gangler 2018._v4
Gloc gangler 2018._v4Gloc gangler 2018._v4
Gloc gangler 2018._v4Secure-24
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantPini Dibask
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantPini Dibask
 
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
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesAlfredo Abate
 

Semelhante a Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeWorld 2013 UTHPDB (20)

Oracle 12c PDB insights
Oracle 12c PDB insightsOracle 12c PDB insights
Oracle 12c PDB insights
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudi
 
Simplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12cSimplify Consolidation with Oracle Database 12c
Simplify Consolidation with Oracle Database 12c
 
Presentation day2 oracle12c
Presentation day2 oracle12cPresentation day2 oracle12c
Presentation day2 oracle12c
 
Exploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your CloudExploring Oracle Database 12c Multitenant best practices for your Cloud
Exploring Oracle Database 12c Multitenant best practices for your Cloud
 
SOUG PDB Security, Isolation and DB Nest 20c
SOUG PDB Security, Isolation and DB Nest 20cSOUG PDB Security, Isolation and DB Nest 20c
SOUG PDB Security, Isolation and DB Nest 20c
 
Presentation day1oracle 12c
Presentation day1oracle 12cPresentation day1oracle 12c
Presentation day1oracle 12c
 
Exploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12cExploring Oracle Multitenant in Oracle Database 12c
Exploring Oracle Multitenant in Oracle Database 12c
 
Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 
Oracle 12c - Multitenant Feature
Oracle 12c - Multitenant FeatureOracle 12c - Multitenant Feature
Oracle 12c - Multitenant Feature
 
OOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architectureOOW 17 - database consolidation using the oracle multitenant architecture
OOW 17 - database consolidation using the oracle multitenant architecture
 
Presentation day5 oracle12c
Presentation day5 oracle12cPresentation day5 oracle12c
Presentation day5 oracle12c
 
TechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - Trivadis
TechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - TrivadisTechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - Trivadis
TechEvent 2019: Oracle PDB Isolation and Security; Stefan Oehrli - Trivadis
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle Multitenant
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best Practices
 
Gloc gangler 2018._v4
Gloc gangler 2018._v4Gloc gangler 2018._v4
Gloc gangler 2018._v4
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
 
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle MultitenantRMOUG 18 - Winning Performance Challenges in Oracle Multitenant
RMOUG 18 - Winning Performance Challenges in Oracle Multitenant
 
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
 
COUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_FeaturesCOUG_AAbate_Oracle_Database_12c_New_Features
COUG_AAbate_Oracle_Database_12c_New_Features
 

Mais de Alex Gorbachev

Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...
Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...
Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...Alex Gorbachev
 
UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...
UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...
UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...Alex Gorbachev
 
Benchmarking Oracle I/O Performance with Orion by Alex Gorbachev
Benchmarking Oracle I/O Performance with Orion by Alex GorbachevBenchmarking Oracle I/O Performance with Orion by Alex Gorbachev
Benchmarking Oracle I/O Performance with Orion by Alex GorbachevAlex Gorbachev
 
Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...
Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...
Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...Alex Gorbachev
 
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...Alex Gorbachev
 
MOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, Pythian
MOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, PythianMOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, Pythian
MOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, PythianAlex Gorbachev
 
Oracle ASM 11g - The Evolution
Oracle ASM 11g - The EvolutionOracle ASM 11g - The Evolution
Oracle ASM 11g - The EvolutionAlex Gorbachev
 
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...Alex Gorbachev
 

Mais de Alex Gorbachev (8)

Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...
Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...
Bridging Oracle Database and Hadoop by Alex Gorbachev, Pythian from Oracle Op...
 
UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...
UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...
UTHOC2 - Under The Hood of Oracle Clusterware 2.0 - Grid Infrastructure by Al...
 
Benchmarking Oracle I/O Performance with Orion by Alex Gorbachev
Benchmarking Oracle I/O Performance with Orion by Alex GorbachevBenchmarking Oracle I/O Performance with Orion by Alex Gorbachev
Benchmarking Oracle I/O Performance with Orion by Alex Gorbachev
 
Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...
Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...
Demystifying Oracle RAC Workload Management by Alex Gorbachev, Pythian | NoCO...
 
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
MOW2010: 1TB MySQL Database Migration and HA Infrastructure by Alex Gorbachev...
 
MOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, Pythian
MOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, PythianMOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, Pythian
MOW2010: Under the Hood of Oracle Clusterware by Alex Gorbachev, Pythian
 
Oracle ASM 11g - The Evolution
Oracle ASM 11g - The EvolutionOracle ASM 11g - The Evolution
Oracle ASM 11g - The Evolution
 
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...
Oracle 11g New Features Out-of-the-Box by Alex Gorbachev (from Sydney Oracle ...
 

Último

Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfAarwolf Industries LLC
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Kaya Weers
 
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
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
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
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
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
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 

Último (20)

Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Landscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdfLandscape Catalogue 2024 Australia-1.pdf
Landscape Catalogue 2024 Australia-1.pdf
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)Design pattern talk by Kaya Weers - 2024 (v2)
Design pattern talk by Kaya Weers - 2024 (v2)
 
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
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
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
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
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
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 

Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeWorld 2013 UTHPDB

  • 1. Under the Hood of Pluggable Databases Alex Gorbachev San Francisco, CA September 2013
  • 2. Alex Gorbachev •  •  •  •  •  •  •  •  •  Chief Technology Officer at Pythian Blogger Cloudera Champion of Big Data OakTable Network member Oracle ACE Director Founder of BattleAgainstAnyGuess.com Founder of Sydney Oracle Meetup IOUG Director of Communities EVP, Ottawa Oracle User Group
  • 3. Who is Pythian? •  •  •  •  •  •  © 20133Pythian 15 Years of Data infrastructure management consulting 170+ Top brands 6000+ databases under management Over 200 DBA’s, in 26 countries Top 5% of DBA work force, 9 Oracle ACE’s, 2 Microsoft MVP’s Oracle, Microsoft, MySQL partners, Netezza, Hadoop and MongoDB plus UNIX Sysadmin and Oracle apps
  • 4. When to engage Pythian? LOVE YOUR DATA Strategic upside value from data Profit Value of Data Loss Tier 3 Data Local Retailer Tier 2 Data eCommerce © 20134Pythian Tier 1 Data Health Care Impact of an incident, whether it be data loss, security, human error, etc.
  • 5.
  • 6. Agenda •  •  •  •  PDB introduction & use cases How PDB works Manipulating PDBs Wrapping up
  • 7. Consolidation options pre-12c •  •  •  •  Multiple physical machines Multiple virtual machines Multiple databases Multiple schemas Flexibility Efficiency
  • 8. Consolidation options today •  •  •  •  •  Multiple physical machines Multiple virtual machines Multiple databases Multiple pluggable databases Multiple schemas Flexibility Efficiency
  • 9. Like a single database •  •  •  •  •  One buffer cache and shared pool One set of background processes Can be backed up and data guard all at once Single RAC cluster Supports hundreds of fully isolated applications in one DB •  Global resource management
  • 10. Like separate databases •  Full isolation of each application •  No application changes required for consolidation •  Support for public synonyms without conflicts •  Granular resource management •  Per-database startup/shutdown/recovery •  Internal PDB resource management
  • 11. New Capabilities •  •  •  •  •  •  Plug/unplug entire PDB database Rapid PDB cloning Separation of roles (PDB admin vs CDB admin) Resource management Recovery of individual PDBs Saving resources
  • 13. Database consolidation •  The obvious one •  Increase efficiencies and drive down costs •  Simplify maintenance
  • 14. Development and testing environments •  Simple clones and refreshes
  • 15. Cloud and SaaS hosting •  Host multiple environments efficiently
  • 16. Simplified patches and upgrades •  Upgrade a whole set of databases at once •  Plug/unplug databases to upgrade to future database versions
  • 17. How it works The technical part
  • 19. Data Dictionary and PDBs •  DD metadata is stored in root only –  Like TAB$ and its columns definitions –  PDB links to that metadata in the root –  Cannot be changed from PDB •  DD content is stored in both root and PDBs –  Root contains rows about common entries –  PDB inherits data from root (read-only) + add its own •  Some objects are visible from both root and PDBs
  • 20. The split data dictionary •  PDB and CDB both have SYSTEM/SYSAUX tablespaces •  Metadata Links and object links expose common data and metadata to PDBs –  Built-in PL/SQL objects for example •  PDB sessions see a combination of common and private data –  Think UNION
  • 21. Changes to data dictionary views •  DBA_ views in a CDB root only show common objects •  CDB_ views: show all objects, common and for all PDBs •  CDB_PDBS: PDB associated with a given CDB •  CDB_PDB_HISTORY: history of plug/unplug operations •  CON_ID column added to most data dictionary and performance view; identifies container DB
  • 22. Oracle database kernel for PDB •  Memory structures are instrumented –  Every entry gets con_id –  All X$ tables expose con_id –  V$ views on top of these X$ views utilize con_id filter –  PDB level views and tables filter records only for that container •  Data dictionary becomes a merge of common and PDB objects –  OBJ$, TAB$ and etc.
  • 23. So what about: •  •  •  •  •  •  •  •  •  •  Table SCOTT.TAB1 Database links Controlfiles Package DBMS_SHARED_POOL Package SCOTT.PKG1 Redo logs Undo tablespaces Flashback logs TDE encryption keys Temp tablespace
  • 24. More complex cases •  Table SYS.OBJ$ •  Has metadata for both common and local objects •  Remember: we must maintain application transparency, even when querying the data dictionary
  • 25. Network Connectivity •  Separate service names –  Within CDB –  Within listeners
  • 26. Separation of duties •  Local and common users
  • 27. Resource management •  Making sure one PDB doesn’t monopolize shared resources •  Database resource manager has been enhanced with PDB awareness •  Can manage resources inside a PDB and between PDBs •  I/O resource manager (Exadata) has too •  Storage limits can be applied to PDB objects. Examples: total DB size, max shared temp usage
  • 28. Management tools •  Plain old SQL works  •  OEM 12c has pluggable database awareness – dropdown box to select a PDB •  SQL developer works with pluggable databases too
  • 29. Backup and restore •  PDBs and CDBs have their own datafiles •  RMAN runs from the root CDB •  Can do operations on entire CDB, or individual PDBs •  Remember undo and redo are common, so PDB backups include this common data too
  • 30. Four ways to get a PDB (1) •  From PDB$SEED –  Creates a blank database –  Can also create a local admin user, default tablespace, local tempspace •  From an existing local PDB –  Like TTS, must be opened read-only –  Inherits attributed unless overridden –  file_name_convert for example •  From an existing remote PDB –  The source PDB can be on another CDB –  Metadata transferred using a database link –  Character set and endian format must match
  • 31. Four ways to get a PDB (2) •  From an unplugged PDB –  Metadata saved in an XML file as part of the unplug process –  Use dbms_pdb.check_plug_compatibility to verify compatibility: character set, endian format •  File transfers –  Use either built-in Oracle copy or external transfer like copy-on-write snapshots –  Oracle copy can run in parallel, but COW snapshots are almost always faster –  file_name_convert option to change file location pointers, or use OMF
  • 32. Cloning a PDB: preparation •  File name conversion options: –  file_name_convert clause in plug operation –  Use Oracle managed files to guarantee uniqueness –  Set PDB_FILE_NAME_CONVERT initialization parameter for default values •  Choose file copy method: use Oracle to copy files (COPY clause), or externally like a copy-onwrite snapshot (NOCOPY clause)
  • 33. Cloning a PDB •  •  •  •  Connect to CDB root as an admin user Reopen source pdb in read-only mode alter pluggable database pdb1 close; alter pluggable database pdb1 open read only; •  create pluggable database pdb3 from pdb1 admin user adm identified by secret file_name_convert = (‘/u01/ oradata/pdb1’,’/u01/oradata/pdb3’); •  Open the database •  alter pluggable database pdb3 open;
  • 34. Cloning a remote PDB •  You clone directly from another CDB •  Communication happens through a database link •  CDBs must be binary compatible (endian format, character set, etc) •  file_name_convert and other parameters work the same way •  create pluggable database pdb4 from pdb1@remote_site admin user adm identified by secret; •  alter pluggable database pdb4 open;
  • 35. Creating an empty PDB •  Just like cloning, but you clone the Seed database •  Seed database is initially empty •  Use regular create database syntax to create additional users and tablespaces •  create pluggable database pdb5 admin user adm identified by secret default tablespace users datafile ‘/ u01/oradata/pdb5/users_01.dbf’ size 500m; •  alter pluggable database pdb5 open;
  • 36. Unplugging and re-plugging •  Similar to transportable tablespaces •  XML file has PDB metadata •  Connect to source CDB as an administrative user •  Shut down PDB •  alter pluggable database pdb2 close; •  alter pluggable database pdb2 unplug into ‘/u01/oradata/pdb2/pdb2.xml’; •  drop pluggable database pdb2 keep datafiles;
  • 37. Unplugging and re-plugging (2) •  Like transportable tablespaces, you can check compatibility •  Run from destination CDB •  select dbms_pdb.check_plug_compatibility ( pdb_descr_file=>’/u01/oradata/ pdb2/pdb2.xml’, store_report=>true) from dual; •  Errors are logged in the pdb_plug_in_violations table
  • 38. Unplugging and re-plugging (3) •  We’re now ready to plug in the PDB •  Use AS CLONE to create new unique IDs, if a local clone already exists •  If files have been moved externally, use nocopy source_file_convert •  create plugggable database pdb2 using ‘/u01/oradata/pdb2/pdb2.xml’ nocopy;
  • 39. Migrating to pluggable databases •  Convert non-CDB 12c into a PDB by generating PDB XML file •  Create a blank PDB and use logical replication tools (data pump, GoldenGate, CTAS over DB link) to bring data over from pre-12c •  Upgrade as a standalone database to 12c, and then plug in as a PDB •  For future releases and patches, simply unplug and plug into new-version CDB directly
  • 40. Lessons learned •  Copy-on-write snapshots rock with PDBs –  They save storage space too •  PDBs do not open automatically on startup; –  use alter pluggable database all open; •  Naming: don’t prefix PDB names with CDB •  Avoid PDB names conflicts – moving between CDBs is an issue + potential service names conflict in listener registrations
  • 41. Watch for •  More workload to shared processes and resources – might require more efforts to make sure they don’t become bottlenecks –  –  –  –  –  –  –  –  LGWR process DBWR processes LMS processes SQL Area Data Dictionary Audit trail Buffer cache Data Guard log shipment •  Not based on experience but just a simple thought experiment
  • 42. Is it worth extra cost? •  Single PDB deployment is free –  Plug/unplug upgrade use case •  Extra option costs 37% list on top of pure EE –  Take in account other options you have and it might only be around 10% of incremental cost –  Easy to save more resources (including licensed CPU capacity) when consolidating at scale
  • 43. Wrapping up •  PDB is a major improvement in Oracle database functionality –  Main benefits – improved agility and reduce consolidated resource usage •  PDBs give benefits of both multi-database and multi-schema consolidation •  Transparent to applications •  Might require more attention to individual components administration
  • 44. Thanks and Q&A Contact info gorbachev@pythian.com +1-877-PYTHIAN To follow us pythian.com/blog @alexgorbachev @pythian linkedin.com/company/pythian