SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
ORACLE 12C PLUGGABLE DATABASE
FEATURE INSIGHTS

DOAG 21/02/2013
Kirill Loifman
Oracle Certified Professional DBA
www: dadbm.com
Twitter: @loifmkir
ORACLE 12C PLUGGABLE DATABASE (PDB)
•

Native support for Cloud Computing
=> great help in database consolidation

•

Fundamental architectural change
=> true for Oracle DB

•

Feature that I’ve been waiting a decade
12c Pluggable Database

Footer 14/03/2012

2
12C PDB ARCHITECTURE & FEATURES
• Many Pluggable Databases (PDBs) inside a single container
database (CDB)

• PDB is backwards compatible with an ordinary pre-12.1
database
• PDB namespaces are entirely independent of one another
• A session sees only the single PDB it connects to
• Unplug a PDB from one CDB and plug it into another CDB
• Clone a PDB, both within the same CDB or from one CDB to
another one
• The operations on PDBs are implemented as SQL statements
• CDB’s administrator executes these operations when
connected to a CDB
• All PDBs can be backed up at once, but recovered separately
• PDB is transparent to applications

14/03/2012

3
12C PLUGGABLE DATABASE BENEFITS
• Consolidate many PDBs onto a single platform
• Fast provisioning of a new PDB or of a clone of
an existing PDB
• Fast redeployment, by unplug and plug, of an
existing database to a new platform
• Patch or upgrade the Oracle Database version
for many PDBs quickly by doing it just once
• Patch or upgrade a single PDB by unplugging
it and plugging it into a different CDB at a later
version
• Separation of the content of one PDB from
that of peer PDBs in the same CDB
• Separation of the duties of the application
administrators of these PDBs

• Conventional non-CDB database mode is still available in
Oracle 12c
• More efficient in terms of resource consumption,
scalability and manageability
• Based on Oracle show case, PDBs consume 6 times less
hardware resources and are 5 times more scalable
Footer 14/03/2012

4
ORACLE VS OTHERS
Oracle before-12c database

SQL Server 2000

* Encapsulation of instances, databases, schemas and objects

Oracle 12c & SQL Server 2005

Footer 14/03/2012

5
12C PLUGGABLE DATABASE DETAILS
• Each PDB has its own private data dictionary for customer-created database objects;
CDB has the data dictionary for the Oracle-supplied system;
Each data dictionary defines its own namespace.

• There is a new split data dictionary architecture that allows a PDB to be quickly unplugged from one
CDB and plugged into a different CDB
• Each PDB sees a read-only definition of the Oracle-supplied system
• There are global database initialization parameters on CDB level and local PDB ones.
PDB parameters belong only to a particular PDB and will be persistent even after you unplug you PDB.
• Database users can be global (CDB) or local (PDB only).
If a new user created in CDB it’s seen also in PDB.
In case of creation of a user on PDB level it will stay local.
Footer 14/03/2012

6
12C PLUGGABLE DATABASE DETAILS (CONTINUE)
• Temporary tablespaces can be global or local
• Redo logs and Undo tablespace are only global (on CDB level)
• Data Guard acts on the CDB as a whole
• RMAN scheduled backups are done for the CDB as a whole;
you can back up and recover a selected PDB whenever you want to
• An application connects, with no code changes, to a PDB; the system administrator connects to the
CDB; the service named in the connect string specifies the destination DB

• One PDB knows nothing of the other PDBs within the same CDB; each PDB is a hermetically sealed
container. That ensures new level of DB independence and robust security
Footer 14/03/2012

7
HANDS-ON LAB : PREPARATION
• Hands-on Lab databases (12.1 Beta2)
12c Container DB 1 (CDB1): /u01/app/oracle/oradata/cdb1
12c Container DB 2 (CDB2): /u01/app/oracle/oradata/cdb2
12c Non-Container DB (nonCDB): /u01/app/oracle/oradata/noncdb
• SQL*Plus Database Connection examples
-- connect to a CDB (container called CDB$Root) :
connect sys/pass@localhost:1521/cdb1 as sysdba
-- connect to a PDB (container My_PDB):
connect scott/pass@localhost:1521/My_PDB
• Discover the current container
select Sys_Context('Userenv', 'Con_Name') "current container" from dual;
SQL+> show Con_Name
Footer 14/03/2012

8
LAB 1: CREATE AND OPEN A PDB
• Connect to a Container Database (CDB)
sqlplus sys/pass@localhost:1521/cdb1 as sysdba

• Create a new Oracle 12c Pluggable Database (PDB) (by cloning PDB$Seed template)
create pluggable database My_PDB
admin user App_Admin identified by password
file_name_convert = ('/pdbseed/', '/my_pdb/');

• Open PDB
alter pluggable database My_PDB open;
• Verify the PDB datafiles
select Con_ID, Tablespace_Name, File_Name from CDB_Data_Files
where File_Name like '%/cdb1/pdbseed/%‘ or File_Name like '%/cdb1/my_pdb/%‘;
CON_ID
-----2
2
3
3

Tablespace_Name
-----------SYSAUX
SYSTEM
SYSAUX
SYSTEM

File_Name
------------------------------------------------/u01/app/oracle/oradata/cdb1/pdbseed/sysaux01.dbf
/u01/app/oracle/oradata/cdb1/pdbseed/system01.dbf
/u01/app/oracle/oradata/cdb1/My_PDB/sysaux01.dbf
/u01/app/oracle/oradata/cdb1/My_PDB/system01.dbf

Footer 14/03/2012

9
LAB 2: SETTING OPEN_MODE FOR A PDB / DROP PDB
• Each PDB within a CDB has its own Open_Mode and Restricted status
select Name, Open_Mode, Restricted, Inst_ID from gv$PDBs;
Open_Mode= MOUNTED | READ ONLY | READ WRITE / Restricted = Yes | No | Null

• Starting an instance (which opens the entire CDB) does not cause PDBs to be opened
sqlplus sys/pass@localhost:1521/cdb1 as sysdba

startup
alter pluggable database all open;
…
alter pluggable database all close;
• Drop a PDB
alter pluggable database MY_PDB close immediate;
drop pluggable database MY_PDB including datafiles';
Footer 14/03/2012

10
LAB 3: CLONE AN EXISTING PDB
• Switch a PDB to READ ONLY mode before cloning (online mode will come)
alter pluggable database My_PDB close;
alter pluggable database My_PDB open read only;

create pluggable database My_Clone from My_PDB
file_name_convert = ('/my_pdb/', '/my_clone/');
alter pluggable database My_PDB close;
alter pluggable database My_PDB open;
alter pluggable database My_Clone open;
• Verify CDB data files
select Con_ID, File_Name from CDB_Data_Files;

Footer 14/03/2012

11
LAB 4: UNPLUG PDB FROM CDB1
• Unplug MY_PDB
alter pluggable database My_PDB close;
alter pluggable database My_PDB
unplug into '/u01/app/oracle/oradata/cdb1/my_pdb/my_pdb.xml‘;
• Backup UNPLUGGED MY_PDB with RMAN (if required)
• Drop PDB – remove it from CDB catalog
drop pluggable database My_PDB;
-- or preserve data files for later PDB plug-in operation:

drop pluggable database My_PDB keep datafiles;
Footer 14/03/2012

12
LAB 5: PLUG PDB INTO CDB2
• Connect to cdb2 (/u01/app/oracle/oradata/cdb2)
sqlplus sys/pass@localhost:1521/cdb2 as sysdba;
• Compatibility Check ( error if NOT compatible )
exec DBMS_PDB.Check_Plug_Compatibility(
PDB_Descr_File =>'/u01/app/oracle/oradata/cdb1/my_pdb/my_pdb.xml')
• Plug In My_PDB

create pluggable database My_PDB
using '/u01/app/oracle/oradata/cdb1/my_pdb/my_pdb.xml‘
move file_name_convert = ('/cdb1/', '/cdb2/');
alter pluggable database My_PDB open;

Footer 14/03/2012

13
LAB 6: CREATE PDB AS A CLONE OF AN UNPLUGGED PDB
• Clone From Sample_Schemas “Gold Image”
create pluggable database Sample_Schemas_1 as clone
using
'/u01/app/oracle/oradata/gold_pdbs/sample_schemas/sample_schemas.xml‘
copy
file_name_convert =
('/gold_pdbs/sample_schemas/', '/cdb1/sample_schemas_1/');
alter pluggable database Sample_Schemas_1 open;
• Show PDB GUID
select PDB_Name, GUID
from DBA_PDBs
order by Creation_scn;
Footer 14/03/2012

14
LAB 7: ADOPTING NON-CDB AS A PDB INTO EXISTING CDB
• Upgrade your existing database into a 12.1 non-CDB

• Generate the xml manifest file of nonCDB
shutdown immediate
startup mount
alter database open read only;
begin
DBMS_PDB.Describe(PDB_Descr_File => '/u01/app/oracle/oradata/noncdb/noncdb.xml');
end;
/

shutdown immediate
• Connect to CDB1
sqlplus sys/pass@localhost:1521/cdb1 as sysdba

Footer 14/03/2012

15
LAB 7: CONTINUE
• Plug in the datafiles of nonCDB into CDB1
create pluggable database ExNonCDB as clone
using '/u01/app/oracle/oradata/noncdb/noncdb.xml‘
source_file_name_convert = none
copy file_name_convert = ('/noncdb/', '/cdb1/exnoncdb/')
storage unlimited;
• Open it, to finalize the plug-in, close it, and re-open it Restricted mode
alter pluggable database ExNonCDB open;
alter pluggable database ExNonCDB close;
alter pluggable database ExNonCDB open restricted;
• Remove not required data from the PDB local data dictionary
alter session set container = ExNonCDB;
@?/rdbms/admin/noncdb_to_pdb.sql
• Open the newly-adoped PDB (former non-CDB)
alter pluggable database ExNonCDB open;
Footer 14/03/2012

16
ORACLE 12C CDB / PDB CHARACTERISTICS
•

CDB

PDB

DB name example

cdb1

MY_PDB

Containter name

CDB$Root

MY_PDB

Service name

cdb1

MY_PDB

Tablespaces

system, sysaux, temp, undo

system, sysaux, (temp is possible)

Redo logs

Yes

No

Data Dictionary

Own global

Own local

PDB Template

PDB$Seed

PDB manifest

XML file

Footer 14/03/2012

17
???
THANK YOU!
Kirill Loifman
www.dadbm.com

Más contenido relacionado

La actualidad más candente

Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsAnil Nair
 
Database Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitectureDatabase Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitecturePini Dibask
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudMarkus Michalewicz
 
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Ludovico Caldara
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slidesMohamed Farouk
 
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...Sandesh Rao
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationMarkus Michalewicz
 
How to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata EnvironmentsHow to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata EnvironmentsSandesh Rao
 
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 Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesOracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesMarkus Michalewicz
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)Satishbabu Gunukula
 
Oracle 21c: New Features and Enhancements of Data Pump & TTS
Oracle 21c: New Features and Enhancements of Data Pump & TTSOracle 21c: New Features and Enhancements of Data Pump & TTS
Oracle 21c: New Features and Enhancements of Data Pump & TTSChristian Gohmann
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionMarkus Michalewicz
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceAnil Nair
 
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)オラクルエンジニア通信
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsStefan Oehrli
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19cMaria Colgan
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on ExadataAnil Nair
 
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]Markus Michalewicz
 

La actualidad más candente (20)

Oracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret InternalsOracle RAC 19c: Best Practices and Secret Internals
Oracle RAC 19c: Best Practices and Secret Internals
 
Database Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant ArchitectureDatabase Consolidation using the Oracle Multitenant Architecture
Database Consolidation using the Oracle Multitenant Architecture
 
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the CloudOracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
Oracle RAC Virtualized - In VMs, in Containers, On-premises, and in the Cloud
 
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
Oracle RAC, Data Guard, and Pluggable Databases: When MAA Meets Multitenant (...
 
Understanding oracle rac internals part 2 - slides
Understanding oracle rac internals   part 2 - slidesUnderstanding oracle rac internals   part 2 - slides
Understanding oracle rac internals part 2 - slides
 
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
 
The Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - PresentationThe Oracle RAC Family of Solutions - Presentation
The Oracle RAC Family of Solutions - Presentation
 
How to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata EnvironmentsHow to Use EXAchk Effectively to Manage Exadata Environments
How to Use EXAchk Effectively to Manage Exadata Environments
 
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 Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best PracticesOracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
Oracle Real Application Clusters (RAC) 12c Rel. 2 - Operational Best Practices
 
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)What's new in Oracle 19c & 18c Recovery Manager (RMAN)
What's new in Oracle 19c & 18c Recovery Manager (RMAN)
 
Oracle 21c: New Features and Enhancements of Data Pump & TTS
Oracle 21c: New Features and Enhancements of Data Pump & TTSOracle 21c: New Features and Enhancements of Data Pump & TTS
Oracle 21c: New Features and Enhancements of Data Pump & TTS
 
Oracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion EditionOracle RAC Internals - The Cache Fusion Edition
Oracle RAC Internals - The Cache Fusion Edition
 
New Generation Oracle RAC Performance
New Generation Oracle RAC PerformanceNew Generation Oracle RAC Performance
New Generation Oracle RAC Performance
 
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant Environments
 
What to Expect From Oracle database 19c
What to Expect From Oracle database 19cWhat to Expect From Oracle database 19c
What to Expect From Oracle database 19c
 
Oracle RAC features on Exadata
Oracle RAC features on ExadataOracle RAC features on Exadata
Oracle RAC features on Exadata
 
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
Oracle RAC 12c Practical Performance Management and Tuning OOW13 [CON8825]
 
Oracle Data Guard
Oracle Data GuardOracle Data Guard
Oracle Data Guard
 

Destacado

Reduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyReduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyKirill Loifman
 
Oracle database high availability solutions
Oracle database high availability solutionsOracle database high availability solutions
Oracle database high availability solutionsKirill Loifman
 
Database Consolidation using Oracle Multitenant
Database Consolidation using Oracle MultitenantDatabase Consolidation using Oracle Multitenant
Database Consolidation using Oracle MultitenantPini Dibask
 
Oracle Database 12c Feature Support in Oracle SQL Developer
Oracle Database 12c Feature Support in Oracle SQL DeveloperOracle Database 12c Feature Support in Oracle SQL Developer
Oracle Database 12c Feature Support in Oracle SQL DeveloperJeff Smith
 
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
 
The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cDavid Yahalom
 
Cognitive Radio Networks for Emergency Communications June 2012
Cognitive Radio Networks for Emergency Communications June 2012Cognitive Radio Networks for Emergency Communications June 2012
Cognitive Radio Networks for Emergency Communications June 2012xG Technology, Inc.
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?DLT Solutions
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAsAlex Zaballa
 
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?Toronto-Oracle-Users-Group
 
Cognitive Radio for Public Safety Applications September 2012
Cognitive Radio for Public Safety Applications September 2012Cognitive Radio for Public Safety Applications September 2012
Cognitive Radio for Public Safety Applications September 2012xG Technology, Inc.
 
Row Pattern Matching 12c MATCH_RECOGNIZE OOW14
Row Pattern Matching 12c MATCH_RECOGNIZE OOW14Row Pattern Matching 12c MATCH_RECOGNIZE OOW14
Row Pattern Matching 12c MATCH_RECOGNIZE OOW14stewashton
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012Arun Gupta
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionMarkus Michalewicz
 
Mobile WiMAX
Mobile WiMAXMobile WiMAX
Mobile WiMAXxotspot
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new featuresRemote DBA Services
 

Destacado (20)

Reduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technologyReduce planned database down time with Oracle technology
Reduce planned database down time with Oracle technology
 
Oracle database high availability solutions
Oracle database high availability solutionsOracle database high availability solutions
Oracle database high availability solutions
 
Database Consolidation using Oracle Multitenant
Database Consolidation using Oracle MultitenantDatabase Consolidation using Oracle Multitenant
Database Consolidation using Oracle Multitenant
 
Oracle Database 12c : Multitenant
Oracle Database 12c : MultitenantOracle Database 12c : Multitenant
Oracle Database 12c : Multitenant
 
Oracle Database 12c Feature Support in Oracle SQL Developer
Oracle Database 12c Feature Support in Oracle SQL DeveloperOracle Database 12c Feature Support in Oracle SQL Developer
Oracle Database 12c Feature Support in Oracle SQL Developer
 
Oracle 12c - Multitenant Feature
Oracle 12c - Multitenant FeatureOracle 12c - Multitenant Feature
Oracle 12c - Multitenant Feature
 
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
 
The Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12cThe Top 12 Features new to Oracle 12c
The Top 12 Features new to Oracle 12c
 
Cognitive Radio Networks for Emergency Communications June 2012
Cognitive Radio Networks for Emergency Communications June 2012Cognitive Radio Networks for Emergency Communications June 2012
Cognitive Radio Networks for Emergency Communications June 2012
 
Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?Why Upgrade to Oracle Database 12c?
Why Upgrade to Oracle Database 12c?
 
Oracle Database 12c - New Features for Developers and DBAs
Oracle Database 12c  - New Features for Developers and DBAsOracle Database 12c  - New Features for Developers and DBAs
Oracle Database 12c - New Features for Developers and DBAs
 
Oracle 12c Architecture
Oracle 12c ArchitectureOracle 12c Architecture
Oracle 12c Architecture
 
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?Extreme Availability using Oracle 12c Features: Your very last system shutdown?
Extreme Availability using Oracle 12c Features: Your very last system shutdown?
 
Cognitive Radio for Public Safety Applications September 2012
Cognitive Radio for Public Safety Applications September 2012Cognitive Radio for Public Safety Applications September 2012
Cognitive Radio for Public Safety Applications September 2012
 
Row Pattern Matching 12c MATCH_RECOGNIZE OOW14
Row Pattern Matching 12c MATCH_RECOGNIZE OOW14Row Pattern Matching 12c MATCH_RECOGNIZE OOW14
Row Pattern Matching 12c MATCH_RECOGNIZE OOW14
 
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
WebLogic 12c Developer Deep Dive at Oracle Develop India 2012
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 versionOracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
 
Mobile WiMAX
Mobile WiMAXMobile WiMAX
Mobile WiMAX
 
Oracle database 12c new features
Oracle database 12c new featuresOracle database 12c new features
Oracle database 12c new features
 
Oracle 12c New Features
Oracle 12c New FeaturesOracle 12c New Features
Oracle 12c New Features
 

Similar a Oracle 12c PDB insights

Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intropasalapudi
 
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...Alex Gorbachev
 
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
 
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...Ludovico Caldara
 
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
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databasesomnidba
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantPini Dibask
 
OUGN winning performnace challenges in oracle Multitenant
OUGN   winning performnace challenges in oracle MultitenantOUGN   winning performnace challenges in oracle Multitenant
OUGN winning performnace challenges in oracle MultitenantPini Dibask
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantPini Dibask
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudipasalapudi123
 
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Pini Dibask
 
Security Multitenant
Security MultitenantSecurity Multitenant
Security MultitenantArush Jain
 
OEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionOEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionBobby Curtis
 
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
 
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
 
What is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationWhat is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationFrancisco Alvarez
 
Plugging in oracle database 12c pluggable databases
Plugging in   oracle database 12c pluggable databasesPlugging in   oracle database 12c pluggable databases
Plugging in oracle database 12c pluggable databasesKellyn Pot'Vin-Gorman
 

Similar a Oracle 12c PDB insights (20)

Oracle database 12c intro
Oracle database 12c introOracle database 12c intro
Oracle database 12c intro
 
Presentation day2 oracle12c
Presentation day2 oracle12cPresentation day2 oracle12c
Presentation day2 oracle12c
 
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
Under The Hood of Pluggable Databases by Alex Gorbachev, Pythian, Oracle OpeW...
 
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
 
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
Oracle RAC, Oracle Data Guard, and Pluggable Databases: When MAA Meets Oracle...
 
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
 
Simplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable DatabasesSimplify Consolidation with Oracle Pluggable Databases
Simplify Consolidation with Oracle Pluggable Databases
 
Winning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle MultitenantWinning Performance Challenges in Oracle Multitenant
Winning Performance Challenges in Oracle Multitenant
 
OUGN winning performnace challenges in oracle Multitenant
OUGN   winning performnace challenges in oracle MultitenantOUGN   winning performnace challenges in oracle Multitenant
OUGN winning performnace challenges in oracle Multitenant
 
Winning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenantWinning performance challenges in oracle multitenant
Winning performance challenges in oracle multitenant
 
Oracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra PasalapudiOracle database 12c introduction- Satyendra Pasalapudi
Oracle database 12c introduction- Satyendra Pasalapudi
 
Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...Collaborate 17 - Database consolidation using the oracle multitenant architec...
Collaborate 17 - Database consolidation using the oracle multitenant architec...
 
Security Multitenant
Security MultitenantSecurity Multitenant
Security Multitenant
 
OEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 EditionOEM12c, DB12c and You! - RMOUG TD2014 Edition
OEM12c, DB12c and You! - RMOUG TD2014 Edition
 
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
 
Presentation day1oracle 12c
Presentation day1oracle 12cPresentation day1oracle 12c
Presentation day1oracle 12c
 
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
 
What is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? PresentationWhat is new on 12c for Backup and Recovery? Presentation
What is new on 12c for Backup and Recovery? Presentation
 
Presentation day5 oracle12c
Presentation day5 oracle12cPresentation day5 oracle12c
Presentation day5 oracle12c
 
Plugging in oracle database 12c pluggable databases
Plugging in   oracle database 12c pluggable databasesPlugging in   oracle database 12c pluggable databases
Plugging in oracle database 12c pluggable databases
 

Último

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Oracle 12c PDB insights

  • 1. ORACLE 12C PLUGGABLE DATABASE FEATURE INSIGHTS DOAG 21/02/2013 Kirill Loifman Oracle Certified Professional DBA www: dadbm.com Twitter: @loifmkir
  • 2. ORACLE 12C PLUGGABLE DATABASE (PDB) • Native support for Cloud Computing => great help in database consolidation • Fundamental architectural change => true for Oracle DB • Feature that I’ve been waiting a decade 12c Pluggable Database Footer 14/03/2012 2
  • 3. 12C PDB ARCHITECTURE & FEATURES • Many Pluggable Databases (PDBs) inside a single container database (CDB) • PDB is backwards compatible with an ordinary pre-12.1 database • PDB namespaces are entirely independent of one another • A session sees only the single PDB it connects to • Unplug a PDB from one CDB and plug it into another CDB • Clone a PDB, both within the same CDB or from one CDB to another one • The operations on PDBs are implemented as SQL statements • CDB’s administrator executes these operations when connected to a CDB • All PDBs can be backed up at once, but recovered separately • PDB is transparent to applications 14/03/2012 3
  • 4. 12C PLUGGABLE DATABASE BENEFITS • Consolidate many PDBs onto a single platform • Fast provisioning of a new PDB or of a clone of an existing PDB • Fast redeployment, by unplug and plug, of an existing database to a new platform • Patch or upgrade the Oracle Database version for many PDBs quickly by doing it just once • Patch or upgrade a single PDB by unplugging it and plugging it into a different CDB at a later version • Separation of the content of one PDB from that of peer PDBs in the same CDB • Separation of the duties of the application administrators of these PDBs • Conventional non-CDB database mode is still available in Oracle 12c • More efficient in terms of resource consumption, scalability and manageability • Based on Oracle show case, PDBs consume 6 times less hardware resources and are 5 times more scalable Footer 14/03/2012 4
  • 5. ORACLE VS OTHERS Oracle before-12c database SQL Server 2000 * Encapsulation of instances, databases, schemas and objects Oracle 12c & SQL Server 2005 Footer 14/03/2012 5
  • 6. 12C PLUGGABLE DATABASE DETAILS • Each PDB has its own private data dictionary for customer-created database objects; CDB has the data dictionary for the Oracle-supplied system; Each data dictionary defines its own namespace. • There is a new split data dictionary architecture that allows a PDB to be quickly unplugged from one CDB and plugged into a different CDB • Each PDB sees a read-only definition of the Oracle-supplied system • There are global database initialization parameters on CDB level and local PDB ones. PDB parameters belong only to a particular PDB and will be persistent even after you unplug you PDB. • Database users can be global (CDB) or local (PDB only). If a new user created in CDB it’s seen also in PDB. In case of creation of a user on PDB level it will stay local. Footer 14/03/2012 6
  • 7. 12C PLUGGABLE DATABASE DETAILS (CONTINUE) • Temporary tablespaces can be global or local • Redo logs and Undo tablespace are only global (on CDB level) • Data Guard acts on the CDB as a whole • RMAN scheduled backups are done for the CDB as a whole; you can back up and recover a selected PDB whenever you want to • An application connects, with no code changes, to a PDB; the system administrator connects to the CDB; the service named in the connect string specifies the destination DB • One PDB knows nothing of the other PDBs within the same CDB; each PDB is a hermetically sealed container. That ensures new level of DB independence and robust security Footer 14/03/2012 7
  • 8. HANDS-ON LAB : PREPARATION • Hands-on Lab databases (12.1 Beta2) 12c Container DB 1 (CDB1): /u01/app/oracle/oradata/cdb1 12c Container DB 2 (CDB2): /u01/app/oracle/oradata/cdb2 12c Non-Container DB (nonCDB): /u01/app/oracle/oradata/noncdb • SQL*Plus Database Connection examples -- connect to a CDB (container called CDB$Root) : connect sys/pass@localhost:1521/cdb1 as sysdba -- connect to a PDB (container My_PDB): connect scott/pass@localhost:1521/My_PDB • Discover the current container select Sys_Context('Userenv', 'Con_Name') "current container" from dual; SQL+> show Con_Name Footer 14/03/2012 8
  • 9. LAB 1: CREATE AND OPEN A PDB • Connect to a Container Database (CDB) sqlplus sys/pass@localhost:1521/cdb1 as sysdba • Create a new Oracle 12c Pluggable Database (PDB) (by cloning PDB$Seed template) create pluggable database My_PDB admin user App_Admin identified by password file_name_convert = ('/pdbseed/', '/my_pdb/'); • Open PDB alter pluggable database My_PDB open; • Verify the PDB datafiles select Con_ID, Tablespace_Name, File_Name from CDB_Data_Files where File_Name like '%/cdb1/pdbseed/%‘ or File_Name like '%/cdb1/my_pdb/%‘; CON_ID -----2 2 3 3 Tablespace_Name -----------SYSAUX SYSTEM SYSAUX SYSTEM File_Name ------------------------------------------------/u01/app/oracle/oradata/cdb1/pdbseed/sysaux01.dbf /u01/app/oracle/oradata/cdb1/pdbseed/system01.dbf /u01/app/oracle/oradata/cdb1/My_PDB/sysaux01.dbf /u01/app/oracle/oradata/cdb1/My_PDB/system01.dbf Footer 14/03/2012 9
  • 10. LAB 2: SETTING OPEN_MODE FOR A PDB / DROP PDB • Each PDB within a CDB has its own Open_Mode and Restricted status select Name, Open_Mode, Restricted, Inst_ID from gv$PDBs; Open_Mode= MOUNTED | READ ONLY | READ WRITE / Restricted = Yes | No | Null • Starting an instance (which opens the entire CDB) does not cause PDBs to be opened sqlplus sys/pass@localhost:1521/cdb1 as sysdba startup alter pluggable database all open; … alter pluggable database all close; • Drop a PDB alter pluggable database MY_PDB close immediate; drop pluggable database MY_PDB including datafiles'; Footer 14/03/2012 10
  • 11. LAB 3: CLONE AN EXISTING PDB • Switch a PDB to READ ONLY mode before cloning (online mode will come) alter pluggable database My_PDB close; alter pluggable database My_PDB open read only; create pluggable database My_Clone from My_PDB file_name_convert = ('/my_pdb/', '/my_clone/'); alter pluggable database My_PDB close; alter pluggable database My_PDB open; alter pluggable database My_Clone open; • Verify CDB data files select Con_ID, File_Name from CDB_Data_Files; Footer 14/03/2012 11
  • 12. LAB 4: UNPLUG PDB FROM CDB1 • Unplug MY_PDB alter pluggable database My_PDB close; alter pluggable database My_PDB unplug into '/u01/app/oracle/oradata/cdb1/my_pdb/my_pdb.xml‘; • Backup UNPLUGGED MY_PDB with RMAN (if required) • Drop PDB – remove it from CDB catalog drop pluggable database My_PDB; -- or preserve data files for later PDB plug-in operation: drop pluggable database My_PDB keep datafiles; Footer 14/03/2012 12
  • 13. LAB 5: PLUG PDB INTO CDB2 • Connect to cdb2 (/u01/app/oracle/oradata/cdb2) sqlplus sys/pass@localhost:1521/cdb2 as sysdba; • Compatibility Check ( error if NOT compatible ) exec DBMS_PDB.Check_Plug_Compatibility( PDB_Descr_File =>'/u01/app/oracle/oradata/cdb1/my_pdb/my_pdb.xml') • Plug In My_PDB create pluggable database My_PDB using '/u01/app/oracle/oradata/cdb1/my_pdb/my_pdb.xml‘ move file_name_convert = ('/cdb1/', '/cdb2/'); alter pluggable database My_PDB open; Footer 14/03/2012 13
  • 14. LAB 6: CREATE PDB AS A CLONE OF AN UNPLUGGED PDB • Clone From Sample_Schemas “Gold Image” create pluggable database Sample_Schemas_1 as clone using '/u01/app/oracle/oradata/gold_pdbs/sample_schemas/sample_schemas.xml‘ copy file_name_convert = ('/gold_pdbs/sample_schemas/', '/cdb1/sample_schemas_1/'); alter pluggable database Sample_Schemas_1 open; • Show PDB GUID select PDB_Name, GUID from DBA_PDBs order by Creation_scn; Footer 14/03/2012 14
  • 15. LAB 7: ADOPTING NON-CDB AS A PDB INTO EXISTING CDB • Upgrade your existing database into a 12.1 non-CDB • Generate the xml manifest file of nonCDB shutdown immediate startup mount alter database open read only; begin DBMS_PDB.Describe(PDB_Descr_File => '/u01/app/oracle/oradata/noncdb/noncdb.xml'); end; / shutdown immediate • Connect to CDB1 sqlplus sys/pass@localhost:1521/cdb1 as sysdba Footer 14/03/2012 15
  • 16. LAB 7: CONTINUE • Plug in the datafiles of nonCDB into CDB1 create pluggable database ExNonCDB as clone using '/u01/app/oracle/oradata/noncdb/noncdb.xml‘ source_file_name_convert = none copy file_name_convert = ('/noncdb/', '/cdb1/exnoncdb/') storage unlimited; • Open it, to finalize the plug-in, close it, and re-open it Restricted mode alter pluggable database ExNonCDB open; alter pluggable database ExNonCDB close; alter pluggable database ExNonCDB open restricted; • Remove not required data from the PDB local data dictionary alter session set container = ExNonCDB; @?/rdbms/admin/noncdb_to_pdb.sql • Open the newly-adoped PDB (former non-CDB) alter pluggable database ExNonCDB open; Footer 14/03/2012 16
  • 17. ORACLE 12C CDB / PDB CHARACTERISTICS • CDB PDB DB name example cdb1 MY_PDB Containter name CDB$Root MY_PDB Service name cdb1 MY_PDB Tablespaces system, sysaux, temp, undo system, sysaux, (temp is possible) Redo logs Yes No Data Dictionary Own global Own local PDB Template PDB$Seed PDB manifest XML file Footer 14/03/2012 17