Private Database Cloud Database Consolidation Deep Dive in PDB Nitin Vengurlekar Viscosity – CTO/Cloud Charles Kim Viscosity –

Slides:



Advertisements
Similar presentations
CHAPTER 4 Tablespaces and Datafiles. Introduction After installing the binaries, creating a database, and configuring your environment, the next logical.
Advertisements

ITEC474 INTRODUCTION.
Acknowledgments Byron Bush, Scott S. Hilpert and Lee, JeongKyu
Overview of Database Administrator (DBA) Tools
Oracle9i Database Administrator: Implementation and Administration 1 Chapter 2 Overview of Database Administrator (DBA) Tools.
Chapter 22: Cloud Computing and Related Security Issues Guide to Computer Network Security.
The New Data Pump Caleb Small Next generation Import / Export New features Better performance Improved security Versatile interfaces.
Clouds C. Vuerli Contributed by Zsolt Nemeth. As it started.
Cloud SUT proposal OSGcloud group. Objective To fill in the Research the group about the thinking within the OSG working group To solicit new ideas/proposals.
Harvard University Oracle Database Administration Session 2 System Level.
Microsoft SQL Server x 46% 900+ For Hosting Service Providers
Advanced Databases Basic Database Administration Guide to Oracle 10g 1.
Virtualization and the Cloud
Presented by Sujit Tilak. Evolution of Client/Server Architecture Clients & Server on different computer systems Local Area Network for Server and Client.
SaaS, PaaS & TaaS By: Raza Usmani
M.A.Doman Model for enabling the delivery of computing as a SERVICE.
Securing and Auditing Cloud Computing Jason Alexander Chief Information Security Officer.
Cloud computing Tahani aljehani.
Duncan Fraiser, Adam Gambrell, Lisa Schalk, Emily Williams
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
Delivered by: Matthew Zito, Chief Scientist 156 5th Avenue Penthouse New York, NY P: Strategies & Tools for Centralizing.
Windows Azure Conference 2014 Oracle on Windows Azure.
PPOUG, 05-OCT-01 Agenda RMAN Architecture Why Use RMAN? Implementation Decisions RMAN Oracle9i New Features.
Cloud Computing in Large Scale Projects George Bourmas Sales Consulting Manager Database & Options.
Cloud Computing. 2 A division of Konica Minolta Business Solutions USA Inc. What is Cloud Computing? A model for enabling convenient, on-demand network.
Introduction to Cloud Computing
VIRTUALIZATION AND CLOUD COMPUTING Dr. John P. Abraham Professor, Computer Engineering UTPA.
Oracle Application Express (Oracle APEX)
CHAPTER 23 Pluggable Databases. Oracle Multitenant (Pluggable Databases) New with Oracle Database 12c is Oracle Multitenant. This feature allows you to.
Introduction and simple using of Oracle Logistics Information System Yaxian Yao
 Cloud computing  Workflow  Workflow lifecycle  Workflow design  Workflow tools : xcp, eucalyptus, open nebula.
Database Administration TableSpace & Data File Management
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
A Cloud is a type of parallel and distributed system consisting of a collection of inter- connected and virtualized computers that are dynamically provisioned.
Oracle on Windows Server Introduction to Oracle10g on Microsoft Windows Server.
Oracle10g RAC Service Architecture Overview of Real Application Cluster Ready Services, Nodeapps, and User Defined Services.
Cloud Computing. What is Cloud Computing? Cloud computing is a model for enabling convenient, on-demand network access to a shared pool of configurable.
■ Decide on the local database name, and which domain will contain this database. These names are set in the initialization parameters DB_NAME and DB_DOMAIN.
Virtualization. Virtualization  In computing, virtualization is a broad term that refers to the abstraction of computer resources  It is "a technique.
Component 4: Introduction to Information and Computer Science Unit 10b: Future of Computing.
M.A.Doman Short video intro Model for enabling the delivery of computing as a SERVICE.
1 VitalSoftTech.com Copyright 2014 By Natik Ameen.
Get More out of SQL Server 2012 in the Microsoft Private Cloud environment Steven Wort, Xin Jin Microsoft Corporation.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
PaaSport Introduction on Cloud Computing PaaSport training material.
Chapter 1Oracle9i DBA II: Backup/Recovery and Network Administration 1 Chapter 1 Backup and Recovery Overview MSCD642 Backup and Recovery.
Architecture & Cybersecurity – Module 3 ELO-100Identify the features of virtualization. (Figure 3) ELO-060Identify the different components of a cloud.
CLOUD COMPUTING RICH SANGPROM. What is cloud computing? “Cloud computing is a model for enabling ubiquitous, convenient, on-demand network access to a.
Software Acquisition Management. Cloud Computing 2.
3/12/2013Computer Engg, IIT(BHU)1 CLOUD COMPUTING-1.
Web Technologies Lecture 13 Introduction to cloud computing.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
13 Copyright © 2004, Oracle. All rights reserved. Optimizing Database Performance.
I NTRODUCTION OF W EEK 2  Assignment Discussion  Due this week:  1-1 (Exam Proctor): everyone including in TLC  1-2 (SQL Review): review SQL  Review.
© 2012 Eucalyptus Systems, Inc. Cloud Computing Introduction Eucalyptus Education Services 2.
INTRODUCTION TO CLOUD COMPUTING. CLOUD  The expression cloud is commonly used in science to describe a large agglomeration of objects that visually appear.
Welcome To We have registered over 5,000 domain names and host over 1,500 cloud servers for individuals and organizations, Our fast and reliable.
CLOUD COMPUTING Presented to Graduate Students Mechanical Engineering Dr. John P. Abraham Professor, Computer Engineering UTPA.
Prof. Jong-Moon Chung’s Lecture Notes at Yonsei University
How To Pass Oracle 1z0-060 Exam In First Attempt?
Creating an Oracle Database
Oracle Solaris Zones Study Purpose Only
Get Verified Oracle 1z0-062 Study Material - Oracle 1z0-062 Exam Dumps PDF Realexamdumps.com
CNIT131 Internet Basics & Beginning HTML
Dr. John P. Abraham Professor, Computer Engineering UTPA
Cloud Computing: Concepts
Oracle 12c Multitenant Database
Presentation transcript:

Private Database Cloud Database Consolidation Deep Dive in PDB Nitin Vengurlekar Viscosity – CTO/Cloud Charles Kim Viscosity – CEO/Oracle

Who am I and Why am even speaking 18 Years with Oracle 13 Years in RAC/ASM development and Product Management Self Proclaimed “Private Database Cloud” Evangelist Follow me on Twitter

Program Agenda What is Private Database Cloud Why Database Cloud Consolidation Private Database Cloud deployment models Pluggable Database Deep Dive PDB and RAC – A Perfect Deployment Model

NIST Definition of Cloud Computing Cloud computing is a model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, servers, storage, applications, and services) that can be rapidly provisioned and released with minimal management effort or service provider interaction. This cloud model promotes availability and is composed of: Source: NIST Definition of Cloud Computing v15NIST Definition of Cloud Computing v15 3 Service Models SaaS PaaS IaaS 4 Deployment Models Public Cloud Private Cloud Community Cloud Hybrid Cloud 5 Essential Characteristics On-demand self-service Resource pooling Rapid elasticity Measured service Broad network access

Customers Have a Choice of Clouds Own & Operate, Use Managed Services, Subscribe ManagedBuildSubscribe Customer owns. Service provider manages. Either may host. Customer owns, hosts and manages. Customer subscribes. Service provider hosts and manages. Managed Cloud ServicesPrivate CloudPublic Cloud Source-Oracle

Customers Have a Choice of Clouds IaaS, PaaS or SaaS Application Platform Customizations Application Customizations Consumer Service Provider IaaS Cloud SaaS Cloud PaaS Cloud IT ProfessionalDeveloperBusiness End User Different Users Source-Oracle

Reduce IT Costs Reduce Comple- xity Increase Quality of Service Increase Agility Database Cloud Business Drivers Lower: CapEx Servers Storage OpEx Maintenance Management Reduce: Configurations Services Standardize: OS DB Versions Enhance: IT service time Availability Security Enable: Online changes Rapid response Faster Time to market Source-Oracle

Private Database Cloud Architectures Common building blocks are shared server and storage pools Platform ERP DW CRM DB Platform DB Database Cloud Database Consolidation Share server pool Real Application Clusters Platform ERP DW CRM Platform DB Database Cloud Schema Consolidation Share database instances Real Application Clusters Infrastructure Cloud Server Consolidation Deploy in dedicated VMs Server virtualization Hypervisor CRM DW ERP OS DB OS DB OS DB Hypervisor Source-Oracle

Infrastructure Cloud Server - Provision a Database in a VM Reasons for adoption –Simple to implement –Excellent isolation –Mixed workloads –As-is consolidation –Legacy support Customer concerns –Lower consolidation density –Lower ROI –Performance (latency) –Managing sprawl Source-Oracle

Database Cloud Database Consolidation – Provision Database Reasons for adoption –Consolidation density –Good ROI –Performance –Supports any app Customer concerns –Requires OS standardization –Database only OS ERP DW CRM DB OS DB Source-Oracle

Private Database Cloud Database – Provision Schema Reasons for adoption –Most efficient –Extremely fast provisioning –Best ROI –Performance –Efficient memory use Customer concerns –App qualification required –Requires OS and DB standardization –Isolation Performance - Resource Management Security - Availability Operational - Namespace issues OS ERP DW CRM OS DB Source-Oracle

Private Database Cloud Deployment Schema Consolidation - Provision a Schema Most efficient –Highest consolidation density. Capability to consolidate large number of applications. –Efficient use of memory. Single large SGA opposed to several disparate SGAs –Minimizes items to manage. Less OS, databases, and configurations to manage –Reduces overall operational costs and overhead Extremely fast provisioning –Provisioning is simply a schema and tablespace creation Performance –Native performance OS ERP DW CRM OS DB Source-Oracle

Database Cloud Business Drivers

Next Generation Consolidation Pluggable Database - Database/Schema Source-Oracle

Reasons for Adoption –No application validation required –Fast Provisioning Fast creation of empty PDB Fast clone of a PDB for testing Fast plug PDB for migrations & upgrades –High Level of Consolidation –Excellent Performance : Resource ratio Customer Concerns –Available with 12.1 –New technology to adopt CRM DW ERP CDB PDB Private Database Clouds New in 12c – Provision a PDB in a Container DB

Private Database Cloud – Pluggable Database Concepts CDB –The name you give it will be name of the instance (SID). –The CDB database owns the SGA and running processes. –Can contain upto 252 PDBs –Can have many CDBs on the same database server (each with its own PDBs). Root CDB (cdb$root) contains the data dictionary The seed PDB (PDB$SEED) is a Oracle supplied system template that the CDB can use to create new PDBs. The seed PDB is named PDB$SEED. One cannot add or modify objects in PDB$SEED.

Private Database Cloud – Pluggable Database Concepts PDB (Pluggable Database) –Also referred to Containers –The PDB are sub-containers (databases) serviced by CDB resources –PDB has mobility - unplug and plug 12c databases into and out of CDBs. –Can “create like” new PDBs from existing PDB, like full snapshots. –Can be created or managed using DBCA, OEM, or command line –SQL statement execution is scoped to the container (PDB) Con Id (Container ID – con_id) –Scope is defined by the container id –Container ID is established and tagged at session creation/connection –Defines level of isolation –Permeates across all aspects of Data Dictionary and Oracle code layers

Private Database Cloud – Pluggable Database Concepts Non-CDB –Like traditional database that is not capable of housing PDB –Still has GUID like a CDB –If it is 12c database (or after upgraded) it can be plugged-in to a CDB

Private Database Cloud – Pluggable Database Concepts – Who Owns What… Says the CDB Scope is key in understanding and managing PDB –Where is data stored or referenced; eg, at root or PDB –How can PDB access its data; scope of access –Can data be portable – moved with unplug/plug operations

Private Database Cloud – Pluggable Database Concepts – Who Owns What… Says the CDB Management and Operation –Job scheduling -> container specific; e.g., root jobs scoped within CDB, jobs scoped in container –ASH data is stored within PDB and is mobile –PDBs inherit init.ora parameters from CDB, some parameters can be set at PDB, but no mobility –Features vary content placement (container) at specific level and have of scope of access AWR is stored in root, PDB can access its own PDB AWR content ASH SQL Tuning Advisor data is stored in root and not mobile

Private Database Cloud – Pluggable Database Concepts – Who Owns What… Says the CDB FEATUREDATA LOCATIONSCOPE OF ACCESSMOBILITY AWRCDB ASHCDB OR PDBPDBYES STATSPACKCDB OR PDB SQL TUNING ADVISORCDB

Private Database Cloud – Pluggable Database Concepts – Who Owns What… Says the CDB Instance stuff –CDB owns all instance level real estate – semaphore, shm segments –Memory - CDB only manages and maintains the memory When consolidating, all PDB memory requirements will rollup into CDB..plan accordingly –One alert.log, ADR –One ORACLE_HOME –One SPFile  though PDB can have PDB level settings See parameters with IsPDB_Modifiable = ‘TRUE’

Private Database Cloud – Pluggable Database Concepts – Who Owns What… Says the CDB Database Stuff –CDB has its own set of System and SYSAUX –CDB owns the controlfiles, online/archive redo logs, undo and default Temp –PDB can have its own Temp –DataGuard at CDB level –Oracle-supplied objects such as views, PL/SQL, etc., are shared across all PDBs using object “stubs”

Private Database Cloud – Pluggable Database Concepts – Who Owns What… Says the CDB Tablespace and DataFiles –Root has its own set of tablespaces & datafiles –PDB has its own System and SYSAUX, as well as optional TEMP –PDB has its own set of tablespaces & datafiles –Each PDB has its own TDE master key – can also be managed by CDB using “Administer Key Management “ capability –DataVault employed at the PDB level

Private Database Cloud – Pluggable Database Creation Two methods to create a container database –The usual “ Create Database” script Use starting point init.ora parameter with ENABLE_PLUGGABLE_DATABASE parameter set –OUI (DBCA) method Both methods build a CDB capable database with Data Dictionary to support it

Private Database Cloud – Pluggable Database OUI Workflow

Private Database Cloud – Pluggable Database CDB First verify that we are truly on 12c Oracle database SQL> select instance_name, version, status, con_id from v$instance; INSTANCE_NAME VERSION STATUS CON_ID yoda OPEN 0 The v$database view tells us that we are dealing with a CDB based database select cdb, con_id from v$database; CDBCON_ID YES 0 Or a more elegant way: select NAME, DECODE(CDB, 'YES', 'Multitenant Option enabled', 'Regular 12c Database: ') "Multitenant Option ?", OPEN_MODE, CON_ID from V$DATABASE; NAME Multitenant Option ? OPEN_MODE CON_ID YODA Multitenant Option enabled READ ONLY 0

Private Database Cloud – Pluggable Database CDB There are alot of new views, tables, and commands to support PDB/CDB. v$PDBS, v$CONTAINERS, DBA_PLUGGABLE_DATABASE, and CDB_PDBS views The SQLPlus command con_name (container name) shows the container and the con_id we are connected to: show con_name CON_NAME CDB$ROOT show con_id CON_ID

Private Database Cloud – Pluggable Database CDB Let's see what PDBs that are created in this CDB and their current state: select CON_ID,DBID,NAME,TOTAL_SIZE from v$pdbs; CON_ID DBID NAME TOTAL_SIZE PDB$SEED PDBOBI 0 select con_id, name, open_mode from v$pdbs; CON_ID NAME OPEN_MODE PDB$SEED READ ONLY 3 PDBOBI MOUNTED Recall from OUI that we created a PDB (pdbobi) when we specified the Pluggable Database Feature on install. Also, a PDB$SEED got created as part of that Install process Now lets's connect to the two different PDBs and see what they got!! You really shouldn't ever connect to PDB$SEED, since its just used as a template, but we're just curious :-)

Private Database Cloud – Pluggable Database CDB Now lets's connect to the two different PDBs and see what they got!! You really shouldn't ever connect to PDB$SEED, since its just used as a template, but we're just curious :-) alter session set container=PDB$SEED; Session altered. select name from v$datafile; NAME PDBDATA/YODA/DATAFILE/undotbs PDBDATA/YODA/DD7C48AA5A4404A2E04325AAE80A403C/DATAFILE/system PDBDATA/YODA/DD7C48AA5A4404A2E04325AAE80A403C/DATAFILE/sysaux As you can see that PDB$SEED houses the template tablespaces -> System, Sysaux, and Undo tablespaces The SEED database is used for Cloning for new PDBs

Private Database Cloud – Pluggable Database CDB If we connect back to the root-CDB, we see that it houses essentially the traditional database tablespaces (like in pre-12c days). alter session set container=cdb$root; Session altered. select name from v$datafile; NAME PDBDATA/YODA/DATAFILE/system PDBDATA/YODA/DATAFILE/sysaux PDBDATA/YODA/DATAFILE/undotbs PDBDATA/YODA/DD7C48AA5A4404A2E04325AAE80A403C/DATAFILE/system PDBDATA/YODA/DATAFILE/users PDBDATA/YODA/DD7C48AA5A4404A2E04325AAE80A403C/DATAFILE/sysaux PDBDATA/YODA/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE/system PDBDATA/YODA/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE/sysaux PDBDATA/YODA/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE/users PDBDATA/YODA/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE/example

Private Database Cloud – Pluggable Database DBCA Workflow

Private Database Cloud – Pluggable Database A Peek at PDB Note, that when you create the PDB, it is initially in mounted mode with a status of NEW. View the OPEN MODE status of a PDB by querying the OPEN_MODE column in the V$PDBS view or view the status of a PDB by querying the STATUS column of the CDB_PDBS or DBA_PDBS view Let's connect to our user PDB (pdbobi) and see what we can see :-) alter session set container=pdbobi; Session altered. select con_id, name, open_mode from v$pdbs; CON_ID NAME OPEN_MODE PDBOBI MOUNTED Place PDBOBI in Read Write mode. alter pluggable database pdbobi open; Pluggable database altered. All PDBs can be opened at once using alter pluggable database all open;

Private Database Cloud – Pluggable Database DBCA Manage PDB Workflow

Private Database Cloud – Pluggable Database DBCA – Create a Fileset Workflow

Private Database Cloud – Pluggable Database DBCA Manage PDB Workflow

Private Database Cloud – Pluggable Database Migrating, Cloning PDBs Options to migrate non-CDB into PDB-CDB Logical pre-create a PDB using Clone DataPump out of non-CDB into CDB Physical (requires that source is 12.1 database) Migrate using manifest file Create a manifest file of source

Private Database Cloud – Pluggable Database Unplug/Plug PDBs Unplug / plug unplug into '/u01/app/oracle/oradata/endor.xml' create pluggable database Endor using '/u01/app/oracle/oradata/endor.xml'

Private Database Cloud – Pluggable Database CDB Let's create a new clone from an existing PDB, but with a new path create pluggable database PDBvader from PDBOBI FILE_NAME_CONVERT=('+PDBDATA/YODA/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE','+PDBDATA'); create pluggable database PDBvader from PDBOBI FILE_NAME_CONVERT=('+PDBDATA/YODA/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE','+PDBDATA') * ERROR at line 1: ORA-65040: operation not allowed from within a pluggable database Hmm…..remember we were still connected to PDBOBI. You can only create PDBs from root (and not even from pdb$seed). So connect to CDBROOT show con_name CON_NAME PDBOBI create pluggable database PDBvader from PDBOBI FILE_NAME_CONVERT=('+PDBDATA/YODA/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE','+PDBDATA'); Pluggable database created.

Private Database Cloud – Pluggable Database CDB create pluggable database corasant as clone using '/u02/app/oracle/product/12.1.0/db/assistants/dbca/templates/Dagobah_ENDOR.xml' source_file_name_convert = ('+FRA/DAGOBAH/F13F13D3C04050F0E0430B2910AC5929/TEMPFILE/temp ','+PDBDATA/corasant_temp01. dbf', '+FRA/DAGOBAH/F13F13D3C04050F0E0430B2910AC5929/DATAFILE/users ','+PDBDATA/corasant_users.dbf ', '+FRA/DAGOBAH/F13F13D3C04050F0E0430B2910AC5929/DATAFILE/sysaux ','+PDBDATA/corasant_sysaux.d bf', '+FRA/DAGOBAH/F13F13D3C04050F0E0430B2910AC5929/DATAFILE/system ','+PDBDATA/corasant_system.d bf') NOCOPY Fri Jan 31 01:58: This instance was first to open pluggable database CORASANT (container=5) Deleting old file#8 from file$ Deleting old file#9 from file$ Deleting old file#10 from file$ Adding new file#17 to file$(old file#8) Adding new file#18 to file$(old file#9) Adding new file#19 to file$(old file#10) Successfully created internal service corasant at open ALTER SYSTEM: Flushing buffer cache inst=2 container=5 local

A View of the Private Database Cloud Cloud, An Aggregation of Cloud Pools Dev/test Cloud Pool Infrastructure Cloud Cloud Pool Schema Consolidation 11gR1 Cloud Pool Database Consolidation Cloud Pool Infrastructure Cloud 11gR2 Cloud Pool Exadata - Database Consolidation Cloud Pool Schema Consolidation

Cloud Architectural Assessment Pick the architecture that best suits your needs Business Value Infrastructure Consolidation Database Consolidation Schema Consolidation PDB Consolidation ImplementationEasy Difficult*Easy Application SuitabilitySomeAllSomeMost IsolationHighestHighLimitedHigh AvailabilityHighHighest ScalabilityLimitedExcellent Consolidation DensityLowHighHighestHigh ROILowHighHighestHigh

RAC AND PDB

Private Database Cloud – Pluggable Database RAC and Pluggable Databases RAC Overview Clusterware Overview Server Pool Overview

Private Database Cloud – Pluggable Database RAC and PDB Core Components RAC – provides scalability, availability and workload distribution Policy Managed Databases – logical separation of Servers and Databases Services Each PDB has its default Service. Create additional Services to map workload and client access Services can be uniform or singleton

PDB-RAC Configuration 1-1 ASM to Server Shared Disk Groups

Oracle 12c: Pluggable DBs and Server Pools Oracle Clusterware 12cR1 AR Service AP Service ERP SP SALES Service Sales SPHR SPFree SP Oracle PDB OS Service OS Service HR Service HR Service Oracle CDB 12cR1 Oracle PDB

Private Database Cloud – Pluggable Database CDB PDB most pragmatic in RAC configuration A PDB is essentially a RAC Service RAC Services can be managed with Oracle Clusterware WLM/QoS PDBs can be RAC One Node or Multi-node RAC Policy Managed Configuration always greater multiple CDB Easily convert a single instance (12.1) database to RAC by simply plugging in SI db into CDB Oracle Clusterware Server Pools allow greater HA management and workload isolation Allocate and map CDBs or Services to server pools

Viscosity is a group of experts specializing in cloud architecture and managed services. 63

More detailed information is available at viscosityna.com or by talking to a real person at