• Save
Partner DB12c Eseminar: Oracle Multitenant – Simplify Consolidation with Oracle Database 12c (PTS)
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Partner DB12c Eseminar: Oracle Multitenant – Simplify Consolidation with Oracle Database 12c (PTS)

  • 555 views
Uploaded on

https://blogs.oracle.com/imc/entry/partner_eseminars_oracle_database_12c

https://blogs.oracle.com/imc/entry/partner_eseminars_oracle_database_12c

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
555
On Slideshare
555
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 2. Audio connection details  Toll Free Number Dial-In: https://www.intercallonline.com/listNumbersByCode.ac tion?confCode=4339269  Audio Conference code: 4339269  Audio Conference passcode: 1758 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 3. Oracle Multitenant Simplify Consolidation with Oracle Database 12c François Pons Senior Principal Technologist Oracle PTS / Server Technologies 3 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 4. Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant  Use Cases 4 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 5. Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant  Use Cases 5 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 6. Business Drivers Customers facing great pressure to consolidate databases in cloud Operational Pressures Economic Pressures Consolidate to cut costs • Reduce power • Reduce floorspace • Reduce licenses 7 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Deliver cloud-based agility • Self-service • Rapid provisioning • Simplified management • • • • Requirements Tenant isolation Easy adoption Manage many as one Retain granular control
  • 7. Three Benefits of Multitenant:  Provisioning: – customers spend a huge amount of time creating databases, creating up- to-date clones for dev/test, and moving them from place to place  Patching: – they also spend time attending to the version of the Oracle Database software: applying CPUs and PSUs and upgrading  Consolidating: – they are under huge pressure to cut CapEx and OpEx by consolidating many databases onto few platforms 8 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 8. Oracle Database Architecture Requires memory, processes and database files System Resources 11 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 9. New Multitenant Architecture Memory and processes required at multitenant container level only System Resources 12 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 10. New Multitenant Architecture Memory and processes required at multitenant container level only System Resources 13 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 11. Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant  Use Cases 14 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 12. Multitenant Architecture Components of a Multitenant Container Database (CDB) PDBs Root Pluggable Databases (PDBs) CDB 15 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 13. Multitenant Architecture  Multitenant architecture can currently support up to 252 PDBs Database Link  A PDB feels and operates identically to a non-CDB  You cannot tell, from the viewpoint of a connected client, if you’re using a PDB or a non-CDB 16 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 14. Unplug / plug Simply unplug from the old CDB… 17 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 15. Unplug / plug …and plug in to the new CDB…  Moving between CDBs is a simple case of moving a PDB’s metadata  An unplugged PDB carries with it lineage, opatch, encryption key info etc 18 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 16. Unplug / plug Example Unplug alter pluggable database HCM unplug into '/u01/app/oracle/oradata/…/hcm.xml' Plug create pluggable database My_PDB using '/u01/app/oracle/oradata/…/hcm.xml' 19 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 17. Common Data Dictionary Before 12.1: dilution over time U r se Da ta Me Da ta Da D ta io ic t r na y Da ta Database Created 20 U Copyright © 2013, Oracle and/or its affiliates. All rights reserved. r se ta Me Da ta Da D ta io ic t n y ar U Da ta Tables, Code, Data added r se ta Me Da ta Mature Database ta Da D ta io ic t na ry
  • 18. Oracle Data and User Data  Multitenant fix: Horizontallypartitioned data dictionary  Only Oracle system OBJ$ TAB$ SOURCE$ EMP … 21 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. definition remains DEPT …  Data dictionary is diluted by customer’s metadata
  • 19. Horizontally Partitioned Data Dictionary  Oracle-supplied OBJ$ TAB$ SOURCE$ EMP … OBJ$ TAB$ DEPT … objects such as views, PL/SQL, etc., are shared across all PDBs using object “stubs”  In-database SOURCE$ virtualization … 22 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 20. Multitenant Architecture – Dynamics  PDBs share common SGA and background processes  Foreground sessions see only the PDB they connect to 23 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 21. Multitenant Scalability MEMORY MEMORY MEMORY GB 3 2.5 2 1.5 1 0.5 0 CRM HCM ERP BI Pluggable Database Database Pluggable Pluggable Database DW  Only small increments in memory as additional PDBs are added 24 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 22. Files in the CDB Namespaces  Each PDB has its own set of tablespaces including SYSTEM and SYSAUX  PDBs share UNDO, REDO and control files, (s)pfile  By default the CDB has a single TEMP tablespace but PDBs may create their own 25 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 23. Users  Local users are the successors for customer-created users in a non-CDB  A local user is defined only in a PDB  A local user can administer a PDB  A common user is defined in the root and is represented in every PDB  A common user can log into any PDB where it has “Create Session” and can therefore administer a PDB  The Oracle system is owned by common users 26 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 24. Overview of Users and PDBs Oracle Supplied (SYS, SYSTEM) Common User User Created Name must begin with C## Users Local User 27 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Identity restricted to one PDB
  • 25. Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant  Use Cases 29 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 26. Manage Many as One with Multitenant Backup databases as one; recover at pluggable database level One Backup Point-in-time recovery At pluggable database level 30 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 27. Manage Many as One with Multitenant One standby database covers all pluggable databases 31 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 28. Multitenant for Simplified Patching Apply changes once, all pluggable databases updated Upgrade in-place 32 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 29. Multitenant for Upgrades Flexible choice when patching & upgrading databases 33 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 30. Improved Agility With Changing Workloads Expand Cluster to Support Flexible Consolidation Model Services CDB Instance 1 CDB Instance 2 Single SGA per CDB Instance Node1 Multitenant Container Database (CDB) 34 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Node2
  • 31. Improved Agility With Changing Workloads Expand Cluster to Support Flexible Consolidation Model Services CDB Instance 1 CDB Instance 3 CDB Instance 2 Single SGA per CDB Instance Node1 Node3 Multitenant Container Database (CDB) 35 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Node2
  • 32. Unprecedented Agility with Pluggable Portability PDB migrates through SLAs as it becomes more mission critical GOLD SILVER BRONZE 36 RAC, Data Guard, Daily Incrementals Data Guard, Daily Incrementals Weekly Full Backups Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 33. Multitenant for Fast Provisioning Pluggable databases can be quickly provisioned from seed Time Taken to Provision New Database 25 20 15 10 5 0 Non CDB 37 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. PDB Clone PDB using Copy-on-Write File System
  • 34. Multitenant for Provisioning Fast cloning of PDBs  PDBs can be cloned from within the same CDB  PDBs can be cloned from remote CDBs 38 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 35. Cloning a PDB Example Local create pluggable database HCMBI from HCM Remote (DB Link) create pluggable database HCMBI from HCM@us.acme.db1 39 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 36. Per PDB vs per CDB Common operations on CDB with granular control where appropriate Per CDB Per PDB Single Oracle Software Version RMAN point-in-time recovery Data Guard Ad hoc RMAN backups Scheduled RMAN Backups Flush shared pool Some parameters/properties e.g. homogeneous character set Parameters where Redo and Undo 40 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. IsPDB_Modifiable = 'TRUE'
  • 37. Advantages of Multitenant Architecture Reduced CapEx & OpEx, Increased Agility, Easy Adoption Self-contained PDB for each application    Applications run unchanged Rapid provisioning (via clones) Portability (via pluggability) Shared memory and background processes  More applications per server Common operations performed at CDB level   41 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Manage many as one (upgrade, HA, backup) Granular control when appropriate
  • 38. Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant  Use Cases 42 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 39. Managing Shared Resources Resource management in multitenant environment Low Priority Medium Priority High Priority 43 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 40. Managing Resources between PDBs  Using Resource Manager, you can control – CPU – Exadata I/O – Sessions – Parallel execution servers  Configure a policy that controls how resources are utilized – Default configuration that works, even as PDBs are added or removed – Hard limits, for “get what you pay for” 44 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 41. Managing Resources between PDBs  The model is “industry standard” based on two notions: – A number of shares is allocated to each PDB – A “cap” (a.k.a. maximum utilization limit) may be applied to each PDB 45 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 42. Manage CPU A CDB Resource Plan uses shares to specify how CPU is distributed between PDBs 2 Shares 1 Share Pluggable Database Guaranteed CPU Maximum CPU HCM 2 2/4 = 50% 100% CRM 1 1/4 = 25% 100% ERP 46 Shares 1 1/4 = 25% 100% Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 1 Share
  • 43. Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant  Use Cases 47 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 44. Upgrading to Multitenant Step 1: Upgrade databases in-place Upgrade in Place 48 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 45. Upgrading to Multitenant Step 2: Plug-in upgraded databases 49 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 46. Upgrading to Multitenant Step 3. Change applications to work with Multitenant  No application changes required. 50 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 47. Migrate using Replication ① Provision new PDB from Seed ② Replicate using technologies such as Oracle GoldenGate or Data Pump New in 12.1, you ask that full database export and full database import make maximum use of transportable tablespaces in the single expdb and impdb commands. (Backported to 11.2.0.3.) 51 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 48. Agenda  Rethinking Architecture for the Database Cloud  Multitenant Architecture  Capabilities Enabled  Managing Shared Resources  Upgrading to Multitenant  Use Cases 52 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 49. 1. Multitenant for Test and Development Fast, flexible copy and snapshot of pluggable databases 53 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 50. 2. Consolidation of Disparate Applications Shared overhead of memory and processes System Resources 54 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 51. 3. Self-Service Database as a Service (DBaaS) Pick from standard sizes and service levels GOLD ✔ 55 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. SILVER Data Guard Daily Incrementals BRONZE ✔ RAC, Data Guard, Daily Incrementals Weekly Full Backups
  • 52. 3. Self-Service Database as a Service (DBaaS) Pick from standard sizes and service levels 56 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. RAC, Data Guard, Daily Incrementals Data Guard Daily Incrementals BRONZE ✔ GOLD SILVER ✔ Weekly Full Backups
  • 53. 4. Multitenant. Perfect for SaaS. Multitenancy implemented by the Database, not the Application 57 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 54. 5. Multitenant. Perfect for ISVs. Packaged apps and reference data are easily distributed 58 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 55. Questions & Answers 62 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
  • 56. 65 Copyright © 2013, Oracle and/or its affiliates. All rights reserved.