4. What is Database as a Service
(DBaaS)?
The ability to provide rapid on-demand
database provisioning using a
consolidated platform to reduce cost and
increase resource utilization.
7. Why #EM12c?
Central Database Management Tool
Complete Lifecycle Management
Quota, Role-based Access
REST API Access
Single Pane of Glass
8. Why #DB12c?
Database Consolidation (Containers)
“Manage Many as One”
Backups, Upgrades & Patching
Fast Provisioning via Plug and
Unplug
Isolation
Security
9. Use Cases
Copies of Prod for QA & Test
Provision Development Environments for new projects
Create DR Testing Environment
Reporting Databases
Migration from 11g to 12c
19. PDBaaS
Databases for PDB as a Service should be Container Databases
All CDBs should be of a same version
All CDBs should be either single instance or RAC
20. PDBaaS Pool Setup
$ emcli create_pool -name="Pluggable DB Pool" -target_type="pdbaas_pool" paas_zone="DBA_Test_Zone" -members="orclcdb" -description="Oracle Database 12c Pool for Pluggable
Databases" member_constraints="PLATFORM_CDB=226,TARGET_TYPE_CDB=oracle_database,VERSION_CDB=12.1.0.1.0"!
Software Pool "Pluggable DB Pool" created successfully.!
!
$ emcli get_pool_detail -name="Pluggable DB Pool" -target_type=pdbaas_pool!
!
Name
Target Type
Description
Paas Infrastructure Zone
Number of Members
Placement Constraints!
Member Constraints
Instance!
Pluggable DB Pool!
pdbaas_pool!
Oracle Database 12c Pool for Pluggable Databases!
DBA_Test_Zone!
1!
PLATFORM_CDB : Linux x86-64 , TARGET_TYPE_CDB : Database
, VERSION_CDB : 12.1.0.1.0!
21. PDBaaS Service Template
PDB provisioned with or without data
RAC or Single Instance PDB
Specify Workloads
$ emcli create_service_template -name="Demo PDB" service_family=DBAAS -service_type="PDB" -software_pools="Pluggable
DB Pool" -pool_target_type=pdbaas_pool -roles=CLOUD_DBA,CLOUD_DEV description="Oracle 12c Pluggable Database"!
23. PDBaaS
CREATE PLUGGABLE DATABASE pdb_000 ADMIN USER pdbadmin
IDENTIFIED BY * ROLES=(CONNECT) file_name_convert=NONE
CREATE TABLESPACE EM_PDBAAS_TBSP1 DATAFILE size 10485K
AUTOEXTEND ON
CREATES DATABASE SERVICE
$ srvctl status service -db racdb
Service Mypdb_000 is running on instance(s) racdb1,racdb2
24. PDBaaS Management
Resource Manager Plan Created at Container Level
Backup Container + PDBs
Patch Container + PDBs
Monitor All PDBs together